VEYNDO
Handbook
frontend/src/admin/b2b/README.mdView source ↗

English source · 1 min

B2B workspace

B2BWorkspace composes company editing, UnitEditor and membership management; UnitCatalog searches native products and UnitMethods inherits translated shipping/payment methods; Quotes edits cart-bound merchant offers. All operations use /api/b2b, optimistic revisions and current role scopes. Shared wire types, styles and vocabularies live under shared/b2b and shared/i18n; buyer UI stays under storefront/account. Unit/order authorities remain in the native Rust owner, not UI calculations.

Organization references

reference.ts creates native-valid company and purchasing-unit IDs. The API requires a lowercase first letter and no more than 32 characters; never use a bare UUID, whose first character may be a digit. The creation regression exercises both real editor request paths with a digit-led UUID.