Skip to content

Release: dashboard redesign, MCDI role access, Drop a Drive - #101

Merged
wailbentafat merged 5 commits into
mainfrom
develop
Nov 27, 2026
Merged

wailbentafat merged 5 commits into
mainfrom
develop

Conversation

@wailbentafat

Copy link
Copy Markdown
Collaborator

Release develop to main. Production runs the latest images, which CD builds from main; Watchtower on the VPS pulls them.

Included

Before or right after deploy

  • Production MCDI_API_KEY must be the rotated key for the MultiAI project in MCID. The old key stopped working when the key was rotated, so staff sign-in fails until the production .env is updated and the API restarted.
  • Redirect URI registered in MCID for the production site: https://multai.164-68-103-224.sslip.io/api/admin/auth/mcdi/callback.
  • MCDI_BASE_URL should be https://mcid-api.microclub.info/api (the old default does not serve the authorize route). Fix is in fix(config): use the real MCID API host and server ID #93, not yet merged; check the production .env sets it.

Notes

…96)

* fix(auth): redirect to FRONTEND_URL after MCDI login

The callback sent users to CORS_ORIGINS[0], which is not always the
frontend (local dev lands on a dead port). Add an explicit FRONTEND_URL
setting, falling back to CORS_ORIGINS[0] when unset so existing
deployments keep working.

* feat(auth): grant dashboard access from MCDI roles instead of staff_users

Access to the staff dashboard now comes from the member's MCDI (Discord)
roles: development roles map to admin, Multimedia Leads/Manager to
multi_team_lead, Multimedia to multi. Anyone else gets 403.

The role is re-read from MCDI on every request, and staff_users becomes a
profile row that is created or updated on login (still needed as the
foreign-key target for events, uploads and drive connections). Role lists
are configurable via MCDI_ADMIN_ROLES, MCDI_TEAM_LEAD_ROLES and
MCDI_MULTI_ROLES.

* test(auth): update cookie auth tests for role-based access
* feat(frontend): add MultiAI brand logo components

BrandLogoFull (mark + wordmark) and BrandLogoMark, drawn as plain SVG
paths with no masks or filters so they render reliably.

* feat(frontend): redesign the login screen

Split layout with the brand panel on the navy side and a sign-in card on
the right. The card has the MCDI fingerprint mark on the button, and a
mascot sits on top of it with eyes that follow the cursor (respects
prefers-reduced-motion).
* feat(frontend): add MultiAI brand logo components

BrandLogoFull (mark + wordmark) and BrandLogoMark, drawn as plain SVG
paths with no masks or filters so they render reliably.

* feat(frontend): redesign the login screen

Split layout with the brand panel on the navy side and a sign-in card on
the right. The card has the MCDI fingerprint mark on the button, and a
mascot sits on top of it with eyes that follow the cursor (respects
prefers-reduced-motion).

* feat(frontend): animated logo splash while the session loads

Replace the spinner in LoadingPage with an animated logo splash and keep
it up for a minimum of 1.8s on first load so it can be seen. All motion
stops under prefers-reduced-motion.
…99)

* feat(upload): recursive folder import and optional auto-approve

Folder imports can now walk subfolders (recursive) and, when auto_approve
is set, the upload-group worker approves the group right after the import
completes so photos are promoted and queued for face matching. Both
default to off, so the existing flow is unchanged.

* feat(drive): POST /staff/drive/drop to import a whole Drive folder

Admin-only endpoint that takes a Drive folder link, picks or creates an
event, and starts a recursive, auto-approved folder import. Progress is
read from the existing /staff/uploads/groups/{id} endpoint.

* feat(frontend): Drop a Drive page

New /multi/drop page: paste a Drive folder link, pick or create an event,
choose visibility, and watch the import progress until the photos are
queued for face matching.
* feat(frontend): redesign the dashboard to match the login screen

- Events is the first page; /multi redirects to it.
- New Analytics page built from real events and upload groups. The old home
  page showed hard-coded sample numbers; that mock data is removed.
- Navy banner on every page (faded logo mark), light sidebar, dot-grid
  background, white cards, periwinkle accents from the login palette.
- Events: filter tabs, search, Upload photos action that opens the upload
  page with the event chosen.
- Upload: event cards instead of a dropdown, ?event= preselection.
- Requests: status tabs. Drop a Drive added to the menu (admins only).
- Mascot empty states. Team page removed.

* feat(frontend): remove the Drive settings page

Its three settings (API key, sync interval, output folder) were kept in an
in-memory mock and never reached the backend, which has no such settings.
Google Drive is connected through the OAuth flow instead.

* feat(frontend): Drop a Drive uses the full page width like the other pages

Also restyle the form card and drop the reference to the removed Drive settings page.
@wailbentafat
wailbentafat merged commit 93fcba0 into main Nov 27, 2026
7 of 8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant