search: tab one is functional via public itunes lookup#3
Merged
Conversation
ships the m1 search slice without waiting for stealth. uses the public
itunes.apple.com/{search,lookup} endpoints — no auth, no storefront
private api, no risk-control surface. user opens tab one, types two
characters, gets results in their picked country.
* HTTPClient + AsyncThrottle (>=500ms between calls; 1-doc §5 risk #1)
* Endpoints: single source of truth for storefront urls
* SoftwareItem: private raw shape; toApp() sanitizes to the public model
* AppStoreClient protocol + Live impl wrapping URLSession
* Lookup.byBundleID + Search.apps
* SearchView + SearchViewModel with debounced typing, retry, error states,
country menu (12 popular regions; full table arrives with M2 storefront ids)
ios 14 baseline preserved:
* no .focused / .task(id:) / .textInputAutocapitalization
* navigation uses StackNavigationViewStyle, lists use PlainListStyle
* artwork loads via plain URLSession + onAppear/onChange
EvilStoreApp now declares conformance to SwiftUI.App explicitly so the
domain `App` model doesn't shadow the protocol.
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.
what
Search tab works end-to-end against the public itunes lookup/search API.
Type a term, see results, switch storefronts. No login, no stealth, no
private storefront protocol — public itunes APIs only.
why
coming-soon screen
stealth machinery lands; M2 list-versions then plugs into the same
HTTPClient/throttle pair
changes
empty/error/loading states; ios 14 baseline (no @focusstate / .task)
test
Search, expect rows for Telegram + Telegram X with artwork.
not in this PR
via an
Accountparameter when private endpoints land)