Repository navigation
feat(legal): show a legal document's version and effective date - #2665
Merged
Merged
Conversation
…tive date, and list the hub's documents [preview:none] LegalDocumentPage shows the version and effective date the served document states, in place of the time it was last synced, and takes its title from the document when the host passes none, so a host states no per-document copy. useLegalDocuments reads the hub's list of legal documents. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Contributor
🦩 Flamingo Code Review1 finding: 🔴 0 action required · 🟠 0 recommended · 🔵 1 informational Advisory: findings do not block the merge. 1 defect outside any rule Inline comments: 1 new 2 possible problems checked and ruled out
Change set
🤖 Prompt for AI agents: fix every findingNext: commit a suggestion, or hand a comment's prompt to your coding agent. React 👍 on a finding that helped and 👎 on one that is wrong: the reviewer learns from both. Review again. New commits are not reviewed until you ask:
Or comment Updated 2026-10-14 02:46 UTC · reviewed from Michael Assraf's machine |
This was referenced Oct 14, 2026
…documents on the legal page [preview:none] LegalDocumentPage takes a documents prop: a switcher over the hub's list, so a host with one legal route shows every published document and names none. The embedding example uses it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…ocument is its own page [preview:none] LegalDocumentPage shows one document and nothing else. The list carries a one-line summary per document for a host's cards, and utils exports LEGAL_DOCUMENT_TYPES for a statically exported host that prerenders one page per type. The embedding example lists one card per published document. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…in the example, so a failed load still says which one [preview:none] Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…inks only the documents it has pages for [preview:none] Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
michaelassraf
commented
Oct 14, 2026
…f; the example links every legal document [preview:none] LegalDocumentPage takes documentsEndpoint and gets the document's title and FAQ topic from the hub's list, so a host passes only the type and its endpoints. The embedding example's navigation and home page list every document on the hub's list. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… is not available, not an error [preview:none] A 404 from the hub means the document has no published text yet. The page shows its not-available state and logs nothing. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
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.
What
LegalDocumentPageshows the version and effective date the served document states ("Version 2.0 · Effective October 14, 2026") in place of the time it was last synced. A document that states neither keeps the old line.useLegalDocumentsreads the hub's list of legal documents (GET /api/legal): type, title, page, FAQ topic, version, effective date, published.LEGAL_DOCUMENT_TYPES(utils, server-safe): the types of legal document a hub can publish, for a statically exported host that prerenders one page per type.Checked
Type-check, eslint and biome pass; 4 new vitest cases pass.
Change-Set: feat-legal-docs-pipeline
ClickUp task: CU-17tkuw5x9wh Legal documents: split license from Terms of Service, add payment terms, review privacy policy, one pipeline for all legal files
🤖 Generated with Claude Code
Change set
flamingo-stack/openframe-oss-lib#2665: these pull requests are one change, reviewed together.Linked work
Linked by the
Depends-On/Change-Setlines in these descriptions; this block is maintained by the hub.