Skip to content

Easy editing: Edit beside each section, posts and crew roles in the studio - #56

Merged
vijayakrishnans merged 2 commits into
mainfrom
feat/easy-editing
Dec 1, 2026
Merged

vijayakrishnans merged 2 commits into
mainfrom
feat/easy-editing

Conversation

@vijayakrishnans

Copy link
Copy Markdown
Collaborator

What

Owner request: make editing easy from the web.

Edit beside each section of the product page

The crew who write (Leads and Maintainers) see a small pencil Edit link beside each section. Each link goes to the Studio card that edits that section:

Section Studio card
What it does About
Milestones Stage, posts and milestones
Details Category and stack
Built with Category and stack
Crew (side card and Crew tab) People
Open seats People
Updates list Stage, posts and milestones
  • Arriving at a card's hash (…/settings#about, #topics) opens that card's form in place; other cards scroll into view.
  • The product page is still the page everybody gets, as Product page: one editor — Manage becomes a Studio link #53 decided. The links use the header Studio link's gate, so visitors and the cached HTML get nothing.

Fix: published posts couldn't be edited on the web

  • "Edit post" shows again on each post for the crew who write. It was gated on the Studio-only Manage mode, so it never drew.
  • Studio's Stage, posts and milestones card now lists every post, drafts and published, with Edit (opens the builder on that post) and Remove.
    • Removing a published post asks first, with a red button. A draft is deleted in one press.
    • Both use the existing /{slug}/manage/posts read and the builder's own intent=remove. No new server code.

Fix: crew roles had no web editor

Tests

  • product-maker-view.test.ts covers:
    • every section's Edit link and the card it goes to;
    • the writes gate;
    • a card opening on hash arrival;
    • Studio hosting PostsManager and the crew roles.
  • crew-roles.test.ts is updated for the new Crew heading.
  • Web suite: 2145 passed. Web typecheck and lint are clean.

OWASP:

  • A01 (access control): every write still goes through the crew routes. They resolve the workspace from the session and core authorises each act. The links are only shortcuts and grant nothing.
  • Misclick protection: removing a published post needs a confirm step.

🤖 Generated with Claude Code

vijayakrishnans and others added 2 commits December 1, 2026 15:29
…tudio

Owner request: easy ways to edit from the web.

- Product page: the crew who write see "Edit" beside What it does,
  Milestones, Details, Built with, Crew, Open seats and the Updates list.
  Each goes to the studio card that edits it (/studio/{org}/{profile}/settings#card),
  and an in-place card opens itself when you arrive at its hash. Visitors and
  the cached page get nothing: same gate as the header's Studio link.
- Published posts: "Edit post" shows for the crew who write again (it was
  gated on the studio-only Manage mode, so it never drew). The studio's
  "Stage, posts and milestones" card lists every post, drafts and published,
  with Edit and Remove; removing a published post asks first.
- Crew roles: the roles card and Edit crew are in the studio, under People.
  They had no web editor since the product page stopped editing.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@vijayakrishnans
vijayakrishnans merged commit 9fefecf into main Dec 1, 2026
8 checks passed
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