Repository navigation
feat(docs): add a public changelog page, real GitHub stars, Marketplace root redirect - #451
Merged
Conversation
…ce root redirect A Marketplace buyer already owns the product, so `/` on an aws_marketplace installation goes straight to sign-in, or to the projects page for someone signed in, instead of the landing page. /changelog renders the open-source repository's CHANGELOG.md as release notes in the docs style, linked next to Docs and API. The docs header showed a hard-coded "2.4k" star count; it now shows the repository's real one. Both come from GitHub through OpenSourceRepository, cached so a public page never waits on GitHub: the star count is a deferred prop, and the changelog falls back to the copy the build shipped with when GitHub is out of reach. Co-Authored-By: Claude Opus 5.5 <[email protected]> Signed-off-by: Artem Petrov <[email protected]>
Merged
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
Three changes to the public face of the app.
AWS Marketplace: no landing page. On an
aws_marketplaceinstallation,/now redirects to/loginfor a stranger and to/company/projectsfor someone signed in. A Marketplace buyer already owns the product, so there is nothing for the landing page to sell them. SaaS and self-hosted still show the landing page./changelog. A public page in the docs style that renders the open-source repository'sCHANGELOG.mdas release notes:APP_VERSION)It is parsed by a new
Changelog#releasesin the existinglib/changelog.rb(still plain Ruby, sobin/changelogkeeps working on a bare runner).Real GitHub stars. The docs header showed a hard-coded
★ 2.4k. It now shows the repository'sstargazers_count. When the count cannot be read, it is left out.How GitHub is read
OpenSourceRepository(new adapter) readsapi.github.com/repos/AixleHQ/flowandraw.githubusercontent.com/AixleHQ/flow/develop/CHANGELOG.mdanonymously. It uses the optionalGITHUB_PUBLIC_READ_TOKENfor the API, asPublicRepositoryServicedoes. Both reads sit on public pages, so neither may break one:Rails.cachefor 1 hour; a failure is cached for 10 minutes, so an installation with no egress does not wait out a 3 s timeout on every page viewInertiaRails.deferprop, so the page never waits on GitHub for itCHANGELOG.mdthe image shipped withAlso fixed along the way
≤768pxrule that hides the desktop sidebar also hid the drawer's copy). It now lists Docs / API / Changelog plus every docs page.DocsLayoutwas split: the navbar, search, ⌘K and drawer moved intoDocsShell, which both the docs pages and the changelog page use.Decided: Unreleased stays
The page shows the Unreleased section from
develop, marked Not released yet — kept on purpose, even though on the hosted product it lists work that is not deployed yet.Test plan
bin/rails testfor changelog parser, adapter contract (WebMock), changelog + home + docs request tests: 32 runs greenvitest run app/frontend/pages/Docs: 102 tests green/changelogat desktop and 390 px, the mobile drawer, docs → Changelog navigation, live star count (★ 21) from GitHub🤖 Generated with Claude Code