Skip to content

[Guilds 06] Mute, report and share a guild from its ⋯ menu - #215

Draft
shanesmithdev wants to merge 4 commits into
NativePHP:mainfrom
shanesmithdev:guilds-06
Draft

shanesmithdev wants to merge 4 commits into
NativePHP:mainfrom
shanesmithdev:guilds-06

Conversation

@shanesmithdev

Copy link
Copy Markdown
Contributor

Status: Pending #211 (Guilds 05) being merged first.

This builds on #211, which builds on #210 and #214, so until those merge this PR also shows their commits. Only the guild page's ⋯ menu is new here. It uses the guild mute and report API in dev-null.sh, which is merged and live.

What's in this PR?

  • The guild page's top bar has a ⋯ menu in place of Share, like the ⋯ on someone else's profile:

    • Share guild, as the Share button did previously
    • Mute #handle or Unmute #handle, only while you haven't joined (joining clears a mute)
    • Report guild, except for the guild's moderator, which devnull rejects a report from
  • Mute and Unmute ask first, as on a profile ("Mute #laravel?" / "You won't see its commits in your logs or search."). The menu updates straight away and goes back, with the reason, if devnull rejects the request for whatever reason.

  • Report guild opens a sheet like the commit reporting: "Report Laravel", "Your report is private. Admins will review the description and icon. Reporting does not hide the guild.", a required "What looks wrong?" (up to 500 characters) and "Send report". Once devnull has it, the sheet says "Report received. Admins will review it privately." If devnull rejects the request, the reason shows in the sheet and what you wrote stays so it doesn't need to be re-typed.

Testing

Pest tests (GuildMenuTest) cover the menu for a guild you haven't joined, have joined, have muted, moderate and one that's paused; muting and unmuting with Cancel, refusals and joining after muting; and reporting, including details of only spaces, refusals, swiping the sheet away and Done.

Locally, the full suite passes. Checked by hand on an Android phone against a local dev-null.sh.

Independent review

A fresh reviewer, who hadn't seen the work being built, read the change and the screenshots. It found one issue, now fixed: Done reset the report sheet while it was still closing, so it could go blank or grow as it slid away.

Screenshots

iOS is missing: building for iOS needs Xcode 27.2, which isn't installed on my local machine yet.

Android light Android dark
Guild page, before
Guild page, after
⋯ menu
Mute alert
Report sheet
Report received
  • No visible change

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
shanesmithdev marked this pull request as draft November 24, 2026 16:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant