Repository navigation
[Guilds 05] Open a guild from its hashtag in a commit or message - #211
Open
shanesmithdev wants to merge 2 commits into
Open
shanesmithdev wants to merge 2 commits into
shanesmithdev wants to merge 2 commits into
Conversation
The guild page's header now has Join or Leave beside the icon, as a profile has Follow, with Commit (posting to the board) where Remote sits. Share stays alone in the top bar. Joining or leaving changes the button and the member count at once, puts them back if devnull refuses, and unmutes a guild you join, as devnull does. Tapping the member count opens the guild's members, as the web lists them: avatar, name, handle and bio, with "(moderator)" on the moderator's row while they're a member, and no Follow buttons.
A hashtag that names a guild now opens the guild instead of a search. Any non-guild hashtag still opens search instead. In a commit it shows as a chip: the guild's name in medium mono on a wash, in a colour picked from its handle. The guild's icon can't sit in text yet, so it's left out for now. In a Remotes message the name keeps the bubble's link colour, which a guild's colour could clash with.
shanesmithdev
force-pushed
the
guilds-05
branch
from
November 23, 2026 16:27
8c82462 to
bc406cf
Compare
shanesmithdev
marked this pull request as ready for review
November 23, 2026 16:33
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.
Status: Pending #210 (Guilds 04) being merged first.
This builds on #210, so until that merges this PR also shows its commit. Only the last commit, "Open a guild from its hashtag in a commit or message", is new here. It uses the guild mentions dev-null.sh now sends with every commit and message, which are merged and live.
Important
The coloured text is a temporary approach, standing in for each guild's icon. The web shows a guild's icon beside its name. The app can't yet.
Once mobile-ui can put images inside text (
Text(Image)or a text attachment on iOS,InlineTextContenton Android), we can show the icon instead. I need to submit a PR for mobile-ui for that.What's in this PR?
A hashtag that names a guild opens the guild, instead of a search for it, as on the web. Any other hashtag still searches.
In a commit, a guild's hashtag shows as a chip with the guild's name, in mono on a soft background, like the web's guild mention.
In a Remotes message, a guild's name is mono in the bubble's link colour, without the background, as inline code is there. A guild's own colour could match the colour of your bubble.
Testing
Pest tests cover:
Locally, the full suite passes. Checked by hand on an iPhone 17 Pro simulator and an Android phone.
Independent review
A fresh reviewer, who hadn't seen the work being built, read this commit. It found one bug, now fixed:
#rust, which replaced the real name devnull sent in its guild mentions, so the chip read "#rust" instead of "Rustaceans". devnull's name now wins, and a test covers it.And a few smaller points:
It also checked that a handle can't break out of the tap's attribute, that hashtags in code, links, quotes and cut-off previews behave, case handling, that every screen drawing these bodies can open a guild, and the project's theme and font rules, and found them fine.
Screenshots
guild-hashtag