feat: let one signup cover a party of spots
Capacity, mail, and the roster count each person in the group. Today's calendar shifts are a light wash on the yellow day, and the signup dialog scrolls inside its panel.
This commit is contained in:
1 parent
1f451dc830
commit
63748d464a
18 files changed
+585
-68
No files matched your search
+2
-2
@@ -106,7 +106,7 @@ export async function runSeedCli(env: NodeJS.ProcessEnv = process.env): Promise<
|
||||
console.log(
|
||||
`Event ${result.slug}: ${result.shiftIds.length} one-off shifts and ${result.signupIds.length} fake signups.`,
|
||||
);
|
||||
console.log('Each signup is one person. Another person can use the same email. Group size is fixed at 1.');
|
||||
console.log('A signup can hold more than one person. The count reserves that many spots under one name.');
|
||||
console.log('The weekly template is stored. Starting the app adds its shifts for the next three months.');
|
||||
console.log('No coordinator account was created.');
|
||||
} finally {
|
||||
@@ -115,7 +115,7 @@ export async function runSeedCli(env: NodeJS.ProcessEnv = process.env): Promise<
|
||||
}
|
||||
|
||||
function insertFakeSignups(db: Database.Database, shiftId: number, createdAt: string): number[] {
|
||||
// TODO(D2): These rows are individual signups. Do not invent group reservations here.
|
||||
// Seed rows stay one person each. A signup can hold more, but these fixtures do not.
|
||||
// TODO(D4): Seed data does not create coordinator accounts.
|
||||
const people = [
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user