Repository navigation
fix: disambiguate color swatches and guild hashtags - #1630
Conversation
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
A hashtag had to start with a letter, so guilds like #3dprinting or when a letter follows them. Bare colors and issue references keep their meaning: numbers alone, as in dev-null-sh#123, stay an issue reference, and a word that is a hex color starting with a digit, as in #3d3d3d or #2fa, stays a color and cannot name a guild. Letter-first hashtags such as #dead keep the behaviour from dev-null-sh#1630.
A hashtag had to start with a letter, so guilds like #3dprinting or when a letter follows them. Bare colors and issue references keep their meaning: numbers alone, as in dev-null-sh#123, stay an issue reference, and a word that is a hex color starting with a digit, as in #3d3d3d or #2fa, stays a color and cannot name a guild. Letter-first hashtags such as #dead keep the behaviour from dev-null-sh#1630.
Summary
A bare
#deadrendered as a swatch even when a guild used that handle. Now#deadcan link to the guild, andcolor(#dead)renders the swatch and hex value with the wrapper hidden in the post.Changes
#000, numeric issue references such as#123, and literal examples in code or URLs working.Validation
composer test:lint,composer test:types, andcomposer test:type-coveragepassed. PHP type coverage was 100%.bun run test:unitpassed with 321 Node tests and 1,102 component tests.bun run buildpassed.php -d memory_limit=1G vendor/bin/pest --ci --compact tests/Feature/Controllers/GuildControllerTest.php --filter='excludes explicit swatches'passed with 1 test and 11 assertions.Visual evidence
Before and after use the same fictional posts and
#deadguild in isolated environments. The draft contains#deadand#CAFE. The after preview shows the Dead guild link and the explicit#CAFEswatch. The color-only palette post is absent from the after guild board.Desktop Composer · 1440 × 900 · light
Screenshot matrix
Edge cases in dark mobile emulation. Autofix disabled at the character limit · Code and URLs keep literal colors
Recordings
Desktop · light · mouse autofix and preview
MP4
Desktop · dark · keyboard autofix in the modal
MP4
Mobile viewport · dark · emulated touch. GIF · MP4
Device verification
Safari on an iPhone 18 Pro simulator running iOS 27.0. The software keyboard left Commit visible in both composers. Tapping Use as color restored draft focus. Preview showed the swatch and guild link. The guild link opened the board through Inertia, and a fresh Safari reload kept the color-only post out. Scrolling exposed the floating Composer control above the bottom navigation and Safari toolbar.
Keyboard and hint · Autofix and restored focus · Preview · Guild board · Modal with keyboard
Simulator GIF · Simulator MP4
Independent review
GPT-6.1 Sol, high reasoning, priority service, returned CODE: PASS and VISUAL: PASS for base
c2eccd80d1682e38d3718ca9f3b1c6c70e0c7690and headaff79cda0cb0f13e8d7b31cfe9ea294bf572216f. The reviewer reproduced the autofix and caret restoration in Chromium, ran focused parser and component checks, and inspected the before/after stills, sampled video frames, and native simulator evidence. All 63 media files matched manifest SHA-256ef7b09e2583795dd58c3af9a80232ec36e4af79b7c275d2ad9b7d5ce38ad6878.Limitations
The full PHP coverage suite and hosted checks are left to CI. Mobile verification used Chromium viewport emulation and an iOS simulator. Physical devices and Android were outside this validation pass. The short laptop viewport shows pre-existing sidebar overlap, and the floating Composer button can overlay the far right of a post on mobile in both revisions.
Summary by CodeRabbit
color(#hex)markup for displaying color swatches, with support for 3-, 4-, 6-, and 8-digit hex values.