Repository navigation
feat: cover events across the admin panel, admin bar and docs - #102
Open
InnerDesires wants to merge 1 commit into
Open
InnerDesires wants to merge 1 commit into
InnerDesires wants to merge 1 commit into
Conversation
- admin bar: add Events and Календар змін links, remove all + create buttons - dashboard: events and event-registration counters, new-event quick action - event page in admin lists its registrations (join field) so admins can see and manually add participants - event-enrollments user and event are editable on create only (field-level update access) instead of read-only, which made manual sign-ups impossible - docs: new manager category Події (create, registrations, on the site) and technical articles (data model, business logic); events added to overview, comments/likes, access matrix, rate limits, search, migrations, testing - tests: admin e2e for dashboard, lists and admin bar; join/immutability int tests; docs coverage test; scope a cascade test to the events target
|
The latest updates on your projects. Learn more about Vercel for GitHub. 1 Skipped Deployment
|
This branch has not been deployed
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.
What
Makes events first-class in the admin experience: admin bar, dashboard, the event/registration screens, and documentation for both tracks.
Admin bar (site toolbar for admins)
+create button from every entry./admin/globals/home-calendar) links. Links now carry their ownhref, so globals and collections share one list.data-testid="admin-bar"; the small-screen hiding rule is untouched.Admin panel
registrationsjoin field lists who registered (virtual, no schema change/migration). Its Додати новий button opens the registration drawer with the event pre-filled, so admins can register someone by hand.event-enrollments:userandeventwereadmin.readOnly, which made manual sign-ups impossible even though the hook allows admins to bypass capacity/finished/draft rules. They are now editable on create only via field-levelaccess.update: () => false, so an existing registration still can't be re-pointed (covered by a test).Documentation (in-admin, both tracks)
meetingLinkprotection, why no embedded Zoom, Europe/Kyiv time handling, ISR/revalidation, integrations, tests). Updated model overview + cascade map, comments/likes, admin customisations (incl.AdminBar), access matrix, rate limits, search, MCP, migrations (enum gotcha + preview DB), testing, dev-cycle checklist./admin/docs/...links verified to resolve.Tests
admin.e2e.spec.ts: dashboard covers events, events + registrations lists open, admin bar has Events/Календар змін and no create links.events.int/event-enrollments.int: join field visible to admins and not to the public; admin manual registration anduser/eventimmutability.admin-docs.int: events documented in both tracks.targetIdonly, so it failed whenever the new event id equalled the id of a course that has comments.Notes
tsx --env-file=.env.local --env-file=.env tests/helpers/seedUser.ts).🤖 Generated with Claude Code