Skip to content

[No QA] Help site docs for UK Advisory Fuel Rates - #108332

Merged
neil-marcellini merged 5 commits into
mainfrom
neil-marcellini/uk-fuel-rate-help-docs
Dec 3, 2026
Merged

neil-marcellini merged 5 commits into
mainfrom
neil-marcellini/uk-fuel-rate-help-docs

Conversation

@neil-marcellini

@neil-marcellini neil-marcellini commented Nov 30, 2026 •

Copy link
Copy Markdown
Contributor

Explanation of Change

(Neil's AI agent)

Documents the UK Advisory Fuel Rate distance rates in the Help site. Hold until the UK Advisory Fuel Rates launch is done, so the docs don't describe rates workspaces don't have yet.

Set distance rates:

  • Which GBP workspaces get a distance rate per Advisory Fuel Rate, how each rate is built, that the standard HMRC rate stays alongside them, when new rates are added, and why to disable bands rather than delete them.
  • The missing VAT rate error: when it shows, its wording with and without an integration, how to fix it, and how to dismiss it.
  • The Tax reclaimable on column, and that editing Tax reclaimable on removes the lightning bolt.
  • An FAQ on why the Home charged electric rate has no tax reclaimable amount, linking HMRC's VAT guidance.

Distance expenses: how employees pick their vehicle's rate, and how the VAT is calculated, e.g. 100 miles at £0.55 with a £0.14 fuel rate has £14 of fuel and £2.33 of VAT.

Fixed Issues

$ https://github.com/Expensify/Expensify/issues/692150
PROPOSAL: N/A

Tests

(Neil's AI agent)

Docs only. I checked the Help site preview: the new sections render, all four new or renamed headings have anchors, and the link from Distance expenses jumps to the right heading in Set distance rates.

I verified each statement against the App UI strings and Auth's rate copy and VAT linking code on main.

  • Verify that no errors appear in the JS console

Offline tests

N/A

QA Steps

[No QA] Docs only.

  • 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 verified any copy / text that was added to the app 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 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 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.
  • If the PR adds or modifies the UI:
    • I asked an AI agent to review the changes for accessibility issues and addressed its findings.
    • I tested with a screen reader (VoiceOver on macOS) and verified all new/changed elements are reachable with a logical focus order.
    • I verified all new/changed elements have meaningful accessible names and roles.
    • I verified state changes are announced (e.g. checked/unchecked, expanded/collapsed, selected).
  • 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

N/A, docs only.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 30, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-30T15:13:35.521053Z 631d05f PR opened
ℹ️ About Codex in GitHub

Your team has set up Codex to 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" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

If you want the Advisory Fuel Rate distance rates without VAT, select the **X** on the error to dismiss it. This hides the error for every admin on the workspace.

[Learn how to track taxes](/articles/new-expensify/workspaces/Track-Taxes).

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 violation: Name UI elements by function, not appearance (per HELPSITE_NAMING_CONVENTIONS.md "Name UI Elements by Function"). Reference the dismiss control by what it does, not the "X" shape.

Suggested change
If you want the Advisory Fuel Rate distance rates without VAT, select the **Close** icon on the error to dismiss it. This hides the error for every admin on the workspace.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

(Neil's AI agent)

Agreed, this section is new in this PR and breaks the naming conventions. Fixed in 8c1d88d as suggested.

If an Advisory Fuel Rate distance rate has no valid 20% tax rate, a red dot leads from the workspace to **Distance rates > Settings**. There, under **Track tax**, you'll see an error, and each affected rate shows the same error under its **Tax rate** field.

This happens when:

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.

Navigation path violation: A bolded > path must start with the navigation tab and include the workspace placeholder (per HELPSITE_NAMING_CONVENTIONS.md "Navigation Paths"). **Distance rates > Settings** omits the starting tab and [workspace name].

Suggested change
If an Advisory Fuel Rate distance rate has no valid 20% tax rate, a red dot leads from the workspace to **Workspaces > [workspace name] > Distance rates > Settings**. There, under **Track tax**, you'll see an error, and each affected rate shows the same error under its **Tax rate** field.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

(Neil's AI agent)

Agreed, this section is new in this PR and breaks the naming conventions. Fixed in 8c1d88d as suggested.

@github-actions

Copy link
Copy Markdown
Contributor

HelpDot Documentation Review

Overall Assessment

This PR documents UK HMRC Advisory Fuel Rate (AFR) support for distance expenses and workspace distance rates. It adds three new task-based sections across two articles, updates terminology from "Tax reclaimable" to "Tax reclaimable on" to match the UI, extends the lightning-bolt auto-generated rate logic to include the new field, expands keyword metadata, and cross-links the two articles. The changes are well-structured, accurate, and largely compliant with governance. The content is appropriately split by audience (members in Distance-Expenses.md, workspace admins in Set-distance-rates.md), preserving the one-workflow-per-article and audience-separation principles.

Scores Summary

  • Readability: 9/10 - Clear, concise prose with worked numeric examples (e.g., 100 miles at £0.55) that make an abstract VAT concept easy to follow. Steps are sequential and action-oriented. The bulleted breakdowns of rate composition and error conditions scan well.
  • AI Readiness: 9/10 - All new headings are task-based and feature-specific with full feature names ("UK Advisory Fuel Rate"). Only #/## levels used. Keywords expanded with realistic search phrases (HMRC advisory fuel rates, VAT on mileage, 20% tax rate error). internalScope on both files is unchanged and still accurate for the added content.
  • Style Compliance: 8/10 - Strong use of bold UI labels, the Rate field convention, correct navigation paths with lowercase placeholders, and relative cross-links placed outside steps. A few minor deviations keep this from a 9.

Key Findings

  • Terminology correction is consistent: "Tax reclaimable" → "Tax reclaimable on" is applied in the edit list, FAQ heading, FAQ body, and the lightning-bolt criteria, matching the UI column name. This consistency is a highlight.
  • The cross-link anchor in Distance-Expenses.md (#how-uk-workspaces-get-a-distance-rate-for-each-advisory-fuel-rate) correctly resolves to the new heading added in Set-distance-rates.md.
  • Minor navigation-path deviation: **Distance rates > Settings** does not start with a navigation tab (e.g., Workspaces > [workspace name] > Distance rates), which the navigation-path rule requires. This appears in the "fix the 20% tax rate error" section.
  • Minor UI-element naming issue: "select the X on the error to dismiss it" names the control by appearance. Conventions prefer naming by function (e.g., a close/dismiss affordance), not the "X" glyph.
  • Embedded error-message strings (e.g., "Please add a 20% tax rate...") are presented as quoted UI copy; ensure these match src/languages/en.ts exactly, since the source of truth is the production UI.
  • Positive: numeric VAT examples are internally consistent and reinforce the concept without introducing scope creep; cross-linking is restrained and reinforces the primary workflow rather than acting as a navigation hub.

Recommendations

  • Rewrite **Distance rates > Settings** as a full navigation path beginning with the navigation tab, e.g., **Workspaces > [workspace name] > Distance rates**, then reference Settings consistently with the rest of the article.
  • Replace "select the X" with a function-based reference to the dismiss/close control.
  • Verify the two quoted error strings against src/languages/en.ts so they match the shipped UI verbatim.

Files Reviewed

  • docs/articles/new-expensify/reports-and-expenses/Distance-Expenses.md — Compliant. Adds one member-facing section plus keywords; cross-link resolves correctly. No blocking issues.
  • docs/articles/new-expensify/workspaces/Set-distance-rates.md — Mostly compliant. Adds two admin sections, terminology updates, and expanded lightning-bolt logic. Two minor style issues (navigation path start, "X" control naming) and one verification item (quoted error strings).

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

@github-actions github-actions Bot changed the title [HOLD Expensify/Expensify#692151][No QA] Help site docs for UK Advisory Fuel Rates [No QA] [HOLD Expensify/Expensify#692151][No QA] Help site docs for UK Advisory Fuel Rates Nov 30, 2026
@OSBotify

This comment has been minimized.

@OSBotify

This comment has been minimized.

@OSBotify

This comment has been minimized.

@neil-marcellini neil-marcellini changed the title [No QA] [HOLD Expensify/Expensify#692151][No QA] Help site docs for UK Advisory Fuel Rates [No QA][No QA] Help site docs for UK Advisory Fuel Rates Dec 1, 2026
@OSBotify

This comment has been minimized.

@OSBotify

OSBotify commented Dec 3, 2026

Copy link
Copy Markdown
Contributor

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

Updated articles:

@neil-marcellini

Copy link
Copy Markdown
Contributor Author

It all looks solid to me. @stephanieelliott your turn! Once you approve does Pullerbear auto add an engineer to review or do we not need that for help site only changes?

@neil-marcellini
neil-marcellini requested a review from a team December 3, 2026 01:56
@expensify-chore-bot

Copy link
Copy Markdown

Product 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?

cc @joekaufmanexpensify

@expensify-chore-bot
expensify-chore-bot Bot requested review from joekaufmanexpensify and removed request for a team December 3, 2026 01:56
@github-actions

github-actions Bot commented Dec 3, 2026

Copy link
Copy Markdown
Contributor

HelpDot Documentation Review

Overall Assessment

This PR adds documentation for UK HMRC Advisory Fuel Rates (AFR) and VAT reclaim on mileage across two existing articles. In Distance-Expenses.md it adds one member-facing section on choosing an AFR when creating a distance expense. In Set-distance-rates.md it adds three admin-facing sections (how AFR distance rates are auto-generated, how to fix the missing VAT rate error, and updates to the auto-generated-rate explanation), renames "Tax reclaimable" to "Tax reclaimable on" to match the UI, and extends the FAQ. The changes are well-scoped to each article's audience (internalScope is respected: member content in the expenses article, admin content in the rates article) and keyword metadata is expanded with realistic search phrases.

Scores Summary

  • Readability: 8/10 - Clear, concise prose with good use of concrete worked examples (£0.55/£0.14/£2.33). Steps are sequential and bolded correctly. A few explanatory paragraphs are dense (e.g., the disabled-rate replacement logic and the "Uses the workspace's enabled tax rate that matches the UK standard VAT rate, whatever its name" sentence) and could be split for scannability.
  • AI Readiness: 9/10 - All new headings are task-based and start with How/What/Why. Full feature names ("UK Advisory Fuel Rate", "Advisory Fuel Rate distance rates") are used consistently. Heading hierarchy stays at #/## only. internalScope is present and accurate on both files. Keywords strongly match real search intent (AFR, HMRC, VAT on mileage, error strings).
  • Style Compliance: 8/10 - UI labels are bolded and match the UI; navigation paths use the correct bolded format with lowercase [workspace name] placeholders; select/choose usage is correct; color (red dot) is used only as a secondary descriptor. Minor issues noted below around a navigation path embedded in narrative phrasing and quoted error-message capitalization.

Key Findings

  • Strong, consistent use of the exact UI term change from "Tax reclaimable" to "Tax reclaimable on", applied in the table list, inline-edit note, auto-generated-rate section, and FAQ — the rename is coherent across the whole article.
  • New headings are exemplary for AI retrieval: explicit, feature-specific, and task-based (e.g., "How to fix the missing VAT rate error on UK Advisory Fuel Rates").
  • Cross-links are appropriate and reciprocal: the expenses article links to the rates section, and the rates article links to Track-Taxes. Anchor text is descriptive ("Learn how UK workspaces get a distance rate...", "Learn how to track taxes"). Links sit after explanatory sentences, not inside numbered steps — compliant.
  • Minor: In "a red dot leads from the workspace to Workspaces > [workspace name] > Distance rates > Settings", the navigation path appears inside descriptive narrative rather than beginning in the navigation tabs. It is readable but slightly diverges from the "start the path with the navigation tab" step pattern.
  • Minor: The external link to HMRC guidance is a full URL. Governance requires relative links for internal cross-links; external gov.uk references are a reasonable exception, but it is the only full URL in the changes and worth a confirming note.
  • Minor: Quoted error strings ("Please add a 20% tax rate...") are reproduced as UI text — good — but reviewers should confirm these match src/languages/en.ts exactly, since they are presented as literal UI copy.

Recommendations

  • Consider breaking the denser admin paragraphs (tax-rate matching logic and disabled-rate replacement behavior) into shorter sentences or a short bulleted list to improve scannability.
  • Confirm the quoted error messages match the production strings in src/languages/en.ts verbatim.
  • Optionally reframe the "red dot leads from the workspace to..." sentence so the navigation path reads as a standard bolded path the admin follows, rather than something a dot "leads" to.

Files Reviewed

  • docs/articles/new-expensify/reports-and-expenses/Distance-Expenses.md — Adds one compliant member-facing AFR section plus keyword expansion. Clean.
  • docs/articles/new-expensify/workspaces/Set-distance-rates.md — Adds three admin sections, a UI-term rename ("Tax reclaimable on"), and FAQ updates. High quality with minor readability and link-style notes.

Note: The inline reviewer found no line-specific violations warranting committable inline suggestions.

@stephanieelliott

Copy link
Copy Markdown
Contributor

LGTM!

@neil-marcellini no engineer is needed on docs PRs -- anyone with write access can approve and merge them! They also go straight to prod. I've approved, so it is ready but will hold on merging til the feature is released.

@neil-marcellini neil-marcellini changed the title [No QA][No QA] Help site docs for UK Advisory Fuel Rates [No QA] Help site docs for UK Advisory Fuel Rates Dec 3, 2026
@neil-marcellini
neil-marcellini merged commit 6371c3d into main Dec 3, 2026
21 of 23 checks passed
@neil-marcellini
neil-marcellini deleted the neil-marcellini/uk-fuel-rate-help-docs branch December 3, 2026 18:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants