Repository navigation
feat: link repair day events to repair booking and fix slug pattern - #54
Merged
Merged
Conversation
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.
On repair days, a pass gets you in, but booking a repair happens on nbtca.space. Nothing on the event page connected the two.
Events marked "这是一场维修日" now show a "预约维修" action next to "加入日历" until the event ends. It links to https://nbtca.space/repair/create-ticket. Tickets booked there already appear in the repair tally while the event runs. Claiming a pass is still not tied to booking a repair, so guests can come without a repair.
The slug field on
/e/newis also fixed. A member could not submitrepair-day-2026-11-27in Safari. The old pattern[a-z0-9][a-z0-9\-]{1,40}renders as\\-in the built HTML, and that is a syntax error under thevflag browsers now use to compilepattern. The new pattern[a-z0-9](?:[a-z0-9]|-){1,40}accepts the same slugs and is valid with both theuandvflags. I could not reproduce the rejection in Playwright's WebKit, so the field now also has atitle, and the browser's error message will spell out the rule if a slug is still refused, for example a full-width hyphen typed with a Chinese input method.