Conversation
🎩 PreviewA preview build has been created at: |
This was referenced Sep 22, 2026
Draft
Collaborator
Author
This was referenced Sep 22, 2026
A document written on the project page was invisible in Tangent, and Tangent could not write one at all. The two halves of one project each held things the other could not see. Documents now say what they are — `type: "document"` alongside the pipelines and runs already marked — so listing by kind is one rule rather than a rule plus the rows that fall outside it. A document carries its own body and points at nothing, so it records no identity: the row is the document, and the row's own id is what addresses it, which is also why the identity cannot be written at creation time. Tangent gains the same form the project page uses, extracted so the wording, validation and trimming cannot drift apart, and a workarea kind that shows the body read-only, highlighted by whatever the author called it. The language guess moves next to the viewer it feeds, since two callers now want it. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
camielvs
force-pushed
the
09-21-feat_documents_on_both_pages
branch
from
September 22, 2026 01:18
5257550 to
3424b58
Compare
This was referenced Sep 22, 2026
This was referenced Sep 22, 2026
This branch has not been deployed
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.

Third of the standardization PRs. A document written on the project page was invisible in Tangent, and Tangent could not write one at all — each half of a project held things the other could not see.
What a document is now
Documents say what they are, alongside the pipelines and runs #2765 already marked, so listing by kind is one rule rather than a rule plus the rows that fall outside it.
A document records no identity, which is the one place it differs from every other row. It carries its own body and points at nothing: the row is the document, and the row's own id is what addresses it. That id does not exist until the row does, so the identity cannot be written at creation time —
ResourcesWindowContentderivesdocument://id/<rowId>when it lists one, anddocumentjoins the target grammar as an id-only kind.Both pages
DocumentFormso the wording, validation and trimming cannot drift apart between the two dialogs.documentworkarea kind renderspayload.contentread-only throughCodeViewer, highlighted by whatever the author called the document (notes.md→ markdown, anything unrecognised → plain text).languageFormoves next to the viewer it feeds now that two callers want it.payload.content, and now it renders Tangent's documents too.Testing
pnpm run validateandnpx vitest rungreen (3065 tests). New: the document kind's four render cases, the resources window's listing and filtering, and the descriptor and grammar additions.Verified in a browser, both directions:
Model card · Documenton the project pageWritten on the project page · Documentin Tangent🤖 Generated with Claude Code