Skip to content

Travel user management R1: Choose who can book travel - #104869

Open
stitesExpensify wants to merge 87 commits into
stites-travelAccessReadfrom
stites-travelUserManagement
Open

stitesExpensify wants to merge 87 commits into
stites-travelAccessReadfrom
stites-travelUserManagement

Conversation

@stitesExpensify

@stitesExpensify stitesExpensify commented Oct 23, 2026 •

Copy link
Copy Markdown
Contributor

Explanation of Change

Adds a Travel access column to the Members page and a Travel access row to member details, behind the travelMemberAccess beta, so workspace admins can turn travel booking off or back on for each member. It calls the action from the PR below it in the stack, which also stops members who are turned off from booking. Deploy after the Auth and Web-Expensify PRs.

Fixed Issues

$ #104866
PROPOSAL: N/A

Tests

  1. As a workspace admin with the travelMemberAccess beta, open Members on a paid workspace that has travel enabled.
  2. Confirm the Travel access column shows Yes for every member.
  3. Click another member's Travel access value, choose No, and confirm it shows No.
  4. Open #admins and confirm it says you turned off travel booking for that member.
  5. Confirm the #admins preview in the LHN shows the same message.
  6. Right-click the message, choose Copy to clipboard, paste it somewhere, and confirm the text matches.
  7. Open that member's details and confirm the Travel access row shows No, then change it to Yes and confirm both the row and the table show Yes.
  8. Open #admins and confirm it says you turned on travel booking for that member.
  9. Turn the member off again, sign in as them, click Book travel, and confirm the message that travel isn't turned on for you.
  10. Sign back in as the admin, turn the member on, sign in as the member, click Book travel, and confirm Spotnana opens.
  • Verify that no errors appear in the JS console

Offline tests

  1. Go offline and change a member's Travel access value in the Members table.
  2. Confirm the new value shows immediately with the pending style.
  3. Go back online and confirm the change saves without an error.

QA Steps

Same as tests.

  • 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

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

1-2. Members shows a Travel access column, Yes for every member:

01-members
  1. Editing a member's Travel access value opens Yes / No:
03b-picker
  1. After choosing No:
03c-off

4-5. #admins says "turned off travel booking for Jane Doe" (here inside the admin's change-log thread), and the LHN preview shows it:

04-admins-off
  1. Right-click menu on the message (Copy message copies "turned off travel booking for Jane Doe"):
06a-context-menu
  1. Member details shows Travel access: No:
07a-details-no
  1. The Travel access page:
07b-setting-page
  1. After choosing Yes, member details shows Yes:
07c-details-yes
  1. ...and so does the table:
07d-table-yes
  1. #admins says "turned on travel booking for Jane Doe":
08-admins-on
  1. The turned-off member clicks Book a trip and sees that travel isn't turned on for them:
09e-turned-off-modal
  1. Once turned back on, Book a trip opens the Travel sign-in tab (the local test workspace uses a made-up Spotnana company, so it stops at the spinner):
10b-popup

Offline: the change shows at once with the pending style:

11a-offline-pending

Offline: back online, it saves without an error:

11b-back-online

Narrow (mobile web) width: member details:

12a-mweb-details

Narrow (mobile web) width: the Travel access page:

12b-mweb-setting

@stitesExpensify
stitesExpensify changed the base branch from main to stites-travelAccessRead November 24, 2026 21:41
…ites-travelUserManagement

# Conflicts:
#	src/components/Tables/WorkspaceMembersTable/WorkspaceMembersTableRow.tsx
#	src/libs/PolicyUtils/travel.ts
#	src/pages/workspace/members/WorkspaceMemberDetailsPage.tsx
@OSBotify

OSBotify commented Dec 3, 2026

Copy link
Copy Markdown
Contributor

🦜 Polyglot Parrot! 🦜

Squawk! Looks like you added some shiny new English strings. Allow me to parrot them back to you in other tongues:

View the translation diff
diff --git a/src/languages/de.ts b/src/languages/de.ts
index 6a6a84e2..d5792ddf 100644
--- a/src/languages/de.ts
+++ b/src/languages/de.ts
@@ -7586,11 +7586,7 @@ _Für ausführlichere Anweisungen [besuchen Sie unsere Hilfeseite](${CONST.NETSU
                         subtitle: 'Kategorien, Tags und Berichtsfelder dieses Arbeitsbereichs an Expensify Travel übertragen, damit Reisende sie beim Buchen beantworten.',
                     },
                 },
-                members: {
-                    offDescription: 'Kann keine Reisen buchen',
-                    onDescription: 'Kann Reisen buchen',
-                    travelAccess: 'Reisezugriff',
-                },
+                members: {offDescription: 'Reisen kann nicht gebucht werden', onDescription: 'Kann Reisen buchen', travelAccess: 'Reisezugriff'},
                 travelBilling: {
                     travelBookingSection: {
                         title: 'Reisebuchung',
diff --git a/src/languages/el.ts b/src/languages/el.ts
index c62f21d1..9b3d6073 100644
--- a/src/languages/el.ts
+++ b/src/languages/el.ts
@@ -7697,11 +7697,7 @@ _Για πιο αναλυτικές οδηγίες, [επισκεφθείτε τ
                             'Σπρώξτε τις κατηγορίες, τις ετικέτες και τα πεδία αναφοράς αυτού του χώρου εργασίας στο Expensify Travel, ώστε οι ταξιδιώτες να τα απαντούν κατά την ώρα της κράτησης.',
                     },
                 },
-                members: {
-                    offDescription: 'Δεν μπορεί να κάνει κρατήσεις ταξιδιών',
-                    onDescription: 'Μπορεί να κάνει κρατήσεις ταξιδιών',
-                    travelAccess: 'Πρόσβαση σε ταξίδια',
-                },
+                members: {offDescription: 'Δεν είναι δυνατή η κράτηση ταξιδιού', onDescription: 'Μπορεί να κλείνει ταξίδια', travelAccess: 'Πρόσβαση ταξιδιού'},
                 travelBilling: {
                     travelBookingSection: {
                         title: 'Κράτηση ταξιδιού',
diff --git a/src/languages/es.ts b/src/languages/es.ts
index e7554098..f44f88c8 100644
--- a/src/languages/es.ts
+++ b/src/languages/es.ts
@@ -7520,11 +7520,7 @@ ${amount} para ${merchant} - ${date}`,
                             'Envía las categorías, etiquetas y campos de informe de este espacio de trabajo a Expensify Travel para que los viajeros los completen en el momento de la reserva.',
                     },
                 },
-                members: {
-                    offDescription: 'No puede reservar viajes',
-                    onDescription: 'Puede reservar viajes',
-                    travelAccess: 'Acceso a viajes',
-                },
+                members: {offDescription: 'No puedes reservar viajes', onDescription: 'Puede reservar viajes', travelAccess: 'Acceso de viajes'},
                 travelBilling: {
                     travelBookingSection: {
                         title: 'Reserva de viajes',
diff --git a/src/languages/fr.ts b/src/languages/fr.ts
index e878654f..207bf807 100644
--- a/src/languages/fr.ts
+++ b/src/languages/fr.ts
@@ -7605,11 +7605,7 @@ _Pour des instructions plus détaillées, [visitez notre site d’aide](${CONST.
                             'Envoyez les catégories, tags et champs de note de frais de cet espace de travail vers Expensify Travel pour que les voyageurs y répondent au moment de la réservation.',
                     },
                 },
-                members: {
-                    offDescription: 'Ne peut pas réserver de voyages',
-                    onDescription: 'Peut réserver des voyages',
-                    travelAccess: 'Accès aux voyages',
-                },
+                members: {offDescription: 'Impossible de réserver un voyage', onDescription: 'Peut réserver des voyages', travelAccess: 'Accès aux déplacements'},
                 travelBilling: {
                     travelBookingSection: {
                         title: 'Réservation de voyage',
diff --git a/src/languages/it.ts b/src/languages/it.ts
index b6bb81c1..027220ac 100644
--- a/src/languages/it.ts
+++ b/src/languages/it.ts
@@ -7538,11 +7538,7 @@ _Per istruzioni più dettagliate, [visita il nostro sito di assistenza](${CONST.
                             'Invia le categorie, i tag e i campi di rendiconto di questo spazio di lavoro a Expensify Travel così che chi viaggia li compili al momento della prenotazione.',
                     },
                 },
-                members: {
-                    offDescription: 'Non può prenotare viaggi',
-                    onDescription: 'Può prenotare viaggi',
-                    travelAccess: 'Accesso ai viaggi',
-                },
+                members: {offDescription: 'Impossibile prenotare viaggi', onDescription: 'Può prenotare viaggi', travelAccess: 'Accesso ai viaggi'},
                 travelBilling: {
                     travelBookingSection: {
                         title: 'Prenotazione viaggi',
diff --git a/src/languages/ja.ts b/src/languages/ja.ts
index 8864ee39..70660fb6 100644
--- a/src/languages/ja.ts
+++ b/src/languages/ja.ts
@@ -7434,11 +7434,7 @@ _詳しい手順については、[ヘルプサイトをご覧ください](${CO
                         subtitle: 'このワークスペースのカテゴリ、タグ、レポートフィールドを Expensify Travel にプッシュして、出張者が予約時にそれらに回答できるようにします。',
                     },
                 },
-                members: {
-                    offDescription: '出張を予約できません',
-                    onDescription: '出張を予約できます',
-                    travelAccess: '出張へのアクセス',
-                },
+                members: {offDescription: '出張を予約できません', onDescription: '出張手配ができます', travelAccess: '出張アクセス'},
                 travelBilling: {
                     travelBookingSection: {
                         title: '出張予約',
diff --git a/src/languages/nl.ts b/src/languages/nl.ts
index d2c366e7..4a4c813b 100644
--- a/src/languages/nl.ts
+++ b/src/languages/nl.ts
@@ -7529,11 +7529,7 @@ _Voor meer gedetailleerde instructies, [bezoek onze help-site](${CONST.NETSUITE_
                         subtitle: 'Push de categorieën, tags en rapportvelden van deze workspace naar Expensify Travel zodat reizigers ze bij het boeken invullen.',
                     },
                 },
-                members: {
-                    offDescription: 'Kan geen reizen boeken',
-                    onDescription: 'Kan reizen boeken',
-                    travelAccess: 'Reistoegang',
-                },
+                members: {offDescription: 'Kan geen reis boeken', onDescription: 'Kan reizen boeken', travelAccess: 'Toegang tot reizen'},
                 travelBilling: {
                     travelBookingSection: {
                         title: 'Reisboeking',
diff --git a/src/languages/pl.ts b/src/languages/pl.ts
index eff6fce4..d686cdab 100644
--- a/src/languages/pl.ts
+++ b/src/languages/pl.ts
@@ -7613,11 +7613,7 @@ _Aby uzyskać bardziej szczegółowe instrukcje, [odwiedź naszą stronę pomocy
                         subtitle: 'Przekaż kategorie, tagi i pola raportu tego workspace’u do Expensify Travel, żeby podróżujący odpowiadali na nie podczas rezerwacji.',
                     },
                 },
-                members: {
-                    offDescription: 'Nie może rezerwować podróży',
-                    onDescription: 'Może rezerwować podróże',
-                    travelAccess: 'Dostęp do podróży',
-                },
+                members: {offDescription: 'Nie można zarezerwować podróży', onDescription: 'Może rezerwować podróże', travelAccess: 'Dostęp do podróży'},
                 travelBilling: {
                     travelBookingSection: {
                         title: 'Rezerwacja podróży',
diff --git a/src/languages/pt-BR.ts b/src/languages/pt-BR.ts
index 633d4fee..133022ae 100644
--- a/src/languages/pt-BR.ts
+++ b/src/languages/pt-BR.ts
@@ -7541,11 +7541,7 @@ _Para instruções mais detalhadas, [visite nossa central de ajuda](${CONST.NETS
                         subtitle: 'Envie as categorias, tags e campos de relatório deste workspace para o Expensify Travel para que os viajantes os respondam no momento da reserva.',
                     },
                 },
-                members: {
-                    offDescription: 'Não pode reservar viagens',
-                    onDescription: 'Pode reservar viagens',
-                    travelAccess: 'Acesso a viagens',
-                },
+                members: {offDescription: 'Não é possível reservar viagem', onDescription: 'Pode reservar viagens', travelAccess: 'Acesso de viagem'},
                 travelBilling: {
                     travelBookingSection: {
                         title: 'Reserva de viagem',
diff --git a/src/languages/zh-hans.ts b/src/languages/zh-hans.ts
index c9f1cb3d..c93a1594 100644
--- a/src/languages/zh-hans.ts
+++ b/src/languages/zh-hans.ts
@@ -7255,11 +7255,7 @@ _如需更详细的说明,请[访问我们的帮助网站](${CONST.NETSUITE_IM
                     autoAddTripName: {title: '将行程名称添加到报销单', subtitle: '为在 Expensify 中预订的行程,自动将行程名称添加到报销事由描述中。'},
                     codingSync: {title: '将编码同步到 Expensify Travel', subtitle: '将此工作区的类别、标签和报表字段推送到 Expensify Travel,以便出行人能在预订时填写。'},
                 },
-                members: {
-                    offDescription: '无法预订差旅',
-                    onDescription: '可以预订差旅',
-                    travelAccess: '差旅权限',
-                },
+                members: {offDescription: '无法预订差旅', onDescription: '可预订差旅', travelAccess: '出差权限'},
                 travelBilling: {
                     travelBookingSection: {
                         title: '差旅预订',

Note

You can apply these changes to your branch by copying the patch to your clipboard, then running pbpaste | git apply 😉

View workflow run

# Conflicts:
#	src/pages/workspace/members/WorkspaceMemberDetailsPage.tsx
@stitesExpensify
stitesExpensify marked this pull request as ready for review December 4, 2026 16:44
@stitesExpensify
stitesExpensify requested review from a team as code owners December 4, 2026 16:44
@expensify-chore-bot
expensify-chore-bot Bot requested review from huult and removed request for a team December 4, 2026 16:44
@expensify-chore-bot

Copy link
Copy Markdown

@huult 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]

@expensify-chore-bot
expensify-chore-bot Bot requested review from joekaufmanexpensify and removed request for a team December 4, 2026 16:44
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Dec 4, 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-12-04T16:56:52.781501Z 9943414 Draft marked ready
ℹ️ 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.

@stitesExpensify
stitesExpensify requested review from shubham1206agra and removed request for huult December 4, 2026 16:51

@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: 9943414ab1

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

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

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@joekaufmanexpensify joekaufmanexpensify left a comment

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.

Core issue from what's next proposal: change is good from a product perspective.

This branch has not been deployed

No deployments
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