Ownership and wiki mode in the UI (#13) #27

Merged
miko merged 2 commits from feature/13-ownership-wiki-ui into development 2026-11-02 11:21:08 +01:00
Owner

Closes #13.

What

  • Guide editor → Properties: owner, any author in wiki mode, or an admin can change visibility, category and wiki mode (ADR-0003). Publish/unpublish stays on the reading page.
  • "Internal via category X" hint when an ancestor category makes the guide internal (nearest such category).
  • Ownership transfer for admins, to any author or admin.
  • Reading view shows owner and last editor with date.

Notes

  • Admins can also receive ownership (canOwnGuides), slightly beyond "author role" in the issue.
  • Per-guide visibility/category/wiki mode are called properties, since GLOSSARY.md reserves Setting for instance-wide values.
  • Property saves don't bump the content version, so they never conflict with an open content form; concurrent property saves are last-write-wins.
  • Property changes and transfers update "last edited by".
  • No schema change.

Tests

Unit tests for canOwnGuides, internalAncestor and guidePropertiesFrom; full suite 155/155, typecheck and lint clean.

🤖 Generated with Claude Code

Closes #13. ## What - **Guide editor → Properties**: owner, any author in wiki mode, or an admin can change visibility, category and wiki mode (ADR-0003). Publish/unpublish stays on the reading page. - **"Internal via category X"** hint when an ancestor category makes the guide internal (nearest such category). - **Ownership transfer** for admins, to any author or admin. - **Reading view** shows owner and last editor with date. ## Notes - Admins can also receive ownership (`canOwnGuides`), slightly beyond "author role" in the issue. - Per-guide visibility/category/wiki mode are called *properties*, since GLOSSARY.md reserves *Setting* for instance-wide values. - Property saves don't bump the content version, so they never conflict with an open content form; concurrent property saves are last-write-wins. - Property changes and transfers update "last edited by". - No schema change. ## Tests Unit tests for `canOwnGuides`, `internalAncestor` and `guidePropertiesFrom`; full suite 155/155, typecheck and lint clean. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
The guide editor gets a Settings section for visibility, category and
wiki mode, with a hint when an ancestor category makes the guide
internal. Admins can transfer ownership to an author or admin. The
reading view shows the owner and the last editor.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- Call visibility, category and wiki mode the guide's "properties", as
  GLOSSARY.md reserves "Setting" for instance-wide values
- Validate the visibility with a type guard instead of a cast
- Derive canCreateGuide from canOwnGuides; share the owner type
- Hint wording also fits a guide that is internal itself
- Skip the update when ownership goes to the current owner

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
miko merged commit d59232b74c into development 2026-11-02 11:21:08 +01:00
Sign in to join this conversation.
No reviewers
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
MassiveDynamic/kataba!27
No description provided.