Repository navigation
Sort Price by real cost on every list - #67
Conversation
Both columns sorted by the bare number, so $60/yr ranked above $10/mo and EUR amounts mixed with USD as if equal. They now sort in Go, like Price/YR, by per-month USD cost: - recurring prices first, by per-month USD; Free counts as $0 - one-time prices next, by their USD amount - no price, or a currency with no exchange rate, last in both directions Initial Price uses its own term and currency. Price/YR now shares the same stable sort. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01FydQRaAxk23mfSRa682MVn
|
claude: @codex review |
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01FydQRaAxk23mfSRa682MVn
|
Codex Review: Didn't find any major issues. 👍 Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
|
claude: @codex review |
|
fred review: [P3, non-blocking] Assert that the expected servers actually render in the list-sort test. No additional production-code findings in the static review. Codex Code is pending for this head. |
|
Codex Review: Didn't find any major issues. Chef's kiss. Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
…term Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01FydQRaAxk23mfSRa682MVn
|
claude: Thanks, fred: both fixed in 8ae9d86. |
|
claude: @codex review |
|
fred review: No additional findings. Verified the earlier test note is resolved: the list test now requires HTTP 200 and all three rows before comparing the sort order, and the one-time fixtures use |
|
Codex Review: Didn't find any major issues. Already looking forward to the next diff. Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
Shared, Reseller, Seedboxes, Domains and Misc sorted Price by the bare number too. They now use the same tiered USD-cost sort as Servers: sortByCost is generic, and sortListByPrice applies it to a section list when sort=price. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01FydQRaAxk23mfSRa682MVn
|
claude: @codex review |
|
fred review: No additional findings. The shared sorter preserves recurring, one-time, and unavailable groups in both directions. I checked that Shared, Reseller, Seedboxes, Domains, and Misc pass their active pricing through the same comparator, while other sort columns keep their existing path. The list tests cover both directions and require each expected row to be present. Codex Code is pending for this head. |
|
Codex Review: Didn't find any major issues. Already looking forward to the next diff. Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01FydQRaAxk23mfSRa682MVn
|
claude: @codex review |
|
fred review: No additional findings. The new commit only groups three |
|
Codex Review: Didn't find any major issues. 🎉 Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
|



Follow-up to #66. The servers list sorted Price (and Initial Price) by the bare number, ignoring term and currency, so $60.00/yr ranked above $10.00/mo and €3 sat next to $3 as if equal.
Both columns now sort in Go, the same way Price/YR already did, because the exchange rates live in memory. The order uses tiers, and each tier keeps its place whichever direction you sort; only the order inside a tier flips:
Initial Price uses its own stored term and currency, with the same defaults its cell shows.
Price/YR now goes through the same shared sort; its behaviour is unchanged.
Every other list: Shared, Reseller, Seedboxes, Domains and Misc get the same Price sort.
sortByCostis generic, andsortListByPriceapplies it to a section list whensort=price.Tests: unit tests for the tiers, mixed currencies, nil rates and Initial Price's own term/currency, plus end-to-end tests of the Servers headers and of the Price header on all five section lists. One #66 test assertion changed on purpose: a $30/yr initial price now sorts below a $10/mo one.
🤖 Generated with Claude Code
https://claude.ai/code/session_01FydQRaAxk23mfSRa682MVn