MotirBuilding in public
MOTIR · moooon
onMotir
You’re viewing a public project. Anyone can view it — no account needed. Sign in to submit, upvote, or comment on requests.View-only — you can’t edit work items
MOTIR-774

6.16 Editable public hero (text + tags) + in-place public-page editing; remove the settings editor

Done
Description

The public Overview page (6.12.4) renders an authored README body (publicOverviewMd, editable since 6.12.8), but the HERO is not editable, and the only editor lives in a buried, wrong place (Settings → Members/Access → Public share → Overview → Edit, 6.12.8's EditOverview).

Make the whole public hero authorable and move overview editing onto the public page itself: a project admin viewing their own public page sees an "Edit page" affordance and edits, in place (WYSIWYG — the live page is the preview):

  1. Hero text — a per-project publicTagline (the subtitle), falling back to the generic i18n line only when unset.
  2. Tags — add/remove the hero meta pills (publicTags), replacing today's hardcoded i18n pills ("Vibe project / Open source / License / MCP-native").
  3. README body — the existing publicOverviewMd, now edited on-page instead of in settings.

Remove the in-settings editor (explicit user request): delete the 6.12.8 EditOverview sub-view from project settings; the make-public toggle + shareable link stay in Settings (access concerns), with an "Edit on the public page →" link replacing the embedded editor.

Also reseat Motir's own copy: the "Vibe your whole project. Bring an idea — Motir's three AI layers plan it, track it, and ship it, end to end. You're looking at Motir, built in Motir." line moves OUT of the top of the seeded README body and INTO publicTagline; Motir's tags become authored publicTags.

Out of scope (flagged follow-up): the Links sidebar (no authorable columns yet).

Why

User feedback (2026-06-15): "I can only edit the body, the hero is not editable"; "better UX: the user sees the public page, the page has an Edit button exposed, edits on the page if they're the project admin"; "the user should be able to edit the hero text, add/remove tags, update readme"; "remove the implemented editor from the project settings".

Context refs

  • app/(public)/p/[identifier]/page.tsx (reads getSession()+actorUserId, calls getPublicOverview(identifier, actorUserId))
  • app/(public)/_components/PublicOverviewHero.tsx (tagline ~32-35/80-82; hardcoded meta pills ~61-76)
  • 6.12.8 editor to REMOVE: EditOverview.tsx, ProjectMembersSettings.tsx (~509-596); keep updateProjectOverviewAction/setPublicOverview (reused on-page)
  • prisma/schema.prisma Project.publicOverviewMd (~381-387)
  • scripts/plan-seed/motirOverview.ts, seed.ts (~329-334)
  • design: design/public-projects/ (Panels 1/6/7)