feat: add a coordinator contact list
Saved people can be imported and added to an open shift without becoming a signup on import. Real mail is set up to use SMTP2GO once the API key and sender are configured.
This commit is contained in:
1 parent
f1a46e2ba7
commit
e8a5f9e352
20 files changed
+1857
-40
No files matched your search
@@ -59,6 +59,13 @@ export function csvCell(value: string): string {
|
||||
return safe;
|
||||
}
|
||||
|
||||
/** Drops the quote prefix csvCell adds, then trims. A name that merely starts with an apostrophe stays. */
|
||||
export function csvImportedCell(value: string): string {
|
||||
let text = value.normalize('NFC');
|
||||
if (text.startsWith("'") && FORMULA.test(text.slice(1))) text = text.slice(1);
|
||||
return text.trim();
|
||||
}
|
||||
|
||||
export function exportShiftRoster(db: Database.Database, shiftId: number): RosterExport | null {
|
||||
const shift = db.prepare('SELECT id FROM shifts WHERE id = ?').get(shiftId);
|
||||
if (!shift) return null;
|
||||
|
||||
Reference in new issue
Block a user