Skip to content

[Guilds 08] Create and edit guilds, and pin to the board - #223

Merged
simonhamp merged 1 commit into
NativePHP:mainfrom
shanesmithdev:guilds-08
Nov 26, 2026
Merged

simonhamp merged 1 commit into
NativePHP:mainfrom
shanesmithdev:guilds-08

Conversation

@shanesmithdev

@shanesmithdev shanesmithdev commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

Status: Ready for review. Not blocked by anything.

Brings the web's guild dialog and board pin to the app, using the guild API that's already on production.

  • Create a guild. The Guilds tab says "Start a public group." with a Create a guild button, which opens a new screen. As you type the display name, the screen shows the hashtag it makes. You add a description, and choose an emoji or upload an image (JPEG, PNG or WebP, up to 2 MB) for the icon. The new guild opens in place of the form. If devnull's moderation holds it for an admin, a toast says so in the web's words, and the form closes.
  • Edit a guild. Its moderator gets an Edit button in the guild's header, between Commit and Leave or Join, the way the web shows its moderator a pencil. It opens the same screen, filled in. The hashtag can't change, so a name that would make a different one is refused, as on the web. Choosing an emoji takes off an uploaded icon.
  • Joined guilds are marked in the directory. A guild you've joined has an icon at the end of its row. The space is kept on every row, so descriptions wrap in the same place either way.
  • Pin to board / Unpin from board. The moderator gets these in a commit's ⋯ menu on the board, for top-level commits only. Pinning takes the place of the previous pin, which goes back into the board.

An edit that uploads a new icon is multipart, and PHP doesn't read a multipart PUT. So it goes as a POST with X-HTTP-Method-Override: PUT, signed as the PUT devnull checks. An edit without a new image is a normal signed JSON PUT.

Testing

  • New Pest tests cover:
    • the client calls, including the multipart edit going as an overridden POST and signed as PUT
    • the create and edit screen: the hashtag preview, the name checks, refused fields, held for review, and pictures over 2 MB
    • who gets Edit and the board pin, the joined mark in the directory, and pinning or unpinning moving the pinned commit
  • The full suite passes locally.
  • Checked by hand on an Android phone against a local dev-null.sh:
    • created guilds with uploaded logos
    • edited a guild's icon
    • pinned and unpinned on a board

Screenshots

Android, dark mode.

Guilds tab

After: "Start a public group." with a Create a guild button above the list, and a joined icon at the end of each guild you've joined (NativePHP, Android, PHP and Apple here).

Before After

A guild you moderate, with a board commit's ⋯ menu open

After: Edit in the header between Commit and Leave, and Pin to board in the commit's menu.

Before After

Edit guild (new screen)

Opened from Edit, filled in from the guild. The hashtag is fixed and the icon is the guild's uploaded logo.

After

Create a guild (new screen)

The hashtag updates as you type the display name. The icon is an emoji until you choose another or upload an image.

After
  • No visible change

@shanesmithdev
shanesmithdev force-pushed the guilds-08 branch 2 times, most recently from 5611561 to 7e8418b Compare November 26, 2026 19:33
@shanesmithdev
shanesmithdev marked this pull request as ready for review November 26, 2026 19:42
@simonhamp
simonhamp merged commit 016da5f into NativePHP:main Nov 26, 2026
6 checks passed
@shanesmithdev
shanesmithdev deleted the guilds-08 branch November 26, 2026 19:55
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.

2 participants