chore: unify name to "Meeting Mixer", README tech stack, name magic numbers (#16)
- Canonical name "Meeting Mixer" everywhere: <title>, README, .vch-description (now non-technical per convention) and package.json (meeting-mixer). - README gains a Tech-Stack section and an accurate, non-misleading port note. - Magic numbers replaced by named constants: LOW_PRIORITY_PENALTY in algorithm.js; MIN/MAX_MODERATORS_PER_DAY in utils.js, used by data.js, calendar.js and app.js. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
1 parent
b3eeca50b3
commit
836d0eeda5
9 files changed
+38
-12
No files matched your search
+4
-2
@@ -1,3 +1,5 @@
|
||||
import { MIN_MODERATORS_PER_DAY, MAX_MODERATORS_PER_DAY } from './utils.js';
|
||||
|
||||
function generateId() {
|
||||
if (typeof crypto !== 'undefined' && typeof crypto.randomUUID === 'function') {
|
||||
return crypto.randomUUID();
|
||||
@@ -17,8 +19,8 @@ function generateId() {
|
||||
|
||||
function parseSettings(raw) {
|
||||
const n = raw?.moderatorsPerDay;
|
||||
const valid = Number.isInteger(n) && n >= 1 && n <= 5;
|
||||
return { moderatorsPerDay: valid ? n : 1 };
|
||||
const valid = Number.isInteger(n) && n >= MIN_MODERATORS_PER_DAY && n <= MAX_MODERATORS_PER_DAY;
|
||||
return { moderatorsPerDay: valid ? n : MIN_MODERATORS_PER_DAY };
|
||||
}
|
||||
|
||||
function defaultConstraints() {
|
||||
|
||||
Reference in new issue
Block a user