Repository navigation
Add Docker Hub image search (Explore) - #9
Merged
Merged
Conversation
Adds an Explore screen that searches Docker Hub and pulls straight into the local container store — closing the main gap with comparable tools. - New network seam: `HTTPClient` protocol + `URLSessionHTTPClient` (Core/Net), the network-side counterpart to `CommandRunner`, since the `container` CLI has no registry-search command. Mockable for tests. - `DockerHubService` over Hub's legacy `/v2/search/repositories/` (flat schema, exact counts) with a per-repo tags endpoint; models decode Hub's snake_case + nanosecond timestamps (dates kept as String). - Explore feature: debounced, cancellable search; Official badges + star/pull counts; a per-repo tag inspector (size/platform/date); one-click Pull that pre-fills the existing pull sheet with `docker.io/<ns>/<repo>:<tag>`. - Wiring: a distinct accent "Explore" button pinned in the sidebar, a "Search Docker Hub…" command-palette action, and `dockerHubService` on AppModel. - Tests: URL building, search/tags decoding, HTTP + decode error mapping, compactCount (incl. unit-boundary regressions), and ISO8601 parsing. - Also includes the README Homebrew install section. Co-Authored-By: Claude Opus 4.8 (1M context) <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.
Summary
A new Explore screen that searches Docker Hub and pulls straight into the local
containerstore — the one competitive gap versus comparable tools.Core/Net/HTTPClient.swift):HTTPClientprotocol +URLSessionHTTPClient, the network-side counterpart toCommandRunner. ThecontainerCLI has no registry-search command, so this is the one place the app talks to the network directly; it's mockable for tests.DockerHubServiceover Hub's legacy/v2/search/repositories/(flat schema, exact star/pull counts) plus a per-repo tags endpoint. Models decode Hub's snake_case and nanosecond timestamps (dates kept asString).docker.io/<ns>/<repo>:<tag>.dockerHubServiceonAppModel.Tests
New
DockerHubTestssuite: URL building (percent-encoding), search/tags decoding, HTTP + decode error mapping,compactCount(including unit-boundary regressions), and ISO8601 parsing. Full suite: 106 tests, 14 suites, all passing; app target builds clean.Notes
compactCountunit-boundary promotion, tag-flash on repo switch).🤖 Generated with Claude Code