Skip to content

[CP Staging] Revert "Implement read-only access to workspace pages"#92342

Merged
lakchote merged 1 commit into
mainfrom
revert-91305-ws1.2
Jun 2, 2026
Merged

[CP Staging] Revert "Implement read-only access to workspace pages"#92342
lakchote merged 1 commit into
mainfrom
revert-91305-ws1.2

Conversation

@flodnv

@flodnv flodnv commented Jun 2, 2026

Copy link
Copy Markdown
Contributor

@flodnv flodnv requested review from a team as code owners June 2, 2026 10:02
@melvin-bot melvin-bot Bot requested review from joekaufmanexpensify and mollfpr and removed request for a team June 2, 2026 10:02
@melvin-bot

melvin-bot Bot commented Jun 2, 2026

Copy link
Copy Markdown

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

@lakchote lakchote changed the title Revert "Implement read-only access to workspace pages" [CP Staging] Revert "Implement read-only access to workspace pages" Jun 2, 2026
@OSBotify

OSBotify commented Jun 2, 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/fr.ts b/src/languages/fr.ts
index efd418be962..0d4e81c5a1d 100644
--- a/src/languages/fr.ts
+++ b/src/languages/fr.ts
@@ -2978,7 +2978,7 @@ ${amount} pour ${merchant} - ${date}`,
         phoneOrEmail: 'Téléphone ou e-mail',
         error: {
             agentSignInBlocked:
-                'Les comptes d\u2019agent ne permettent pas de se connecter directement. Pour utiliser un agent, connectez-vous avec votre propre compte et accédez-y via Copilot.',
+                'Les comptes d’agent ne permettent pas de se connecter directement. Pour utiliser un agent, connectez-vous avec votre propre compte et accédez-y via Copilot.',
             invalidFormatEmailLogin: 'L’adresse e-mail saisie est invalide. Veuillez corriger le format et réessayer.',
         },
         cannotGetAccountDetails: 'Impossible de récupérer les détails du compte. Veuillez essayer de vous reconnecter.',

Note

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

View workflow run

@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: cf76dfefea

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

CONST.POLICY.POLICY_FEATURE.PER_DIEM,
CONST.POLICY.POLICY_FEATURE.MORE_FEATURES,
].some(canReadPolicyFeature);
const shouldShowProtectedItems = canEditWorkspaceSettings(policy);

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 Pass the current login when checking workspace edit access

When the workspace policy is only partially loaded and lacks the top-level policy.role, canEditWorkspaceSettings(policy) falls back to no role because no login is supplied, even though employeeList[currentUserLogin].role may already identify the user as an admin/editor. The previous check passed currentUserLogin, so this can hide all protected workspace menu items for otherwise authorized users until a full policy with role arrives.

Useful? React with 👍 / 👎.

@lakchote lakchote 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.

Straight revert, approving

@lakchote lakchote merged commit 0863142 into main Jun 2, 2026
33 of 39 checks passed
@lakchote lakchote deleted the revert-91305-ws1.2 branch June 2, 2026 10:22
@melvin-bot melvin-bot Bot added the Emergency label Jun 2, 2026
@melvin-bot

melvin-bot Bot commented Jun 2, 2026

Copy link
Copy Markdown

@lakchote looks like this was merged without a test passing. Please add a note explaining why this was done and remove the Emergency label if this is not an emergency.

@lakchote

lakchote commented Jun 2, 2026

Copy link
Copy Markdown
Contributor

Not an emergency, straight revert

@lakchote lakchote removed the Emergency label Jun 2, 2026
@github-actions

github-actions Bot commented Jun 2, 2026

Copy link
Copy Markdown
Contributor

🚧 @lakchote has triggered a test Expensify/App build. You can view the workflow run here.

@OSBotify

OSBotify commented Jun 2, 2026

Copy link
Copy Markdown
Contributor

✋ This PR was not deployed to staging yet because QA is ongoing. It will be automatically deployed to staging after the next production release.

OSBotify pushed a commit that referenced this pull request Jun 2, 2026
[CP Staging] Revert "Implement read-only access to workspace pages"

(cherry picked from commit 0863142)

(cherry-picked to staging by grgia)
@OSBotify OSBotify added the CP Staging marks PRs that have been CP'd to staging label Jun 2, 2026
@OSBotify

OSBotify commented Jun 2, 2026

Copy link
Copy Markdown
Contributor

🚀 Cherry-picked to staging by https://github.com/grgia in version: 9.3.91-1 🚀

platform result
🕸 web 🕸 success ✅
🤖 android 🤖 success ✅
🍎 iOS 🍎 success ✅

Bundle Size Analysis (Sentry):

@MelvinBot

Copy link
Copy Markdown
Contributor

Help site review — no changes required

I reviewed the changes in this PR against App/docs/articles and no help site updates are required.

Why:

  • This PR reverts Implement read-only access to workspace pages #91305, which had added read-only (Auditor) access to workspace settings pages (More Features, Expensify Card, Company Cards, etc.).
  • The only help article that documents the Auditor role is Managing-Workspace-Members.md, which describes an Auditor as: "Can view and comment on reports but cannot make changes."
  • That description reflects the pre-Implement read-only access to workspace pages #91305 behavior — i.e. exactly the state this revert restores. The now-removed workspace-page read access was a brand-new, undocumented capability, so there is nothing in the help site that becomes inaccurate as a result of this revert.

Since the documented behavior already matches the post-revert state, there is no doc drift to correct and no draft PR is needed.


@flodnv, no linked help site PR was created because no doc changes are required (details above). Please confirm this assessment is correct — if you believe the Auditor read-only workspace-page behavior was documented somewhere I should update, let me know and I'll open a draft PR.

@OSBotify

OSBotify commented Jun 2, 2026

Copy link
Copy Markdown
Contributor

🚀 Cherry-picked to staging by https://github.com/grgia in version: 9.3.94-0 🚀

platform result
🕸 web 🕸 success ✅
🤖 android 🤖 success ✅
🍎 iOS 🍎 success ✅

Bundle Size Analysis (Sentry):

@MelvinBot

Copy link
Copy Markdown
Contributor

🤖 No help site changes required — no draft PR created.

This PR reverts #91305 ("Implement read-only access to workspace pages"), which was a frontend-only change giving auditors read-only access to workspace settings pages (More Features, Company Cards, Expensify Card, etc.). I reviewed the diff and the help site and found nothing in docs/articles that needs updating.

Why no docs changes are needed
  • The original feature added no docs. PR Implement read-only access to workspace pages #91305 touched only src/ and tests/ files — zero changes under docs/articles. There is no published documentation to revert.
  • No help article documents the reverted behavior. Searching docs/articles for "auditor" and "read-only access" turns up no article stating that auditors can open workspace settings pages. The only relevant mention is the Auditor role definition in Managing-Workspace-Members.md:14: "Can view and comment on reports but cannot make changes." That describes access to reports, not workspace settings pages, and remains accurate after this revert.
  • The revert restores already-documented behavior. Removing read-only access to settings pages brings the product back in line with what the help site already describes, so there is nothing to add, change, or roll back.

If the intent is to permanently document workspace-scoped roles / auditor read access once that feature re-lands in a stable form, that would be a separate docs effort tied to the re-implementation PR rather than this revert.

@OSBotify

OSBotify commented Jun 2, 2026

Copy link
Copy Markdown
Contributor

🚀 Deployed to production by https://github.com/luacmartins in version: 9.3.94-0 🚀

platform result
🕸 web 🕸 success ✅
🤖 android 🤖 success ✅
🍎 iOS 🍎 success ✅

@OSBotify

OSBotify commented Jun 3, 2026

Copy link
Copy Markdown
Contributor

🚀 Cherry-picked to staging by https://github.com/grgia in version: 9.3.97-0 🚀

platform result
🕸 web 🕸 success ✅
🤖 android 🤖 success ✅
🍎 iOS 🍎 success ✅

Bundle Size Analysis (Sentry):

@MelvinBot

Copy link
Copy Markdown
Contributor

🤖 Help site review: no changes required.

This PR reverts Expensify/App#91305 ("Implement read-only access to workspace pages"), a frontend-only feature that let auditors open workspace settings pages (More Features, Expensify Card, Company Cards, Categories, Tags, Taxes, Workflows, Rules, etc.) in read-only mode and showed a "Your workspace role can view these settings, but can't edit them" prompt when they tried to edit.

That feature was never documented on the help site, and this revert simply restores the prior behavior — so the existing articles already match the post-revert state. No draft PR was created.

Why no docs update is needed
  • The reverted feature only changed UI permissions/visibility and added the readOnlyActionTitle / readOnlyActionPrompt copy (now removed). It introduced no new user-facing concept that was ever written up in docs/articles.
  • The Auditor role is still described exactly as the restored behavior in Managing-Workspace-Members.md:14: "Auditor – Can view and comment on reports but cannot make changes."
  • A search of docs/articles for auditor / read-only workspace-page access turned up no content describing the reverted capability, so there is nothing to revert or amend in the docs.

@flodnv, no help site changes are required for this revert — the existing articles already reflect the restored behavior, so I did not open a docs PR. Let me know if you'd like me to add anything to the Auditor role documentation anyway.

@OSBotify

OSBotify commented Jun 3, 2026

Copy link
Copy Markdown
Contributor

🚀 Deployed to production by https://github.com/lakchote in version: 9.3.97-1 🚀

platform result
🕸 web 🕸 success ✅
🤖 android 🤖 success ✅
🍎 iOS 🍎 success ✅

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CP Staging marks PRs that have been CP'd to staging

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants