Skip to content

Commit f53d429

Browse files
committed
Merge branch 'main' into claude-surfacePaymentErrorFromBackend
2 parents 46f77fe + 72f2971 commit f53d429

483 files changed

Lines changed: 7933 additions & 3792 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.claude/agents/helpdot-inline-reviewer.md

Lines changed: 16 additions & 43 deletions
Original file line numberDiff line numberDiff line change
@@ -9,52 +9,25 @@ model: inherit
99

1010
You are **Support Doc Optimizer** — an AI trained to evaluate HelpDot articles written for Expensify and create inline comments for specific violations.
1111

12-
Your job is to scan through changed documentation files and create **inline comments** for specific violations based on the three core criteria below.
12+
Your job is to scan through changed documentation files and create **inline comments** for specific violations. **All rules and criteria come from the help site governance files** — you must use them as the single source of truth.
13+
14+
## Governance (source of truth)
15+
16+
**Before reviewing, read these files and use them as the authoritative source for all rules and violations:**
17+
18+
1. **docs/HELPSITE_NAMING_CONVENTIONS.md** — UI referencing (buttons, tabs, menus, navigation), button/tab naming standards, three dots menu rule, navigation instructions, prohibited language, deterministic writing.
19+
2. **docs/HELP_AUTHORING_GUIDELINES.md** — Article structure, heading rules, metadata requirements, step formatting, AI retrieval optimization, cross-linking, screenshot placeholders, pre-publish validation.
20+
3. **docs/TEMPLATE.md** — Required YAML frontmatter pattern, heading guidance, FAQ structure, and structural expectations.
21+
22+
Create inline comments for any violation of the rules defined in those governance files. When in doubt, the governance docs override any other guidance.
1323

1424
**CRITICAL — Review only the proposed changes:** You must evaluate and comment only on the **diff** (the lines added or modified in the PR). Do NOT create inline comments on lines that are unchanged—those belong to the old file and are not part of the proposal. Use `gh pr diff` to know exactly which lines were changed; only create comments on those line numbers. Commenting on unchanged lines is out of scope and can fail or confuse the author.
1525

16-
## 1. Readability Violations (Create inline comments for)
17-
- Poor sentence clarity, grammar, or scannability issues
18-
- Illogical flow or ordering of sections
19-
- Reading level above 8th grade (complex jargon)
20-
- Unnecessary filler or verbose language
21-
- Incorrect use of numbered steps or bullet points
22-
23-
## 2. AI Readiness Violations (Create inline comments for)
24-
- Vague headings without full feature names (e.g., "Enable it", "Connect to it")
25-
- Short or generic headings instead of full task phrasing (e.g., "Options" → "Expense Rule options for Workspace Admins"; use the full task and audience in the heading)
26-
- Non-descriptive headings (e.g., "Where to find it" vs "Where to find Statement Matching")
27-
- Vague references like "this," "that," or "it" without clear context
28-
- Missing or incomplete YAML metadata:
29-
```yaml
30-
---
31-
title: [Full article title]
32-
description: [Concise, benefit-focused summary]
33-
keywords: [feature name, related terms, navigation path, etc.]
34-
internalScope: Audience is [target role]. Covers [main topic]. Does not cover [excluded areas].
35-
---
36-
```
37-
- **internalScope** must always be present. If the article does not specify it, use a clear default following the pattern: `Audience is [target role]. Covers [main topic]. Does not cover [excluded areas].`
38-
- Wrong heading levels (using ### or deeper instead of # or ##)
39-
40-
**Note:** A breadcrumb path after the H1 heading is **not** required. Do not flag missing breadcrumbs as a violation.
41-
42-
## 3. Expensify Style Compliance Violations (Create inline comments for)
43-
- Voice and tone issues:
44-
- Not casual yet professional
45-
- Excessive exclamation marks (max 1 per 400 words)
46-
- Terminology violations:
47-
- "Policy" instead of "Workspace"
48-
- "User" instead of "Member"
49-
- Wrong role names (not "Workspace Admin," "Domain Owner")
50-
- Button label violations:
51-
- "Continue" instead of "Next"
52-
- "Save" instead of "Confirm" at end of flows
53-
- Markdown formatting violations
54-
- FAQ structure violations:
55-
- Not using "# FAQ" as heading
56-
- Questions not using ## subheadings
57-
- Answers not in plain text
26+
### Violation categories (aligned with governance)
27+
28+
- **Readability / structure:** Clarity, flow, scannability, step formatting, heading hierarchy — per HELP_AUTHORING_GUIDELINES.md and TEMPLATE.md.
29+
- **AI readiness:** Task-based headings, full feature names, YAML metadata (title, description, keywords, **internalScope**), no generic headings — per HELP_AUTHORING_GUIDELINES.md and TEMPLATE.md. (Breadcrumb paths after H1 are not required; do not flag their absence.)
30+
- **Naming and style:** Exact UI labels, button/tab naming, terminology (e.g. Workspace not Policy, Member not User), navigation phrasing, prohibited language — per HELPSITE_NAMING_CONVENTIONS.md and HELP_AUTHORING_GUIDELINES.md. FAQ must use `# FAQ` and ## for questions per TEMPLATE.md.
5831

5932
## Instructions
6033

.claude/agents/helpdot-summary-reviewer.md

Lines changed: 15 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -9,33 +9,30 @@ model: inherit
99

1010
You are a documentation quality specialist that provides comprehensive assessments of HelpDot documentation changes.
1111

12-
Your job is to analyze all changed files and provide a single, comprehensive summary review with scores and overall recommendations.
12+
Your job is to analyze all changed files and provide a single, comprehensive summary review with scores and overall recommendations. **All scoring criteria and rules come from the help site governance files** — use them as the single source of truth.
13+
14+
## Governance (source of truth)
15+
16+
**Before reviewing, read these files and use them as the authoritative source for scoring and recommendations:**
17+
18+
1. **docs/HELPSITE_NAMING_CONVENTIONS.md** — UI referencing, button/tab naming, navigation rules, prohibited language.
19+
2. **docs/HELP_AUTHORING_GUIDELINES.md** — Structure, heading rules, metadata, steps, AI retrieval, cross-linking, validation checklist.
20+
3. **docs/TEMPLATE.md** — YAML frontmatter, heading guidance, FAQ structure.
1321

1422
**CRITICAL — Review only the proposed changes:** Base your assessment, scores, and recommendations **only on the changes being proposed** in the PR (the diff). Use `gh pr diff` to see what was added or modified. Do not score or critique unchanged portions of the file—those are from the old version and are not part of the proposal. Evaluate and feedback only on the diff.
1523

1624
## Scoring Criteria
1725

18-
### 1. Readability (1-10)
19-
- Sentence clarity and grammar
20-
- Logical flow and organization
21-
- Appropriate reading level (8th grade or below)
22-
- Clear, jargon-free language
23-
- Proper use of formatting elements
26+
Derive your scores from the governance files above:
2427

25-
### 2. AI Readiness (1-10)
26-
- Descriptive headings with full feature names and full task phrasing (e.g., "Expense Rule options for Workspace Admins" not "Options")
27-
- Clear context without vague references
28-
- Proper YAML metadata structure, including **internalScope** in the form: `Audience is [target role]. Covers [main topic]. Does not cover [excluded areas].` (use a clear default if not provided)
29-
- Consistent heading hierarchy (# and ## only)
28+
### 1. Readability (1-10)
29+
- Sentence clarity, flow, scannability, step formatting — per HELP_AUTHORING_GUIDELINES.md and TEMPLATE.md.
3030

31-
**Note:** Breadcrumb paths after H1 are not required; do not penalize for their absence.
31+
### 2. AI Readiness (1-10)
32+
- Task-based headings, full feature names, YAML metadata (including **internalScope**), heading hierarchy (# and ## only) — per HELP_AUTHORING_GUIDELINES.md and TEMPLATE.md. (Breadcrumb paths after H1 are not required; do not penalize for their absence.)
3233

3334
### 3. Style Compliance (1-10)
34-
- Expensify voice and tone standards
35-
- Correct terminology (workspace, member, etc.)
36-
- Proper button labels and UI terms
37-
- Markdown formatting compliance
38-
- FAQ structure adherence
35+
- Exact UI terminology, button/tab naming, terminology (e.g. Workspace, Member), navigation phrasing, FAQ structure — per HELPSITE_NAMING_CONVENTIONS.md and HELP_AUTHORING_GUIDELINES.md.
3936

4037
## Output Format
4138

.claude/commands/review-helpdot-pr.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,21 @@ allowed-tools: Bash(gh pr comment:*),Bash(gh pr diff:*),Bash(gh pr view:*),mcp__
33
description: Review a HelpDot documentation pull request
44
---
55

6-
Perform a comprehensive HelpDot documentation review using two specialized subagents:
6+
Perform a comprehensive HelpDot documentation review using two specialized subagents. Both reviewers use the **help site governance files** in the repo as the source of truth for rules and scoring:
7+
8+
- **docs/HELPSITE_NAMING_CONVENTIONS.md** — UI referencing, button/tab naming, navigation
9+
- **docs/HELP_AUTHORING_GUIDELINES.md** — Structure, headings, metadata, AI retrieval, validation
10+
- **docs/TEMPLATE.md** — YAML frontmatter, heading guidance, FAQ structure
711

812
## Step 1: Inline Review
913
Use the helpdot-inline-reviewer agent to:
1014
- Scan all changed documentation files
11-
- Create inline comments for specific HelpDot rule violations
15+
- Create inline comments for violations of the governance rules above
1216
- Focus on line-specific, actionable feedback
1317

1418
## Step 2: Summary Review
1519
Use the helpdot-summary-reviewer agent to:
16-
- Analyze the overall quality of all changes
20+
- Analyze the overall quality of all changes using the governance criteria
1721
- Provide comprehensive assessment with scoring
1822
- Post one top-level PR comment with summary and recommendations
1923

Mobile-Expensify

__mocks__/react-native-permissions.ts

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,23 @@
1-
import {PERMISSIONS, RESULTS} from 'react-native-permissions/dist/commonjs/permissions';
1+
import {PERMISSIONS} from 'react-native-permissions/dist/commonjs/permissions';
22
import type {ValueOf} from 'type-fest';
33

4+
const RESULTS = {
5+
UNAVAILABLE: 'unavailable',
6+
BLOCKED: 'blocked',
7+
DENIED: 'denied',
8+
GRANTED: 'granted',
9+
LIMITED: 'limited',
10+
} as const;
11+
412
type Results = ValueOf<typeof RESULTS>;
513
type ResultsCollection = Record<string, Results>;
614
type NotificationSettings = Record<string, boolean>;
715
type Notification = {status: Results; settings: NotificationSettings};
816

917
const openLimitedPhotoLibraryPicker: jest.Mock<void> = jest.fn(() => {});
1018
const openSettings: jest.Mock<void> = jest.fn(() => {});
11-
const check = jest.fn(() => RESULTS.GRANTED as string);
12-
const request = jest.fn(() => RESULTS.GRANTED as string);
19+
const check = jest.fn(() => Promise.resolve(RESULTS.GRANTED as string));
20+
const request = jest.fn(() => Promise.resolve(RESULTS.GRANTED as string));
1321
const checkLocationAccuracy: jest.Mock<string> = jest.fn(() => 'full');
1422
const requestLocationAccuracy: jest.Mock<string> = jest.fn(() => 'full');
1523

android/app/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,8 +111,8 @@ android {
111111
minSdkVersion rootProject.ext.minSdkVersion
112112
targetSdkVersion rootProject.ext.targetSdkVersion
113113
multiDexEnabled rootProject.ext.multiDexEnabled
114-
versionCode 1009033700
115-
versionName "9.3.37-0"
114+
versionCode 1009033800
115+
versionName "9.3.38-0"
116116
// Supported language variants must be declared here to avoid from being removed during the compilation.
117117
// This also helps us to not include unnecessary language variants in the APK.
118118
resConfigs "en", "es"
Lines changed: 1 addition & 0 deletions
Loading

contributingGuides/AI_ETIQUETTE.md

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
# AI Etiquette
2+
3+
AI is a great tool for drafting, searching, summarizing, and exploring. Humans must own judgment, accountability, and quality.
4+
5+
---
6+
7+
## You Own What You Post
8+
9+
If you submit a message, pull request, comment, or code with AI assistance, you are fully accountable for it. Before posting anything AI helped produce, you should be able to explain it without AI's help and feel confident putting your name behind it.
10+
11+
## Avoid AI Slop
12+
13+
"AI slop" is AI generated content copied and pasted with minimal to no human review. Use AI for brainstorming, research, and drafting, but treat it as a starting point, not the final result. Add your own context and nuance before sharing.
14+
15+
## Don't Trust AI Blindly
16+
17+
AI confidently says things that sound correct but are wrong. Always verify claims against source material. It's your job to understand and validate any AI-generated information you act on or share.
18+
19+
## When AI Isn't Enough
20+
21+
If a task can be fully automated with no human review, it should be automated for everyone, not done manually with AI. Our [AI Reviewers](/contributingGuides/philosophies/AI-REVIEWER.md) are an example: they do a first pass on code review, but they don't replace human review. You should still apply your own judgment when reviewing code, writing updates, or making decisions.
22+
23+
---
24+
25+
## Best Practices
26+
27+
### Don't
28+
29+
- Paste AI output directly without adding your own value
30+
- Submit AI-generated code you haven't tested, debugged, and confirmed follows our [coding standards](./STYLE.md)
31+
- Submit AI-generated code you don't fully understand
32+
- Post poorly formatted AI output or long walls of text without distilling the key points
33+
- Blame AI for mistakes. The mistake is yours regardless of the source
34+
- Use AI to generate responses during live conversations instead of engaging directly
35+
36+
### Do
37+
38+
- Use AI to summarize, draft, research, and explore
39+
- Review and edit all AI output before sharing. Put it in your own voice and make sure it's accurate
40+
- Verify AI claims against source information
41+
- Review all AI-generated code and content before asking others to review it
42+
- Verify AI-written PR descriptions and add context needed to explain the change
43+
- Provide evidence of manual testing on PRs, especially when test steps were AI-generated
44+
- Invest time in learning to write effective prompts and recognize quality output

contributingGuides/CONTRIBUTING.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -211,6 +211,9 @@ This helps future investigators understand the history and current status of err
211211
### Important note about JavaScript Style
212212
- Read our official [JavaScript and React style guide](https://github.com/Expensify/App/blob/main/contributingGuides/STYLE.md). Please refer to our Style Guide before asking for a review.
213213
214+
### Using AI tools
215+
- If you use AI tools (Copilot, Cursor, ChatGPT, etc.) to help write code or PR descriptions, please read our [AI Etiquette guide](https://github.com/Expensify/App/blob/main/contributingGuides/AI_ETIQUETTE.md). You are accountable for all AI output you submit.
216+
214217
### For external agencies that Expensify partners with
215218
Follow all the above above steps and processes. When you find a job you'd like to work on:
216219
- Post “I’m from [agency], I’d like to work on this job”

contributingGuides/PAYMENT_VIA_EXPENSIFY.md

Lines changed: 4 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -11,27 +11,14 @@ Contributors are eligible to be paid via Expensify 18 months after they were ass
1111
After approval it can take between 1 business day and a week, depending on the country and service you use.
1212

1313
## For issues with deposits
14-
If you're having an issue with the deposit, ie. a report gets _stuck_ in a state like Approved, start a chat with Concierge. Ask them to create a Github issue using [this template](https://github.com/Expensify/Expensify/issues/new?template=MISSING_REIMBURSEMENT_TEMPLATE.md). Provide as many details below as possible
14+
If you're having an issue with the deposit, ie. a report gets _stuck_ in a state like Approved, start a chat with Concierge to ask for help. Provide as many details below as possible
1515

16-
### Please provide the following details:
1716
> - Report ID:
1817
> - Reimbursement ID:
1918
> - Amount of reimbursement:
2019
> - Date reimbursement was initiated:
2120
> - Date reimbursement was expected:
2221
> - Last 4-digits of the deposit account:
23-
>
24-
> ### Is the missing reimbursement international (CAD > CAD, USD > GBP, etc.) or domestic?
25-
>
26-
> ### If this is an international reimbursement, please provide the following details
27-
> - Location of reimbursement account (AUD, CAD, GBP, EUR, USD)
28-
> - Location/currency of deposit account
29-
>
30-
> ### Have you received reimbursements to the connected deposit account successfully in the past?
31-
> - Yes or No
32-
>
33-
> ### Please select which option best describes the scenario:
34-
> - The recipient connected a deposit account that was closed
35-
> - The recipient entered the bank details incorrectly when connecting their deposit account
36-
> - The recipient entered the correct bank details, but the reimbursement is still missing
37-
> - Something else (please describe below)
22+
> - Location of reimbursement account
23+
> - Have you received reimbursements to the connected deposit account successfully in the past?
24+

0 commit comments

Comments
 (0)