Skip to content

[hold] [No QA] Docs updates for E/A#92009 document spend rule step in card issuing#92316

Closed
MelvinBot wants to merge 1 commit into
mainfrom
claudeDocsSpendRulesCardIssuing
Closed

[hold] [No QA] Docs updates for E/A#92009 document spend rule step in card issuing#92316
MelvinBot wants to merge 1 commit into
mainfrom
claudeDocsSpendRulesCardIssuing

Conversation

@MelvinBot
Copy link
Copy Markdown
Contributor

Explanation of Change

Expensify/App#92009 fixes deploy blockers for applying a spend rule when issuing an Expensify Card, including showing a Restrictions summary on the confirmation screen. This help-site update documents that step in the issue card flow in Set-Up-and-Manage-the-Expensify-Card.md:

  • Added the Set card rules step: toggle Add spend rule on, then choose Copy existing (click Choose a rule) or Create new (set the restriction type to Allow or Block and add any combination of Merchant, Spend category, and Max amount).
  • Documented the Restrictions summary shown on the confirmation screen before clicking Issue card.
  • Noted that the Add spend rule option appears only when Rules is enabled for the workspace.
  • Corrected the expiration toggle label from Set expiration date to Add expiration date to match the live UI.
  • Added an FAQ entry and screenshot placeholders.

All feature, tab, and button names were verified against src/languages/en.ts for exact casing.

Important

The spend rule step in the issue card flow is currently gated to non-production environments (it is hidden when the app is running in production). These docs describe behavior that is not yet live in production, so please keep this PR in draft and publish it only once the feature ships to production.

Related


@JS00001, please review the files changed and confirm they reflect the current behavior. Then mark this PR Ready for review.

…ng flow

Adds the Set card rules step (Add spend rule, Copy existing / Create new,
Allow/Block restrictions) and the Restrictions confirmation summary to the
issue card flow in Set Up and Manage the Expensify Card.

Co-authored-by: Jack Senyitko <JS00001@users.noreply.github.com>
@MelvinBot MelvinBot requested a review from a team June 2, 2026 06:40
@MelvinBot MelvinBot added the HelpDot Apply this label if the issue relates to ExpensifyHelp label Jun 2, 2026
@MelvinBot MelvinBot mentioned this pull request Jun 2, 2026
54 tasks
@github-actions github-actions Bot changed the title Docs updates for E/A#92009 document spend rule step in card issuing [No QA] Docs updates for E/A#92009 document spend rule step in card issuing Jun 2, 2026
@OSBotify
Copy link
Copy Markdown
Contributor

OSBotify commented Jun 2, 2026

A preview of your ExpensifyHelp changes have been deployed to https://03e21327.helpdot.pages.dev ⚡️

Updated articles:

@JS00001 JS00001 marked this pull request as ready for review June 2, 2026 12:25
@JS00001 JS00001 requested a review from stephanieelliott as a code owner June 2, 2026 12:25
@melvin-bot
Copy link
Copy Markdown

melvin-bot Bot commented Jun 2, 2026

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 @brianlee-expensify

@melvin-bot melvin-bot Bot requested review from brianlee-expensify and removed request for a team June 2, 2026 12:25
@melvin-bot
Copy link
Copy Markdown

melvin-bot Bot commented Jun 2, 2026

@brianlee-expensify Please 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]

@JS00001
Copy link
Copy Markdown
Contributor

JS00001 commented Jun 2, 2026

Agree the docs look fine, but this is currently locked behind staging, so lets not ship these docs yet

@JS00001 JS00001 changed the title [No QA] Docs updates for E/A#92009 document spend rule step in card issuing [hold] [No QA] Docs updates for E/A#92009 document spend rule step in card issuing Jun 2, 2026
Copy link
Copy Markdown

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

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: d78d921778

ℹ️ 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".

Comment on lines +65 to +67
- To restrict where and how the card can be used, toggle **Add spend rule** on, then choose:
- **Copy existing**: Reuse an existing spend rule. Click **Choose a rule** and select one from the list.
- **Create new**: Build a new rule. Set the restriction type to **Allow** or **Block**, then add any combination of **Merchant**, **Spend category**, and **Max amount**.
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 Do not document hidden card-rule controls as live

For production users, this spend-rule control is not shown even when workspace Rules is enabled; I checked SetSpendRulesStep and the UI is gated by !isProduction && isPolicyFeatureEnabled(...). Publishing these steps in the help article will send admins looking for an Add spend rule toggle they cannot access until the feature ships, so this section should be gated/removed from the live docs or explicitly held until production rollout.

Useful? React with 👍 / 👎.

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Jun 2, 2026

HelpDot Documentation Review

Overall Assessment

This PR updates Set-Up-and-Manage-the-Expensify-Card.md to document the new spend rule step during card issuance. The changes are well-scoped to a single workflow enhancement, follow UI-exact terminology (verified against en.ts per the PR description), and include appropriate screenshot placeholders and an FAQ entry. The diff is clean and integrates naturally into the existing numbered step flow.

Scores Summary

  • Readability: 8/10 - Steps are sequential, action-oriented, and follow the existing article's structure. Step 7 introduces nested sub-options clearly with indented bullets. Step 9 is slightly dense as a single sentence combining review instructions, the Restrictions summary callout, and the final action; splitting the review and the click action into two steps would improve scannability.
  • AI Readiness: 9/10 - The new FAQ heading ("Can I restrict where an Expensify Card can be used when I issue it?") is question-based and includes the feature name, which is strong for semantic retrieval. Screenshot placeholders follow the required HTML comment format exactly. No new headings were introduced that would affect heading hierarchy, so the existing structure remains compliant.
  • Style Compliance: 9/10 - All button and toggle names are bolded and appear to use exact UI labels (e.g., Add spend rule, Copy existing, Create new, Allow, Block, Issue card). The label correction from "Set expiration date" to Add expiration date shows attention to UI accuracy. The toggle label Add expiration date is correctly bolded. Minor note: "Click Choose a rule" in step 7 uses "Click" as the verb -- confirm this is the intended interaction verb for all platforms (web and mobile). If mobile users tap, the governance docs expect platform-specific instructions when behavior differs.

Key Findings

  • The correction of the expiration toggle label to match the live UI is a positive quality signal.
  • The note that Add spend rule appears only when Rules is enabled is a helpful prerequisite callout, consistent with governance guidance on stating dependencies explicitly.
  • The FAQ answer is comprehensive and self-contained, covering both the Copy existing and Create new paths in a single paragraph.
  • Screenshot placeholders are well-structured with clear Suggestion, Location, and Purpose fields per Section 8 of the authoring guidelines.
  • The PR description's note about the feature being gated to non-production is responsible practice.

Recommendations

  1. Consider splitting step 9 into two steps: one for reviewing the details (including the Restrictions summary) and one for clicking Issue card. This would improve scannability and keep each step to a single action, per Section 5 of the authoring guidelines.
  2. Verify whether "Click" is the correct verb for mobile users in step 7's "Click Choose a rule" instruction. If mobile navigation differs, provide separate Web/Mobile instructions per the naming conventions.
  3. The inline em dash in step 9 ("review the details -- including the Restrictions summary") could be simplified. A direct statement like "review the details and the Restrictions summary" reads more cleanly.

Files Reviewed

  • docs/articles/new-expensify/expensify-card/Set-Up-and-Manage-the-Expensify-Card.md - 28 additions, 6 deletions. Documents the new spend rule step in the card issuance flow, corrects a toggle label, adds an FAQ entry, and includes two screenshot placeholders.

Note: Review is based solely on the proposed diff, not unchanged portions of the file.

7. On the **Set card rules** step, apply a spend rule and set an expiration date:
- To restrict where and how the card can be used, toggle **Add spend rule** on, then choose:
- **Copy existing**: Reuse an existing spend rule. Click **Choose a rule** and select one from the list.
- **Create new**: Build a new rule. Set the restriction type to **Allow** or **Block**, then add any combination of **Merchant**, **Spend category**, and **Max amount**.
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.

Readability / structure: This triple-nested bullet packs three distinct actions into one line (set restriction type, choose Allow/Block, add Merchant/Spend category/Max amount). Per Section 5 of HELP_AUTHORING_GUIDELINES.md, step instructions must be clear and action-oriented. Consider breaking this into separate sub-bullets:

Suggested change
- **Create new**: Build a new rule. Set the restriction type to **Allow** or **Block**, then add any combination of **Merchant**, **Spend category**, and **Max amount**.
- **Create new**: Build a new rule.
1. Set the restriction type to **Allow** or **Block**.
2. Add any combination of **Merchant**, **Spend category**, and **Max amount**.

- **When disabled:** The card does not expire automatically.
8. Name the card for easier tracking
9. Click **Issue card** to confirm
9. On the confirmation screen, review the details — including the **Restrictions** summary if you applied a spend rule — then click **Issue card** to confirm
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.

Readability / structure: This step combines a review action and a confirm action into one long sentence with an em-dash parenthetical, which hurts scannability. Per Section 5 of HELP_AUTHORING_GUIDELINES.md, steps must be clear and action-oriented. Consider splitting into two steps:

9. On the confirmation screen, review the details. If you applied a spend rule, verify the **Restrictions** summary.
10. Click **Issue card** to confirm.


## Can I restrict where an Expensify Card can be used when I issue it?

Yes. When **Rules** is enabled for the workspace, the **Set card rules** step lets you toggle **Add spend rule** on and either **Copy existing** to reuse an existing spend rule or **Create new** to build one. A spend rule can **Allow** or **Block** spend based on **Merchant**, **Spend category**, and **Max amount**. Any restrictions you apply appear under **Restrictions** on the confirmation screen before you click **Issue card**.
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.

Readability / structure: This FAQ answer is a single dense sentence that covers multiple concepts (enabling Rules, toggling Add spend rule, Copy existing vs. Create new, Allow/Block, three field types, and the confirmation screen). For scannability, consider restructuring as a short intro sentence followed by a bullet list summarizing the key options, similar to how the procedural steps above break this down.

@stephanieelliott
Copy link
Copy Markdown
Contributor

Im actually handling docs as a whole for this project, in this PR: #92580

Gonna close this one, and will merge the suggested changes here into the other PR!

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.

4 participants