How scayle-us/addon-demo-b2b works
This is a SCAYLE Panel Demo Add-on: a Vue application demonstrating panel pages and commerce-management workflows, not a complete commerce backend. Users navigate routed examples; the product-listing flow filters and paginates products, renders a table, and supports deletion. B2B examples include users, customers, business accounts, and price lists, with selected pages calling the admin API and business-account pages using browser storage. The product query and deletion use mock-product modules absent from the supplied tree; unsampled page behavior is represented conservatively, and edges show only documented or indexed relationships.
Main entry points: routes.ts Route definitions · ProductsListing.vue Product listing · CustomerDetailPage.vue Customer detail · Breadcrumbs.vue Breadcrumbs
Components 22
Panel navigation
- Router
src/router.ts - Route definitions
src/routes.ts - Other demo pages
src/pages
Product listing
- Products page
src/components/ProductsListing/ProductsPage.vue - Product listing
src/components/ProductsListing/ProductsListing.vue - Listing header
src/components/ProductsListing/ProductsListingHeader/ProductsListingHeader.vue - Listing body
src/components/ProductsListing/PrdocutsListingBody/ProductsListingBody.vue - Product query
src/composables/useFetchProductsQuery.ts - Listing filters
src/composables/useProductListingFilters.ts - Bulk deletion
src/composables/useDeleteProductsMutation.ts - Single deletion
src/composables/useDeleteProductMutation.ts - Column templates
src/components/ColumnTemplates
B2B management
- B2B pages
src/pages - Price lists
src/pages/PriceListsPage.vue - Customer detail
src/pages/CustomerDetailPage.vue - Business account detail
src/pages/BusinessAccountDetailPage.vue - Business account storage
src/store/businessAccounts.ts
Shared services
- Breadcrumbs
src/components/Breadcrumbs/Breadcrumbs.vue - API configuration
src/api/index.ts - HTTP API client
src/api/client.ts
Other components
- Panel user
- SCAYLE APIs
Connections 26
- Panel user → Router: navigates
- Router → Route definitions: loads routes
src/router.ts - Route definitions → Other demo pages: routes to
src/routes.ts - Route definitions → Products page: routes to
src/routes.ts - Route definitions → B2B pages: routes to
src/routes.ts - Route definitions → Price lists: routes to
src/routes.ts - Route definitions → Customer detail: routes to
src/routes.ts - Route definitions → Business account detail: routes to
src/routes.ts - Products page → Breadcrumbs: renders
src/components/ProductsListing/ProductsPage.vue - Products page → Product listing: renders
src/components/ProductsListing/ProductsPage.vue - Product listing → Listing header: renders
src/components/ProductsListing/ProductsListing.vue - Product listing → Listing body: renders
src/components/ProductsListing/ProductsListing.vue - Product listing → Column templates: configures
src/components/ProductsListing/ProductsListing.vue - Product listing → Listing filters: uses
src/components/ProductsListing/ProductsListing.vue - Product listing → Product query: queries
src/components/ProductsListing/ProductsListing.vue - Product listing → Bulk deletion: deletes selected
src/components/ProductsListing/ProductsListing.vue - Single deletion → Bulk deletion: delegates to
src/composables/useDeleteProductMutation.ts - Price lists → Breadcrumbs: renders
src/pages/PriceListsPage.vue - Price lists → API configuration: requests products
src/pages/PriceListsPage.vue - Customer detail → Breadcrumbs: renders
src/pages/CustomerDetailPage.vue - Customer detail → API configuration: calls API
src/pages/CustomerDetailPage.vue - Customer detail → Business account storage: uses
src/pages/CustomerDetailPage.vue - Business account detail → Breadcrumbs: renders
src/pages/BusinessAccountDetailPage.vue - Business account detail → Business account storage: uses
src/pages/BusinessAccountDetailPage.vue - API configuration → HTTP API client: creates clients
src/api/index.ts - HTTP API client → SCAYLE APIs: sends HTTP requests
src/api/client.ts