Skip to content

Refactor/source registry - #32

Merged
JetSquirrel merged 4 commits into
mainfrom
refactor/source-registry
Aug 28, 2026
Merged

Refactor/source registry#32
JetSquirrel merged 4 commits into
mainfrom
refactor/source-registry

Conversation

@JetSquirrel

Copy link
Copy Markdown
Owner

No description provided.

JetSquirrel and others added 4 commits August 28, 2026 15:28
The roadmap adds model-provider APIs, token plans and local agent usage
on top of the public clouds. Each one would have meant editing the same
48 `CloudProvider::` sites across seven files, so the enum has to go
before any of that work starts.

A source is now a row in `registry::SOURCES` carrying its labels, its
default region, what it reports, and a function pointer that builds its
client. Callers ask the descriptor what a source can do instead of who
it is: the dashboard lists DeepSeek under balances because its reporting
is `Snapshot`, not because it is named DeepSeek, and it skips the trend
request because `trend_window_days()` is None rather than because of a
`matches!` on the variant. Adding a source is a table entry plus a
parser.

Behavior is otherwise unchanged, with two exceptions:

- An account whose stored source id is not registered used to be read
  back as AWS, which would sign its requests with the wrong scheme and
  file the resulting costs under the wrong provider. It is now skipped
  with a warning.
- Switching the add-account form to a source with no region used to
  leave the previous source's region in the field, so a DeepSeek account
  could be saved carrying "us-east-1". The field is now cleared.

Also drops `NewAccountForm`, which was dead and existed only to hold a
`CloudProvider`, and adds a CI step for `cargo test` — three tests
already existed and were never run.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
- Add DeepSeek to hero, stats, features, and FAQ to match the README
- Add macOS Intel download button and fix .zip asset names
- Add install notes (SmartScreen, chmod/xattr) to the download section
- Show the app screenshot below the hero
- Turn the FAQ into native <details> accordions and add an IAM
  permissions entry linking to docs/policies.md
- Add OG meta tags, theme-color, and an inline SVG favicon
- Rework buttons (2px borders, translateY hover), unify card styling,
  add scroll-margin-top, skip link, and <main> landmark
@JetSquirrel
JetSquirrel merged commit 44e287e into main Aug 28, 2026
0 of 2 checks passed
@JetSquirrel
JetSquirrel deleted the refactor/source-registry branch August 28, 2026 08:19
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