Repository navigation
Conversation
…are#5855) Centralize Omi name, $89 price, and storefront URLs in APP_STORE_HARDWARE_PRODUCT so marketplace banners, SEO JSON-LD, and app detail structured data stay aligned. Add node:test guard that fails if Duo Dev Kit, $69.99, or legacy dev-kit product slugs reappear under web/frontend app-store surfaces. Verification: - bash scripts/run-web-frontend-tests.sh (89 pass, incl. new guard) - cd web/frontend && npm run lint (touched files) Co-authored-by: Apoorv Darshan <[email protected]>
There was a problem hiding this comment.
All reported issues were addressed across 6 files
Reply with feedback, questions, or to request a fix.
Re-trigger cubic
- Assert per-surface APP_STORE_HARDWARE_PRODUCT property wiring (banner, metadata, app detail) instead of import-only checks. - Scan constants file in legacy-slug guard; strip line comments without truncating https:// URL literals. Verification: bash scripts/run-web-frontend-tests.sh (89 pass) Co-authored-by: Apoorv Darshan <[email protected]>
|
Thanks @apoorvdarshan — verified this end to end on the PR head; the consolidation is value-identical and the new guard passes. What I checked per file:
One gap worth addressing: nothing in CI runs Two factual notes on the verification section: the full suite on this head shows 74/76 passing rather than 89 — and the two failures ( Good cleanup — three independent $89/branding literals collapsing into one audited constant is exactly the direction the touchpoint inventory wants. Leaving for human maintainer review for the merge and the CI-wiring decision. by AI on behalf of David — if you need David’s attention urgently, please @Git-on-my-level and escalate with |
Wire scripts/run-web-frontend-tests.sh into the Frontend Lint job so app-store-hardware-product and other web/frontend guards enforce on PRs. Co-authored-by: Apoorv Darshan <[email protected]>
|
@Git-on-my-level Wired |
kodjima33
left a comment
There was a problem hiding this comment.
fix(web): consolidates hardware-branding literals into one source of truth + regression test guarding against reintroducing discontinued Duo Dev Kit / $69.99 branding (fixes #5855). CI green, tests added, workflow change is just wiring the new test into CI. Confidence 5/5. Merging.
What changed and why
Fixes #5855. Upstream
mainalready updated marketplace copy away from Duo Dev Kit / $69.99 (#7735, #11696), but name, price, and storefront URL still lived in three independent literals. This PR makesAPP_STORE_HARDWARE_PRODUCTthe single source of truth for h.omi.me app-store banners, SEO JSON-LD, and app-detail Product schema, and adds a node:test guard so discontinued branding or pricing cannot creep back onto those surfaces.Product invariants affected
none
How it was verified
bash scripts/run-web-frontend-tests.sh— full suite (89 tests on this branch; David noted ~74/76 with 2 failures pre-existing onmain:shared-conversation-chat-contract.test.mjs,wrapped-unlimited-deeplink-parity.test.mjs)..github/workflows/web-checks.yml— Frontend Lint job now runs the same script on PRs whenweb/frontend(or the workflow) changes.cd web/frontend && npm run linton touched TS/TSX files — clean.BasedHardware/omimain: noDuo Dev Kit,69.99, or legacy dev-kit product hrefs underweb/frontend/src/app/apps/orproduct-banner/before this change (values were already Omi / $89 /https://www.omi.me/).Tests
web/frontend/src/__tests__/app-store-hardware-product.test.mjs: asserts canonical constants, import wiring, and forbidsDuo Dev Kit,$69.99, and legacy product slugs in app-store source trees.Failure class (fixes)
Failure-Class: none