feat: Add seasonal content for Smithed Summit 2026#91
Merged
Conversation
…t if present
Updated region tag behavior:
**First pick (no region tag in description)** — Inserts `[Region Name]` at the textarea caret. Pill buttons use `onMouseDown` with `preventDefault` so the description field keeps focus and the selection stays put.
**Later picks (any region tag already present)** — Replaces that tag in place, no matter where the caret is.
**After insert/replace** — Refocuses the description field and places the caret right after the tag.
`SongForm` now holds a `descriptionRef` merged with react-hook-form’s `register('description')` ref so `EventSubmissionInfo` can read `selectionStart` / `selectionEnd`.
When inserting a region tag at the caret (first pick, no tag in the description yet), a leading space is added only if the character before the insertion point is not whitespace and the caret is not at the start of the field. Replacing an existing region tag is unchanged — it still swaps the tag in place so any spacing already present stays as-is.
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.
This pull request add seasonal content related to the Smithed Summit jam, hosted on the Note Block World community from May 16 to June 15, 2026.
Features
#summit26).Ends in <days> daysduring the submission period, andAlmost over!during the grace period.Screenshots