Skip to content
CKStudentCouncilPublic

About

建中班代大會議事系統

Resources

Stars

3 stars

Watchers

1 watching

Forks

Repository files navigation

CK Student Council Legistaive Platform (cksc-platform)

A legislative platform with punch-in, voting and legal code keeping features

Install the dependencies

yarn
# or
npm install

Start the app in development mode (hot-code reloading, error reporting, etc.)

quasar dev

Lint the files

yarn lint
# or
npm run lint

Format the files

yarn format
# or
npm run format

Build the app for production

quasar build

Customize the configuration

See Configuring quasar.config.js.

Error monitoring (Sentry)

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.

Deploying the meeting and proposal authorization changes

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.

  1. Deploy firestore:rules,firestore:indexes from firebase/. Wait for the new meeting indexes to finish building.

  2. Build firebase/functions with npm 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.

  3. 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.

About

建中班代大會議事系統

Resources

Stars

3 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages