Company Switcher Documentation#655
Merged
bdenham merged 30 commits intoreleases/b2b-nov-releasefrom Jan 13, 2026
Merged
Conversation
This PR adds the company-switcher dropin documentation (10 files). Enrichment files are already in the base branch (releases/b2b-nov-release). Base: releases/b2b-nov-release
ishakhsuvarov
approved these changes
Dec 12, 2025
… drop-in-specific configuration options
- Convert all parameter descriptions to verb-first, action-oriented form - Provide useful context beyond parameter names
slavvka
suggested changes
Dec 12, 2025
slavvka
left a comment
There was a problem hiding this comment.
Thanks for the Company Switcher documentation!
I checked the dropin code - the CompanySwitcher container already has JSDoc for its props, so no updates needed on our side. You just need to pull the latest code and regenerate.
Restore enrichment and checkout files to match the base branch state. These files should remain unchanged in this PR as they are not part of the Company Switcher documentation.
4ff1f86 to
b3cb4a2
Compare
- Remove parameters that don't exist in the source code: withHeader, withWrapper, className, approvalRuleID, routeApprovalRulesList, routePurchaseOrderDetails, onBack, onSuccess, onError, purchaseOrderId, requisitionListId, routeRequisitionList, routeRequisitionListView, companyId, userId - Keep only valid parameters: ariaLabel, onCompanyChange - Regenerate all company-switcher docs from b2b-suite-release1 - Update version from 1.0.6-beta2 to 1.0.6-beta5
slavvka
approved these changes
Dec 18, 2025
slavvka
approved these changes
Dec 18, 2025
…cher-v2 # Conflicts: # _dropin-enrichments/company-switcher/containers.json
Feature branches now receive safeguard files (Git hooks, GitHub Actions, publication docs) when merged from releases/b2b-nov-release. The validation script needs to explicitly allow these files: - .githooks/ directory - .github/workflows/ (safeguard workflows) - All .md files (includes PUBLISH-B2B-README.md, etc.) This prevents false validation failures on feature branches.
Changed pattern from ^\.github/workflows/ to ^\.github/ to include files like .github/PULL_REQUEST_TEMPLATE_PUBLICATION.md This was causing validation failures because the PR template is in .github/ root, not in workflows/ subdirectory.
The validation workflow is blocking all PRs. Disabling it temporarily to unblock the team while we diagnose the root cause. The workflow file is renamed to .yml.disabled so it won't run.
Change broken links from /merchants/blocks/targeted-block/ to /merchants/commerce-blocks/personalization/ to fix build errors.
Applied same fixes as b2b-preview (commit e70bec4): - Complete B2B dropins sidebar with all 4 dropins - Restored 30 B2B commerce block files - Added B2B Commerce blocks section to sidebar
dshevtsov
reviewed
Dec 19, 2025
Collaborator
There was a problem hiding this comment.
Please explain this change
keharper
requested changes
Jan 6, 2026
Contributor
keharper
left a comment
There was a problem hiding this comment.
Lots of files duplicated from other PRs.
- The issues with the functions need to be sorted out
- Screenshots required
| @@ -0,0 +1,22 @@ | |||
| --- | |||
Contributor
There was a problem hiding this comment.
This topic doesn't belong in this PR
| --- | ||
| title: Personalization | ||
| description: Display personalized content to specific customer segments, groups, or cart rules using personalization blocks. This enables you to show different promotions, messaging, or content to different customer types without creating separate pages. | ||
| title: Commerce Account Header |
Contributor
There was a problem hiding this comment.
The blocks don't belong in this PR. Skipping this section
bdenham
added a commit
that referenced
this pull request
Jan 11, 2026
- Add Company Switcher dropin documentation - Add containers, functions, events, initialization docs - Update sidebar with Company Switcher section
keharper
approved these changes
Jan 13, 2026
…integrate Company Management, Requisition List docs
…patibility Package, fix Company Switcher event anchor links
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.
Note: This PR supersedes #621 with a cleaner file structure for easier review.
Company Switcher Documentation
Complete documentation for the Company Switcher B2B drop-in.
📖 Preview
Full preview with all dropins: https://commerce-docs.github.io/microsite-commerce-storefront/dropins-b2b/company-switcher/
📁 Files Added
✅ Review Checklist
Part of #600 - B2B Documentation Initiative