Skip to content

[No QA] Docs updates for E/A#100147 Domain group Preferred Workspace search and label fixes - #100742

Merged
stephanieelliott merged 1 commit into
mainfrom
claude-docsDomainGroupPreferredWorkspaceSearch
Sep 23, 2026
Merged

stephanieelliott merged 1 commit into
mainfrom
claude-docsDomainGroupPreferredWorkspaceSearch

Conversation

@MelvinBot

Copy link
Copy Markdown
Contributor

Explanation of Change

Follow-up help site update for #100147, which added a search field to both domain group Preferred Workspace selectors (shown when the admin administers 12 or more workspaces, per CONST.STANDARD_LIST_ITEM_LIMIT).

The NewDot article Create and Manage Domain Groups described the Preferred Workspace setting but never documented how to actually set one, so there was nowhere for the new search behavior to live. While updating it, several UI labels in the article no longer matched the product.

Documents the new search behavior

  • Adds ## How to set a Preferred Workspace for a Domain Group with the real click path, including the Search field, the No results found state, and a note that the same flow applies while creating a group.
  • Adds two FAQ entries: why the Search field is not always shown (fewer than 12 workspaces), and which workspaces appear in the list (only those you administer).
  • Adds a non-rendered <!-- SCREENSHOT: --> suggestion per docs/HELP_AUTHORING_GUIDELINES.md section 8.

Corrects UI labels that no longer match the product

Every label below was verified against src/languages/en.ts on main:

Article said Actual UI label
Click Create group (on the Groups page) Click New group (Create group is the submit button on the next page)
Default group Default group for new members
Strictly enforce expense workspace rules Strictly enforce workspace rules
Restrict primary contact method selection Restrict default login selection
Preferred workspace Preferred Workspace

Also corrects the navigation step — Domains is a tab next to Workspaces, not something you scroll to below the workspaces list — and notes that Expensify Card preferred workspace requires Expensify Cards to be set up on the domain.

Heading structure still complies with docs/HELP_AUTHORING_GUIDELINES.md: one # title plus # FAQ, ## for everything else, and every ## starts with an action verb or question word.

Fixed Issues

$ #100135
PROPOSAL: N/A

Tests

// TODO: The human co-author must fill out the tests you ran before marking this PR as "ready for review"
// Please describe what tests you performed that validates your changed worked.

  • Verify that no errors appear in the JS console

Offline tests

N/A — documentation-only change.

QA Steps

// TODO: The human co-author must fill out the QA tests you ran before marking this PR as "ready for review".
// Please describe what QA needs to do to validate your changes and what areas do they need to test for regressions.

  • Verify that no errors appear in the JS console

PR Author Checklist

  • I linked the correct issue in the ### Fixed Issues section above
  • I wrote clear testing steps that cover the changes made in this PR
    • I added steps for local testing in the Tests section
    • I added steps for the expected offline behavior in the Offline steps section
    • I added steps for Staging and/or Production testing in the QA steps section
    • I added steps to cover failure scenarios (i.e. verify an input displays the correct error message if the entered data is not correct)
    • I turned off my network connection and tested it while offline to ensure it matches the expected behavior (i.e. verify the default avatar icon is displayed if app is offline)
    • I tested this PR with a High Traffic account against the staging or production API to ensure there are no regressions (e.g. long loading states that impact usability).
  • I included screenshots or videos for tests on all platforms
  • I ran the tests on all platforms & verified they passed on:
    • Android: Native
    • Android: mWeb Chrome
    • iOS: Native
    • iOS: mWeb Safari
    • MacOS: Chrome / Safari
  • I verified there are no console errors (if there's a console error not related to the PR, report it or open an issue for it to be fixed)
  • I followed proper code patterns (see Reviewing the code)
    • I verified that comments were added to code that is not self explanatory
    • I verified that any new or modified comments were clear, correct English, and explained "why" the code was doing something instead of only explaining "what" the code was doing.
    • I verified any copy / text that was added to the app is grammatically correct in English. It adheres to proper capitalization guidelines (note: only the first word of header/labels should be capitalized), and is either coming verbatim from figma or has been approved by marketing (in order to get marketing approval, ask the Bug Zero team member to add the Waiting for copy label to the issue)
  • If a new code pattern is added I verified it was agreed to be used by multiple Expensify engineers
  • I followed the guidelines as stated in the Review Guidelines
  • I tested other components that can be impacted by my changes (i.e. if the PR modifies a shared library or component like Avatar, I verified the components using Avatar are working as expected)
  • If a new CSS style is added I verified that:
    • A similar style doesn't already exist
    • The style can't be created with an existing StyleUtils function (i.e. StyleUtils.getBackgroundAndBorderStyle(theme.componentBG))
  • If new assets were added or existing ones were modified, I verified that:
    • The assets are optimized and compressed (for SVG files, run npm run compress-svg)
    • The assets load correctly across all supported platforms.
  • If the PR modifies code that runs when editing or sending messages, I tested and verified there is no unexpected behavior for all supported markdown - URLs, single line code, code blocks, quotes, headings, bold, strikethrough, and italic.
  • If the PR modifies a generic component, I tested and verified that those changes do not break usages of that component in the rest of the App (i.e. if a shared library or component like Avatar is modified, I verified that Avatar is working as expected in all cases)
  • If the PR modifies a component related to any of the existing Storybook stories, I tested and verified all stories for that component are still working as expected.
  • If the PR modifies a component or page that can be accessed by a direct deeplink, I verified that the code functions as expected when the deeplink is used - from a logged in and logged out account.
  • If the PR modifies the UI (e.g. new buttons, new UI components, changing the padding/spacing/sizing, moving components, etc) or modifies the form input styles:
    • I verified that all the inputs inside a form are aligned with each other.
    • I added Design label and/or tagged @Expensify/design so the design team can review the changes.
  • I added unit tests for any new feature or bug fix in this PR to help automatically prevent regressions in this user flow.
  • If the main branch was merged into this PR after a review, I tested again and verified the outcome was still expected according to the Test steps.

Screenshots/Videos

Android: Native
Android: mWeb Chrome
iOS: Native
iOS: mWeb Safari
MacOS: Chrome / Safari

@jakubstec, please review the files changed and confirm they reflect the current behavior. Then post a new comment saying @MelvinBot mark this PR as ready for review.

…I labels

Co-authored-by: Jakub Steć <jakubstec@users.noreply.github.com>
@MelvinBot
MelvinBot requested a review from a team September 9, 2026 19:52
@MelvinBot MelvinBot added the HelpDot Apply this label if the issue relates to ExpensifyHelp label Sep 9, 2026
@jakubstec

Copy link
Copy Markdown
Member

@MelvinBot mark this PR as ready for review

@MelvinBot
MelvinBot marked this pull request as ready for review September 14, 2026 15:18
@melvin-bot

melvin-bot Bot commented Sep 14, 2026

Copy link
Copy Markdown

Concierge reviewer checklist:

  • I have verified the accuracy of the article
    • The article is within a hub that makes sense, and the navigation is correct
    • All processes, screenshots, and examples align with current product behavior.
    • All links within the doc have been verified for correct destination and functionality.
  • I have verified the readability of the article
    • The article's language is clear, concise, and free of jargon.
    • The grammar, spelling, and punctuation are correct.
    • The article contains at least one image, or that an image is not necessary
  • I have verified the formatting of the article
    • The article has consistent formatting (headings, bullet points, etc.) with other HelpDot articles and that aligns with the HelpDot formatting standards.
    • The article has proper text spacing and breaks for readability.
  • I have verified the article has the appropriate tone and style
    • The article's tone is professional, friendly, and suitable for the target audience.
    • The article's tone, terminology, and voice are consistent throughout.
  • I have verified the overall quality of the article
    • The article is not missing any information, nor does it contain redundant information.
    • The article fully addresses user needs.
  • I have verified that all requested improvements have been addressed

For more detailed instructions on completing this checklist, see How do I review a HelpDot PR as a Concierge Team member?

cc @VictoriaExpensify

@melvin-bot
melvin-bot Bot requested review from VictoriaExpensify and situchan and removed request for a team September 14, 2026 15:19
@melvin-bot

melvin-bot Bot commented Sep 14, 2026

Copy link
Copy Markdown

@situchan @VictoriaExpensify One of you needs to copy/paste the Reviewer Checklist from here into a new comment on this PR and complete it. If you have the K2 extension, you can simply click: [this button]

@MelvinBot

MelvinBot commented Sep 14, 2026 •

Copy link
Copy Markdown
Contributor Author

🤖 Done — this PR is now Ready for review.

One thing to fix before a reviewer picks it up: the ### Tests and ### QA Steps sections still contain the // TODO: placeholders. Those are yours to fill in — I don't write them on your behalf. The PR Author Checklist is also still unchecked.

Since this is a docs-only change to docs/articles/new-expensify/domains/Create-and-Manage-Domain-Groups.md, the test steps can be short — something like verifying the article renders correctly on the help site preview and that the documented click path matches the product.


view run · no recording available

@melvin-bot
melvin-bot Bot requested a review from mountiny September 14, 2026 15:20
## What the Default group for new members setting does

Enable this if you want all new domain members to be automatically added to this group. Setting a Default Group ensures new employees receive the correct permissions immediately.
Enable this if you want all new domain members to be automatically added to this group. Setting a default group ensures new employees receive the correct permissions immediately.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Naming consistency: This setting is referred to as "Default group for new members" in the heading on line 71, but here it is called "a default group." Use the exact UI label consistently (per HELPSITE_NAMING_CONVENTIONS.md: use the exact text shown in the product UI and do not shorten labels).

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Setting a default group for new members outlines the learning objective, but Default Group is the actual name of the function. I don't think this needs updating

4. If you administer 12 or more workspaces, a **Search** field is shown above the list. Type part of a workspace name to filter the list.
5. Click the workspace you want to use.

The list shows only the workspaces you administer. If a search returns nothing, **No results found** is shown, so clear the search and try a different name.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Deterministic writing / vague phrasing: "If a search returns nothing, No results found is shown, so clear the search and try a different name." Consider bolding the exact empty-state label only and stating the action plainly, e.g. "If no matches are found, No results found appears. Clear the Search field and try a different name." Keep instructions literal and action-oriented (HELP_AUTHORING_GUIDELINES.md Step Formatting; HELPSITE_NAMING_CONVENTIONS.md Deterministic Writing).

Enable this to prevent members from creating or removing workspaces. **Restrict expense workspace creation/removal** ensures centralized workspace management and prevents employees from creating additional workspaces outside the company’s approved setup.

## What Preferred workspace does
## What Preferred Workspace does

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Naming consistency: This heading standardizes to "Preferred Workspace" (title case), but the related heading "What Expensify Card preferred workspace does" (line 91) still uses lowercase "preferred workspace." Match the exact UI casing consistently across both headings (HELPSITE_NAMING_CONVENTIONS.md: match capitalization exactly).

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 375616ee74

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

## Which workspaces appear on the Preferred Workspace page?

No. Preferred workspace applies to new expenses and reports going forward.
Only the workspaces you administer. If a workspace is missing, ask a Workspace Admin of that workspace to add you as an admin.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Document the current preferred-workspace exception

When editing a group whose configured preferred workspace the domain admin no longer administers, that workspace still appears in the picker: BaseDomainGroupPreferredWorkspacePage passes the selected policy ID to createAdminPoliciesSelector (src/pages/domain/Groups/BaseDomainGroupPreferredWorkspacePage.tsx:71), which exempts that policy from the admin-role filter (src/selectors/Policy.ts:490-492). It also counts toward the 12-item search threshold, so both this “only” claim and the FAQ's administered-workspace count are inaccurate in that scenario; document that the current selection may also appear and that the threshold is based on displayed items.

Useful? React with 👍 / 👎.

@github-actions

Copy link
Copy Markdown
Contributor

HelpDot Documentation Review

Overall Assessment

This PR refines the Domain Groups article: it corrects UI labels to match the product (e.g. New group, Restrict default login selection, Strictly enforce workspace rules), normalizes Preferred Workspace capitalization, fixes the navigation flow, and adds a new task-based section plus FAQs covering the Preferred Workspace selector and its Search behavior. The changes align well with the governance files and improve accuracy, consistency, and retrievability.

Scores Summary

  • Readability: 9/10 - Clear, sequential steps and concise explanatory prose. The new Preferred Workspace section and FAQs are easy to scan and action-oriented.
  • AI Readiness: 9/10 - All new headings are task-based (How to / What / Which / Why), only H1 and H2 used, feature names spelled out, and internalScope plus keywords were updated to reflect the new Preferred Workspace workflow.
  • Style Compliance: 8/10 - Strong UI-exact terminology and consistent bolding of labels. Navigation step correctly replaced the prohibited vague "Scroll below... to find" phrasing with "Click Domains". Minor consistency gap noted below.

Key Findings

  • Positive: The updated create-group steps (New group, then name, then Create group) now match the actual UI flow, and the added name step improves accuracy.
  • Positive: Preferred Workspace casing is now consistent across headings, body, and FAQs, matching the UI label.
  • Positive: The new SCREENSHOT placeholder uses the correct HTML-comment format with a specific, non-generic Purpose (confirming where the Search field appears for admins of 12+ workspaces).
  • Positive: New FAQs are genuinely search-driven (Search field visibility, which workspaces appear) and directly reduce likely support questions.
  • Minor: In the new Preferred Workspace section, Search and No results found are referenced; confirm these match the exact UI strings and casing per the Core UI Referencing Rules.
  • Minor: The "What Expensify Card preferred workspace does" heading keeps lowercase "preferred workspace" while the body now uses Preferred Workspace - align the heading if this is the UI label.

Recommendations

  • Verify Search, No results found, and the Preferred Workspace toggle/row labels against the live UI for exact text and casing.
  • Consider aligning the "Expensify Card preferred workspace" heading casing with the normalized Preferred Workspace usage for full consistency.
  • No blocking issues - changes are safe to merge after the minor label confirmation.

Files Reviewed

  • docs/articles/new-expensify/domains/Create-and-Manage-Domain-Groups.md - Approved with minor suggestions.

Note: Detailed line-by-line feedback has been provided as inline comments.

@mountiny
mountiny removed their request for review September 16, 2026 07:08
@stephanieelliott
stephanieelliott merged commit e5ab004 into main Sep 23, 2026
21 of 26 checks passed
@stephanieelliott
stephanieelliott deleted the claude-docsDomainGroupPreferredWorkspaceSearch branch September 23, 2026 00:18
@OSBotify

Copy link
Copy Markdown
Contributor

🚀 Deployed to staging by https://github.com/stephanieelliott in version: 9.4.92-0 🚀

platform result
🕸 web 🕸 success ✅
🤖 android 🤖 success ✅
🍎 iOS 🍎 success ✅

@izarutskaya

Copy link
Copy Markdown

@jakubstec Can I check it off the list?

N/A — documentation-only change.

@OSBotify

Copy link
Copy Markdown
Contributor

🚀 Deployed to production by https://github.com/lakchote in version: 9.4.92-8 🚀

platform result
🕸 web 🕸 success ✅
🤖 android 🤖 success ✅
🍎 iOS 🍎 success ✅

Bundle Size Analysis (Sentry):

@stephanieelliott stephanieelliott changed the title Docs updates for E/A#100147 Domain group Preferred Workspace search and label fixes [No QA] Docs updates for E/A#100147 Domain group Preferred Workspace search and label fixes Sep 30, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

HelpDot Apply this label if the issue relates to ExpensifyHelp

Projects

None yet

Development

Successfully merging this pull request may close these issues.

7 participants