Repository navigation
Release: dashboard redesign, MCDI role access, Drop a Drive - #101
Merged
Merged
Conversation
…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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Release
developtomain. Production runs thelatestimages, which CD builds frommain; Watchtower on the VPS pulls them.Included
FRONTEND_URLBefore or right after deploy
MCDI_API_KEYmust 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.envis updated and the API restarted.https://multai.164-68-103-224.sslip.io/api/admin/auth/mcdi/callback.MCDI_BASE_URLshould behttps://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.envsets it.Notes
IMAGE_TAGandMULTAI_FRONT_TAGto the previoussha-<commit>.