Skip to content

fix(ecommerce): add shop categories page, shop links dialog and pinned table fixes - #1674

Merged
sung17 merged 1 commit into
mainfrom
fix/ecommerce-shop-feedback
Nov 9, 2026
Merged

sung17 merged 1 commit into
mainfrom
fix/ecommerce-shop-feedback

Conversation

@sung17

@sung17 sung17 commented Nov 9, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Shop categories page. The new /shop/<ws>/categories page shows the shop's visible top-level categories as cards, with their sub-categories listed under each. A card opens the shop filtered to that category. webshop.getLink (and chatbotx webshop link) now accepts page=categories.
  • Shop links dialog. The bar at the bottom of every Ecommerce page now has Get link. It opens a dialog with three bot-button links to copy: the shop, the cart and the categories. Each row has an icon, a label and a hint, and its link sits in a full-width field next to a Copy button. The layout builds all three links with one app URL lookup and one preview token (createWebshopShareLinks); before, it signed a token for each link.
  • Hidden parent categories. A sub-category whose parent is hidden or deleted is no longer listed in the shop (visibleShopCategories). Its products are already hidden with the parent, so the link led to an empty page. The category grid and the product filters now share one grouping helper.
  • Cart order. Changing a line's quantity (+/-) keeps the line in place, so the cart no longer reorders itself.
  • Data table pinned columns.
    • Pinned cells used hsl(var(--…)) on oklch tokens, which is invalid and rendered them transparent. They now get an opaque background, so scrolled columns no longer show through.
    • Pinned cells also repaint the row's hover and selected tint, including in the header row.
    • The border shadow stays opt-in, so other tables look the same as before.
  • Product import / Meta catalog dialogs. The footer is shown without the extra separator.

The "Start a flow" checkout behaves as it does on main: the customer fills in the form, the order is placed, and then the checkout flow runs in their chat. For an order paid online, the flow runs once the payment comes in, and each order gets the flow only once.

Test plan

  • pnpm lint (i18n parity in all 21 locales, check:invariants)
  • pnpm check-types (pre-commit typecheck, 19/19 tasks)
  • vitest: order + webshop suites, 151 tests. New: cart-lines, shop-categories, a "Start a flow" order placed by form, and a cash-on-delivery order that runs the checkout flow.
  • api-parity-manifest and edge-instrumentation-graph tests
  • invariant-guard agent: no violations
  • Manual: Get link dialog, /categories page, pinned-column tables (hover the header row)
  • Manual: "Start a flow" checkout places the order, empties the cart and sends the flow once

🤖 Generated with Claude Code

…d table fixes

- Web shop: new /shop/<ws>/categories page; webshop.getLink takes
  page=categories; the Ecommerce bar's Get link opens a dialog with the
  shop, cart and categories links (one preview token per page load)
- A sub-category under a hidden parent is no longer listed (its products
  are hidden with the parent); grid and filters share one grouping helper
- Cart lines keep their place when their quantity changes
- Data table: pinned cells are opaque with valid oklch colors and repaint
  the row hover/selected tint, header included
- Product import / Meta catalog dialogs: footer without a separator

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@github-actions github-actions Bot added the bug Something isn't working as expected label Nov 9, 2026
@sung17
sung17 merged commit 10ad88f into main Nov 9, 2026
15 checks passed
hello-jackytruong referenced this pull request in hello-jackytruong/ChatWorkAI Nov 22, 2026
…d table fixes (#1674)

- Web shop: new /shop/<ws>/categories page; webshop.getLink takes
  page=categories; the Ecommerce bar's Get link opens a dialog with the
  shop, cart and categories links (one preview token per page load)
- A sub-category under a hidden parent is no longer listed (its products
  are hidden with the parent); grid and filters share one grouping helper
- Cart lines keep their place when their quantity changes
- Data table: pinned cells are opaque with valid oklch colors and repaint
  the row hover/selected tint, header included
- Product import / Meta catalog dialogs: footer without a separator

Co-authored-by: Deathgiver <[email protected]>
Co-authored-by: Claude Opus 5.5 <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working as expected

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant