Skip to content

fix(web): consolidate app-store hardware product branding (#5855) - #13684

Merged
kodjima33 merged 3 commits into
BasedHardware:mainfrom
apoorvdarshan:cursor/fix-app-store-product-5855-a9bb
Sep 13, 2026
Merged

kodjima33 merged 3 commits into
BasedHardware:mainfrom
apoorvdarshan:cursor/fix-app-store-product-5855-a9bb

Conversation

@apoorvdarshan

@apoorvdarshan apoorvdarshan commented Sep 13, 2026 •

Copy link
Copy Markdown
Collaborator

What changed and why

Fixes #5855. Upstream main already 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 makes APP_STORE_HARDWARE_PRODUCT the 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 on main: 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 when web/frontend (or the workflow) changes.
  • cd web/frontend && npm run lint on touched TS/TSX files — clean.
  • Confirmed on current BasedHardware/omi main: no Duo Dev Kit, 69.99, or legacy dev-kit product hrefs under web/frontend/src/app/apps/ or product-banner/ before this change (values were already Omi / $89 / https://www.omi.me/).

Tests

  • Added web/frontend/src/__tests__/app-store-hardware-product.test.mjs: asserts canonical constants, import wiring, and forbids Duo Dev Kit, $69.99, and legacy product slugs in app-store source trees.

Failure class (fixes)

Failure-Class: none

…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]>
@apoorvdarshan
apoorvdarshan marked this pull request as ready for review September 13, 2026 06:25

@cubic-dev-ai cubic-dev-ai Bot left a comment •

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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]>
@Git-on-my-level

Copy link
Copy Markdown
Member

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:

  • web/frontend/src/constants/app-store-hardware-product.ts — new single source of truth. Every value ('Omi', '$89'/'89', 'USD', the omi.me storefront + marketplace order URLs, shipping, images) byte-matches the literals previously duplicated across the three call sites on base, so there is no user-facing behavior change.
  • web/frontend/src/app/components/product-banner/types.ts — PRODUCT_INFO now re-exports from the constant; the marketplace order URL (with its utm/ref params) is unchanged.
  • web/frontend/src/app/apps/utils/metadata.ts — productInfo reads schemaPrice/currency/storeUrl from the constant; JSON-LD output is unchanged.
  • web/frontend/src/app/apps/[id]/page.tsx — the Product schema sources name/description/schemaPrice/currency from the constant; brand: 'OMI' and the offer url: PRODUCT_INFO.url remain as on base, so structured data is equivalent.
  • web/frontend/src/__tests__/app-store-hardware-product.test.mjs — ran it on this head: 3/3 pass. The forbidden-pattern sweep (Duo Dev Kit / $69.99 / legacy dev-kit product slugs) over the app/apps and product-banner trees is clean, and stripping // comments before matching avoids false hits on explanatory comments — nice touch.
  • .github/agent-docs/pricing-scheme-touchpoint-inventory.md — the three touchpoint rows now correctly read reads_live_no_update_needed pointing at the constant; verified each row against the diff and they are accurate.

One gap worth addressing: nothing in CI runs scripts/run-web-frontend-tests.sh. .github/workflows/web-checks.yml's Frontend Lint job runs npm run lint + lint:format -- --check only, so the new tripwire is currently local-only. A follow-up (or a small addition here) wiring bash scripts/run-web-frontend-tests.sh into web-checks.yml would make the guard actually enforce on PRs.

Two factual notes on the verification section: the full suite on this head shows 74/76 passing rather than 89 — and the two failures (shared-conversation-chat-contract.test.mjs, wrapped-unlimited-deeplink-parity.test.mjs) reproduce identically on the base commit bc37c8a, so they are pre-existing on main and unrelated to this change. The new guard's tests all pass either way.

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 need human response.

@Git-on-my-level Git-on-my-level added positive-signal Automation verified a genuine fix/quality contribution frontend labels Sep 13, 2026
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]>
@cursor
cursor Bot requested a review from Git-on-my-level as a code owner September 13, 2026 10:11
@apoorvdarshan

Copy link
Copy Markdown
Collaborator Author

@Git-on-my-level Wired bash scripts/run-web-frontend-tests.sh into the Frontend Lint job in web-checks.yml (same has_frontend gate) in a6932f27e1. Full suite on this branch is 89/89 locally; noted your ~74/76 / two pre-existing-on-main failures in the PR body.

@kodjima33 kodjima33 left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

@kodjima33
kodjima33 merged commit cbdd984 into BasedHardware:main Sep 13, 2026
29 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

frontend positive-signal Automation verified a genuine fix/quality contribution

Projects

None yet

Development

Successfully merging this pull request may close these issues.

App Store (web/desktop) shows outdated "Duo Dev Kit" + wrong pricing

4 participants