Repository navigation
feat(wiki): pages in spaces with authors and history - #42
Merged
Merged
Conversation
# Conflicts: # CHANGELOG.md # app/ui/events.ts
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
The wiki was one
wiki.mdwritten once by the engineering lead, folder by folder. So it read like a map of the repo, and nothing about the product. Now it's pages in spaces, each with an author and a history, drafted by the people who'd know.crates/core/src/wiki.rsholds pages,clean()(a page can't escape the folder), history, restore, rename,find()for old section names,parse()for drafts, and the migration fromwiki.md.Companykeepswiki(),brief(),write_brief(),add_to_wiki()andset_wiki_section()on top of pages, so prompts and planning didn't change shape. Prompts get every non-empty page under# Space / Title.onecorp wiki redraft [--by]), by the team or one person.question → answerto Company/Decisions.Evidence
wiki::tests: an oldwiki.mdmigrates into pages, authors are logged (an unchanged save isn't), restore works, rename keeps history,../is refused, drafts parse.tests/kickoff.rs:write_wikimakes two tickets, Odile for Engineering and Rui for Product. Each page's history names its writer, Now stays empty, the brief is kept, a resumed run saves again, and a draft can't overwrite a page it wasn't asked for.cargo test, clippy-D warnings,ui-smoke.jsandonboarding.mjspass. Browser mock:#wiki-page,#wiki-empty,#wiki-history,#wiki-edit.Merge Danger
Door: one-way, for existing companies' data
The first open moves
wiki.mdintowiki/and renames it towiki-before-pages.md. Nothing is deleted, but going back to an older app would show an empty wiki until the file is renamed back.Blast Radius: medium
Touches every prompt's wiki text, the CLI
wikicommands (editnow takes a page) andpropose_wiki. Overlaps #41 inCHANGELOG.md,preview.tsandwork.rs; whichever merges second needs a small rebase.