Skip to content

feat(docs): add a public changelog page, real GitHub stars, Marketplace root redirect - #451

Merged
artempartos merged 1 commit into
developfrom
artempartos/aws-marketplace-landing-redirect
Oct 8, 2026
Merged

artempartos merged 1 commit into
developfrom
artempartos/aws-marketplace-landing-redirect

Conversation

@artempartos

@artempartos artempartos commented Oct 8, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Three changes to the public face of the app.

AWS Marketplace: no landing page. On an aws_marketplace installation, / now redirects to /login for a stranger and to /company/projects for 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's CHANGELOG.md as release notes:

  • one section per release, with version, date, a GitHub link and Latest / Not released yet / Installed badges (Installed = the release matching APP_VERSION)
  • changes grouped by Keep a Changelog kind (colour-coded), then by product area; entries without an area are grouped under "Platform & repository"
  • linked next to Docs and API in the docs header and the mobile menu, and from the landing page's Resources menu, mobile sheet and footer

It is parsed by a new Changelog#releases in the existing lib/changelog.rb (still plain Ruby, so bin/changelog keeps working on a bare runner).

Real GitHub stars. The docs header showed a hard-coded ★ 2.4k. It now shows the repository's stargazers_count. When the count cannot be read, it is left out.

How GitHub is read

OpenSourceRepository (new adapter) reads api.github.com/repos/AixleHQ/flow and raw.githubusercontent.com/AixleHQ/flow/develop/CHANGELOG.md anonymously. It uses the optional GITHUB_PUBLIC_READ_TOKEN for the API, as PublicRepositoryService does. Both reads sit on public pages, so neither may break one:

  • results are cached in Rails.cache for 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 view
  • the star count is an InertiaRails.defer prop, so the page never waits on GitHub for it
  • the changelog falls back to the CHANGELOG.md the image shipped with

Also fixed along the way

  • the API guide highlighted "Docs" in the header; it now highlights "API"
  • on a phone, the docs navigation drawer opened empty (the ≤768px rule that hides the desktop sidebar also hid the drawer's copy). It now lists Docs / API / Changelog plus every docs page.

DocsLayout was split: the navbar, search, ⌘K and drawer moved into DocsShell, 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 test for changelog parser, adapter contract (WebMock), changelog + home + docs request tests: 32 runs green
  • vitest run app/frontend/pages/Docs: 102 tests green
  • eslint, tsc, steiger, rubocop, brakeman clean
  • Browser (worktree stack): /changelog at desktop and 390 px, the mobile drawer, docs → Changelog navigation, live star count (★ 21) from GitHub
  • Full suite: CI green (Backend Checks, Frontend Checks, Secret Scan, cla, dco)

🤖 Generated with Claude Code

…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]>
@artempartos
artempartos merged commit a26e3ae into develop Oct 8, 2026
9 checks passed
@artempartos artempartos mentioned this pull request Oct 8, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant