Repository navigation
feat(shopping): open Product Visibility with its data sources, a Why popup and the Shelf and Products tabs (Product Visibility, part 1) - #1636
Merged
gkhngyk merged 5 commits intoOct 28, 2026
Conversation
…popup and the Shelf and Products tabs (product visibility, part 1) The first step to the Products screens in Drive › E-commerce (ECOM-spec, ECOM-mockup): the page says what it's for, "Which of your products AI recommends, why, and what it sells.", with "Why Ansvisor Product Visibility?" beside the title. That opens the four steps from the AI shelf to the sale, and offers Connect Google Analytics while GA isn't connected (ECOM-010). Under the title, the data sources (ECOM-009), as on AI Traffic: - the product catalog (its products and last sync, Manage, or Connect); - Google Analytics and Search Console, each with what it adds here; - a Marketplaces & feeds row: Merchant Center connects as a catalog source, and the marketplaces show Soon until they have a connector. The tabs read Shelf, Prompts, Products and Competitors, the one open in the URL (?tab=products). The sidebar item is new. AI Traffic's Google source card is shared, with an optional line for while it isn't connected. Co-Authored-By: Claude Opus 5.5 <[email protected]>
…ibility-shell Co-Authored-By: Claude Opus 5.5 <[email protected]>
This was referenced Oct 28, 2026
# Conflicts: # web/src/lib/dashboard-navigation.test.ts
Collaborator
Author
|
Merged main forward (8356ba3): resolved lib/dashboard-navigation.test.ts (kept the Shopping "New" test and main's menu access test). Typecheck and navigation tests pass. |
gkhngyk
approved these changes
Oct 28, 2026
gkhngyk
left a comment
Contributor
There was a problem hiding this comment.
Looks good, with follow-ups.
What I checked:
- Own change. a5baa55 plus a merge of main (cf37045); a re-merge of its parents gives the same tree. No migration.
- Merge on today's main. It needs a merge of main:
web/src/lib/dashboard-navigation.test.tsconflicts (main added "hides a section off the viewer's menu" where this adds "marks Shopping new"; keep both).web/src/config/dashboard.tsmerges cleanly with the menu-access change. - Data strip. It reads the catalog sources and the Google sources through the existing
listCatalogSourcesandgetTrafficSourcesactions, so organization scoping is the same as on Settings and AI Traffic. A failed read shows "Couldn't be read right now" rather than an empty strip. A read for the brand you just switched away from counts as loading, so the strip never shows the old brand's sources. Connect and Connect Google Analytics only show for managers (canManage).GoogleSourcegets an optionalpitch, and AI Traffic's strip is unchanged without it. - Tabs.
?tab=is read withreadUrlChoice, so an old or unknown value (overview,own_products) opens the Shelf. Nothing else in the app links to the old tab values. - Tests. On the PR's tree,
tscis clean, and the shopping tests plusdashboard-navigation.test.tspass (8 files, 48 tests). Prettier and eslint are clean on the touched files.
Follow-ups (none block):
- The Why popup promises "The agent rewrites titles, feed fields and schema. You approve, we send it to Shopify." Make sure the later parts ship that before this goes live, or soften it until they do.
- The Marketplaces & feeds row shows Amazon, eBay, Walmart, Etsy, Trendyol and Hepsiburada as "Soon" to everyone. If none of them is planned for this quarter, a shorter list would promise less.
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
Product Visibility, part 1 of 14: the page's frame. It starts the Product Visibility screens of the ECOM spec and mockup (Drive › E-commerce, 2026-10-20): what the page is for, what feeds it, and tabs you can link to.
From main. This PR's own change is its commit after main: a5baa55. Parts 2–14 are stacked on it, one on the other.
Reviewing in three waves (suggested):
Where you see it:
shopping_analyticssee it locked, as before./dashboard/shopping. The menu keeps its name; the mockup's "Products" is a tab here.Header (ECOM-010):
Data sources (ECOM-009), under the header, as on AI Traffic:
GoogleSourceis exported, with an optionalpitchline for while it isn't connected.Marketplaces & feeds row, under the strip:
Tabs:
?tab=products), so a tab can be linked and survives a reload.Related issue
No issue: ECOM-001, ECOM-009 and ECOM-010 in Drive › E-commerce › ECOM-spec.md. The screens' tasks were only in epic #1190, closed as not planned.
Type of change
feat— New featurefix— Bug fixchore— Maintenance / dependenciesdocs— Documentation onlyrefactor— Code change that neither fixes a bug nor adds a featuretest— Adding or updating testsHow to test
cd web && yarn vitest run "src/app/[locale]/(dashboard)/dashboard/shopping" src/lib/dashboard-navigation.test.ts?tab=products, and a reload keeps it.Browser check, at the top of the chain (part 14), not on this branch alone:
Checklist
feature/,fix/,chore/,docs/) — see CONTRIBUTING.mdyarn lintpasses (run fromweb/)yarn typecheckpasses (run fromweb/)yarn format:checkpasses (run fromweb/)Checks:
server/npm test(3,383 tests),web/vitest(4,451 tests) andyarn build.yarn typecheck, and the tests, eslint and prettier of the files it changes.For you, @gkhngyk:
🤖 Generated with Claude Code