A legislative platform with punch-in, voting and legal code keeping features
yarn
# or
npm installquasar devyarn lint
# or
npm run lintyarn format
# or
npm run formatquasar buildSee Configuring quasar.config.js.
Runtime errors are reported to the cksc/platform
Sentry project. Reporting is initialised in src/boot/sentry.ts and is disabled
during quasar dev so local work does not add noise — flip enabled in that
boot file if you need to verify it locally.
Everything the browser needs (the DSN) is committed in shared/constants.ts; it is
a public, write-only identifier, exactly like FIREBASE_CONFIG.
Uploading source maps, so stack traces are readable instead of minified, is a
CI-only step. quasar.config.ts enables it when all three of these are present in
the environment, and skips it silently otherwise:
| Name | Where it lives | Value |
|---|---|---|
SENTRY_ORG |
GitHub repo variable | cksc |
SENTRY_PROJECT |
GitHub repo variable | platform |
SENTRY_AUTH_TOKEN |
GitHub repo secret | Org token with project:releases |
The deploy workflow (pages-deploy-merge.yml) passes all three. PR builds
deliberately do not, since they are never deployed. To rotate the token, create a
new one under Organization Auth Tokens
and update the repository secret — an invalid token only downgrades stack trace
quality, it will not fail the deploy.
Use a maintenance window. Deploy the Firestore rules and indexes before migrating meetings so the previous recursive read rule cannot expose the new absence documents. Ordinary users regain access to each meeting once it has been migrated.
-
Deploy
firestore:rules,firestore:indexesfromfirebase/. Wait for the new meeting indexes to finish building. -
Build
firebase/functionswithnpm run build. From that directory, run the migration with Application Default Credentials for the intended project:node lib/firebase/functions/src/scripts/migrate-meeting-access.js PROJECT_ID
Each transaction moves one meeting's absence details to class-specific documents, preserves the attendance summary, and rotates its check-in code. The script can be rerun after interruption. Share fresh QR links for upcoming meetings.
-
Deploy the Cloud Functions and rebuild and publish the SPA. Existing proposal co-signatures remain in storage as historical data. The app displays verified endorsements only, so pending proposals need fresh co-signatures.