Skip to content

Commit 0a15436

Browse files
Merge remote-tracking branch 'origin/main' into perf/extract-search-workspaces-tab-buttons
# Conflicts: # src/components/Navigation/NavigationTabBar/index.tsx
2 parents ef37bbe + a6d885b commit 0a15436

332 files changed

Lines changed: 5180 additions & 6519 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: 13 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ You are **Support Doc Optimizer** — an AI trained to evaluate HelpDot articles
1111

1212
Your job is to scan through changed documentation files and create **inline comments** for specific violations based on the three core criteria below.
1313

14+
**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.
15+
1416
## 1. Readability Violations (Create inline comments for)
1517
- Poor sentence clarity, grammar, or scannability issues
1618
- Illogical flow or ordering of sections
@@ -20,6 +22,7 @@ Your job is to scan through changed documentation files and create **inline comm
2022

2123
## 2. AI Readiness Violations (Create inline comments for)
2224
- 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)
2326
- Non-descriptive headings (e.g., "Where to find it" vs "Where to find Statement Matching")
2427
- Vague references like "this," "that," or "it" without clear context
2528
- Missing or incomplete YAML metadata:
@@ -28,11 +31,14 @@ Your job is to scan through changed documentation files and create **inline comm
2831
title: [Full article title]
2932
description: [Concise, benefit-focused summary]
3033
keywords: [feature name, related terms, navigation path, etc.]
34+
internalScope: Audience is [target role]. Covers [main topic]. Does not cover [excluded areas].
3135
---
3236
```
33-
- Missing breadcrumb paths below H1 (Settings > Workspaces > People)
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].`
3438
- Wrong heading levels (using ### or deeper instead of # or ##)
3539

40+
**Note:** A breadcrumb path after the H1 heading is **not** required. Do not flag missing breadcrumbs as a violation.
41+
3642
## 3. Expensify Style Compliance Violations (Create inline comments for)
3743
- Voice and tone issues:
3844
- Not casual yet professional
@@ -52,11 +58,13 @@ keywords: [feature name, related terms, navigation path, etc.]
5258

5359
## Instructions
5460

55-
1. **First, get the list of changed files:**
56-
- Use `gh pr diff` to see what actually changed in the PR
57-
- Focus ONLY on documentation files (*.md, *.csv, etc.)
61+
1. **Get the diff and scope (required):**
62+
- Use `gh pr diff` to see the exact lines added or modified in the PR
63+
- Identify which file paths and line numbers are in the diff—these are the **only** lines you may comment on
64+
- Focus only on documentation files (*.md, *.csv, etc.)
5865

5966
2. **For analyzing changed files:**
67+
- **Restrict analysis to the diff:** When checking for violations, evaluate only content that appears on added or modified lines. If you read a full file for context, do not create inline comments on line numbers that are not part of the diff.
6068
- **Use a hybrid approach** because different violations require different analysis methods:
6169
- **Grep is suitable for pattern-based violations only:**
6270
- Terminology violations ("policy" → "workspace", "user" → "member")
@@ -75,7 +83,7 @@ keywords: [feature name, related terms, navigation path, etc.]
7583

7684
4. **Required parameters for each inline comment:**
7785
- `path`: Full file path (e.g., "docs/articles/new-expensify/chat/Create-a-New-Chat.md")
78-
- `line`: Line number where the issue occurs
86+
- `line`: Line number where the issue occurs**must be a line that appears in the PR diff (added or modified)**. Do not use line numbers from unchanged portions of the file.
7987
- `body`: Concise description of the violation and fix
8088

8189
## Tool Usage Example

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

Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ You are a documentation quality specialist that provides comprehensive assessmen
1111

1212
Your job is to analyze all changed files and provide a single, comprehensive summary review with scores and overall recommendations.
1313

14+
**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.
15+
1416
## Scoring Criteria
1517

1618
### 1. Readability (1-10)
@@ -21,12 +23,13 @@ Your job is to analyze all changed files and provide a single, comprehensive sum
2123
- Proper use of formatting elements
2224

2325
### 2. AI Readiness (1-10)
24-
- Descriptive headings with full feature names
26+
- Descriptive headings with full feature names and full task phrasing (e.g., "Expense Rule options for Workspace Admins" not "Options")
2527
- Clear context without vague references
26-
- Proper YAML metadata structure
27-
- Breadcrumb navigation paths
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)
2829
- Consistent heading hierarchy (# and ## only)
2930

31+
**Note:** Breadcrumb paths after H1 are not required; do not penalize for their absence.
32+
3033
### 3. Style Compliance (1-10)
3134
- Expensify voice and tone standards
3235
- Correct terminology (workspace, member, etc.)
@@ -64,9 +67,10 @@ Provide your assessment as a **top-level PR comment** using this format:
6467

6568
## Instructions
6669

67-
1. **Analyze all changed documentation files**
68-
2. **Look for patterns and overall quality trends**
69-
3. **Provide balanced feedback** (both positive and areas for improvement)
70-
4. **Focus on the big picture** rather than individual line issues
71-
5. **Use Bash(gh pr comment:*) tool** to post the summary comment
72-
6. **Reference that inline comments provide specific details**
70+
1. **Get the diff first:** Use `gh pr diff` to see the exact proposed changes. Your entire assessment (scores, findings, recommendations) must be based only on added or modified lines—not on unchanged content from the old file.
71+
2. **Analyze only the proposed changes** in each documentation file
72+
3. **Look for patterns and overall quality trends** within the diff
73+
4. **Provide balanced feedback** (both positive and areas for improvement) — only for the proposed changes
74+
5. **Focus on the big picture** rather than individual line issues
75+
6. **Use Bash(gh pr comment:*) tool** to post the summary comment
76+
7. **Reference that inline comments provide specific details**

.claude/skills/coding-standards/rules/perf-11-optimize-data-selection.md

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -124,17 +124,18 @@ const [hasEmptyReports] = useOnyx(ONYXKEYS.COLLECTION.REPORT, {
124124

125125
### Review Metadata
126126

127-
Flag ONLY when ALL of these are true:
127+
Flag ONLY when ANY of these are true:
128128

129129
- A component uses `useOnyx` and either:
130130
- Subscribes to a broad data structure without selecting specific fields, causing re-renders when unrelated fields change
131-
- Uses a `selector` that returns a large object, full collection, mapped/transformed collection, `Set`, `Map`, or intermediate data structure that is further reduced by the component
131+
- Uses a `selector` whose output is still large or complex (e.g., full collection, large mapped/transformed result, `Set`, `Map`), or returns an intermediate data structure that is further reduced by the component
132+
- A selector on a collection references other large external datasets (e.g., another Onyx collection passed via closure) and iterates over them on every change to the subscribed collection, compounding the computation cost on unrelated updates
132133

133134
**DO NOT flag if:**
134135

135136
- The selector returns a primitive value (`boolean`, `string`, `number`, `undefined`)
136137
- The selector returns a small object with only a few fields picked from a single item (not a collection)
137-
- The selector meaningfully reduces a large dataset to a small result
138+
- The selector meaningfully reduces a large dataset to a small result (e.g., a primitive or a few items) by iterating over the subscribed collection itself — the `deepEqual` cost on a small result is negligible
138139
- The `useOnyx` call is on a single-item key (not a collection), and the selector picks specific fields
139140
- The data structure is static or the function requires the entire object for valid operations
140141

.claude/skills/playwright-app-testing/SKILL.md

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,10 @@ ps aux | grep "webpack" | grep -v grep
3030
## Playwright Testing Workflow
3131

3232
1. **Verify server**: Check webpack process is running
33-
2. **Navigate**: Use `mcp__playwright__browser_navigate` to `https://dev.new.expensify.com:8082/`
34-
3. **Interact**: Use Playwright MCP tools including:
35-
- **Inspection**: `browser_snapshot`, `browser_take_screenshot`, `browser_console_messages`
36-
- **Interaction**: `browser_click`, `browser_type`, `browser_fill_form`, `browser_hover`
37-
- **Navigation**: `browser_navigate_back`, `browser_tabs`, `browser_wait_for`
38-
- All other Playwright tools as needed
33+
2. **Navigate**: Open `https://dev.new.expensify.com:8082/` in the browser
34+
3. **Interact**: Use Playwright MCP tools to inspect, click, type, and navigate
35+
36+
Do NOT add arbitrary waits after actions. Instead, take a snapshot to check the result and only add short waits if the page hasn't updated yet.
3937

4038
## Dev Environment Sign-In
4139

.github/actions/javascript/authorChecklist/index.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15589,6 +15589,8 @@ const CONST = {
1558915589
},
1559015590
COMMENT: {
1559115591
TYPE_BOT: 'Bot',
15592+
NAME_MELVIN: 'melvin-bot',
15593+
NAME_CODEX: 'chatgpt-codex-connector',
1559215594
NAME_GITHUB_ACTIONS: 'github-actions',
1559315595
},
1559415596
ACTIONS: {
@@ -15614,6 +15616,8 @@ const CONST = {
1561415616
TEST_WORKFLOW_NAME: 'Jest Unit Tests',
1561515617
TEST_WORKFLOW_PATH: '.github/workflows/test.yml',
1561615618
PROPOSAL_KEYWORD: 'Proposal',
15619+
PROPOSAL_HEADER_A: 'what is the root cause of that problem?',
15620+
PROPOSAL_HEADER_B: 'what changes do you think we should make in order to solve the problem?',
1561715621
DATE_FORMAT_STRING: 'yyyy-MM-dd',
1561815622
PULL_REQUEST_REGEX: new RegExp(`${GITHUB_BASE_URL_REGEX.source}/.*/.*/pull/([0-9]+).*`),
1561915623
ISSUE_REGEX: new RegExp(`${GITHUB_BASE_URL_REGEX.source}/.*/.*/issues/([0-9]+).*`),

.github/actions/javascript/awaitStagingDeploys/index.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12367,6 +12367,8 @@ const CONST = {
1236712367
},
1236812368
COMMENT: {
1236912369
TYPE_BOT: 'Bot',
12370+
NAME_MELVIN: 'melvin-bot',
12371+
NAME_CODEX: 'chatgpt-codex-connector',
1237012372
NAME_GITHUB_ACTIONS: 'github-actions',
1237112373
},
1237212374
ACTIONS: {
@@ -12392,6 +12394,8 @@ const CONST = {
1239212394
TEST_WORKFLOW_NAME: 'Jest Unit Tests',
1239312395
TEST_WORKFLOW_PATH: '.github/workflows/test.yml',
1239412396
PROPOSAL_KEYWORD: 'Proposal',
12397+
PROPOSAL_HEADER_A: 'what is the root cause of that problem?',
12398+
PROPOSAL_HEADER_B: 'what changes do you think we should make in order to solve the problem?',
1239512399
DATE_FORMAT_STRING: 'yyyy-MM-dd',
1239612400
PULL_REQUEST_REGEX: new RegExp(`${GITHUB_BASE_URL_REGEX.source}/.*/.*/pull/([0-9]+).*`),
1239712401
ISSUE_REGEX: new RegExp(`${GITHUB_BASE_URL_REGEX.source}/.*/.*/issues/([0-9]+).*`),

.github/actions/javascript/checkAndroidStatus/index.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -737110,6 +737110,8 @@ const CONST = {
737110737110
},
737111737111
COMMENT: {
737112737112
TYPE_BOT: 'Bot',
737113+
NAME_MELVIN: 'melvin-bot',
737114+
NAME_CODEX: 'chatgpt-codex-connector',
737113737115
NAME_GITHUB_ACTIONS: 'github-actions',
737114737116
},
737115737117
ACTIONS: {
@@ -737135,6 +737137,8 @@ const CONST = {
737135737137
TEST_WORKFLOW_NAME: 'Jest Unit Tests',
737136737138
TEST_WORKFLOW_PATH: '.github/workflows/test.yml',
737137737139
PROPOSAL_KEYWORD: 'Proposal',
737140+
PROPOSAL_HEADER_A: 'what is the root cause of that problem?',
737141+
PROPOSAL_HEADER_B: 'what changes do you think we should make in order to solve the problem?',
737138737142
DATE_FORMAT_STRING: 'yyyy-MM-dd',
737139737143
PULL_REQUEST_REGEX: new RegExp(`${GITHUB_BASE_URL_REGEX.source}/.*/.*/pull/([0-9]+).*`),
737140737144
ISSUE_REGEX: new RegExp(`${GITHUB_BASE_URL_REGEX.source}/.*/.*/issues/([0-9]+).*`),

.github/actions/javascript/checkDeployBlockers/index.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11634,6 +11634,8 @@ const CONST = {
1163411634
},
1163511635
COMMENT: {
1163611636
TYPE_BOT: 'Bot',
11637+
NAME_MELVIN: 'melvin-bot',
11638+
NAME_CODEX: 'chatgpt-codex-connector',
1163711639
NAME_GITHUB_ACTIONS: 'github-actions',
1163811640
},
1163911641
ACTIONS: {
@@ -11659,6 +11661,8 @@ const CONST = {
1165911661
TEST_WORKFLOW_NAME: 'Jest Unit Tests',
1166011662
TEST_WORKFLOW_PATH: '.github/workflows/test.yml',
1166111663
PROPOSAL_KEYWORD: 'Proposal',
11664+
PROPOSAL_HEADER_A: 'what is the root cause of that problem?',
11665+
PROPOSAL_HEADER_B: 'what changes do you think we should make in order to solve the problem?',
1166211666
DATE_FORMAT_STRING: 'yyyy-MM-dd',
1166311667
PULL_REQUEST_REGEX: new RegExp(`${GITHUB_BASE_URL_REGEX.source}/.*/.*/pull/([0-9]+).*`),
1166411668
ISSUE_REGEX: new RegExp(`${GITHUB_BASE_URL_REGEX.source}/.*/.*/issues/([0-9]+).*`),

.github/actions/javascript/checkSVGCompression/index.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20159,6 +20159,8 @@ const CONST = {
2015920159
},
2016020160
COMMENT: {
2016120161
TYPE_BOT: 'Bot',
20162+
NAME_MELVIN: 'melvin-bot',
20163+
NAME_CODEX: 'chatgpt-codex-connector',
2016220164
NAME_GITHUB_ACTIONS: 'github-actions',
2016320165
},
2016420166
ACTIONS: {
@@ -20184,6 +20186,8 @@ const CONST = {
2018420186
TEST_WORKFLOW_NAME: 'Jest Unit Tests',
2018520187
TEST_WORKFLOW_PATH: '.github/workflows/test.yml',
2018620188
PROPOSAL_KEYWORD: 'Proposal',
20189+
PROPOSAL_HEADER_A: 'what is the root cause of that problem?',
20190+
PROPOSAL_HEADER_B: 'what changes do you think we should make in order to solve the problem?',
2018720191
DATE_FORMAT_STRING: 'yyyy-MM-dd',
2018820192
PULL_REQUEST_REGEX: new RegExp(`${GITHUB_BASE_URL_REGEX.source}/.*/.*/pull/([0-9]+).*`),
2018920193
ISSUE_REGEX: new RegExp(`${GITHUB_BASE_URL_REGEX.source}/.*/.*/issues/([0-9]+).*`),

.github/actions/javascript/createOrUpdateStagingDeploy/index.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11762,6 +11762,8 @@ const CONST = {
1176211762
},
1176311763
COMMENT: {
1176411764
TYPE_BOT: 'Bot',
11765+
NAME_MELVIN: 'melvin-bot',
11766+
NAME_CODEX: 'chatgpt-codex-connector',
1176511767
NAME_GITHUB_ACTIONS: 'github-actions',
1176611768
},
1176711769
ACTIONS: {
@@ -11787,6 +11789,8 @@ const CONST = {
1178711789
TEST_WORKFLOW_NAME: 'Jest Unit Tests',
1178811790
TEST_WORKFLOW_PATH: '.github/workflows/test.yml',
1178911791
PROPOSAL_KEYWORD: 'Proposal',
11792+
PROPOSAL_HEADER_A: 'what is the root cause of that problem?',
11793+
PROPOSAL_HEADER_B: 'what changes do you think we should make in order to solve the problem?',
1179011794
DATE_FORMAT_STRING: 'yyyy-MM-dd',
1179111795
PULL_REQUEST_REGEX: new RegExp(`${GITHUB_BASE_URL_REGEX.source}/.*/.*/pull/([0-9]+).*`),
1179211796
ISSUE_REGEX: new RegExp(`${GITHUB_BASE_URL_REGEX.source}/.*/.*/issues/([0-9]+).*`),

0 commit comments

Comments
 (0)