Skip to content

fix(wework): remove hidden Apps page reachable via /apps - #2546

Merged
qdaxb merged 4 commits into
wecode-ai:mainfrom
sdadunderscoresdad:fix/remove-apps-page
Aug 11, 2026
Merged

qdaxb merged 4 commits into
wecode-ai:mainfrom
sdadunderscoresdad:fix/remove-apps-page

Conversation

@sdadunderscoresdad

@sdadunderscoresdad sdadunderscoresdad commented Aug 10, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • Remove the "应用" (Apps) page (AppsPage at /apps), which was meant to be hidden but could still be opened directly via the /apps route, surfacing a clickable "应用" workspace tab in the top tab strip.
  • Delete the page component, its /apps route and telemetry branch, the hidden apps tab in APP_TABS, the workspace-tab auxiliary label, the @extensions/apps extension, and the related tests/i18n keys.

Test plan

  • pnpm --filter wework test passes (3229 tests)
  • pnpm --filter wework exec prettier --check passes on changed files
  • pnpm --filter wework exec eslint passes on changed files
  • tsc -b type check passes
  • Pre-push hook (ESLint / TypeScript / unit tests) passes on push
  • Verify /apps no longer opens the "应用" page in a real Tauri session
  • Confirm no "应用中心"/app-center documentation references the removed page

🤖 Generated with Claude Code

Summary by CodeRabbit

  • Changes

    • Removed the legacy Apps page and /apps route from navigation.
    • Removed the Apps workspace tab and related localized labels.
    • Existing /app/* routes remain available.
    • Unknown desktop app links now return to the home page instead of the retired Apps page.
  • Tests

    • Updated navigation and tab behavior coverage for the route changes.
    • Removed obsolete Apps page integration tests.

@coderabbitai

coderabbitai Bot commented Aug 10, 2026 •

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: c24fd071-1d45-4ce4-8eeb-336d5ac38ab7

📥 Commits

Reviewing files that changed from the base of the PR and between 1a06289 and c728cf8.

📒 Files selected for processing (2)
  • wework/src/i18n/locales/en/common.json
  • wework/src/i18n/locales/zh-CN/common.json
🚧 Files skipped from review as they are similar to previous changes (2)
  • wework/src/i18n/locales/zh-CN/common.json
  • wework/src/i18n/locales/en/common.json

📝 Walkthrough

Walkthrough

The legacy /apps route and Apps page integration were removed. App telemetry now applies only to /app/* routes. Desktop navigation falls back to / for unknown app keys. Related tabs, labels, localization, and test fixtures were updated.

Changes

Legacy Apps route removal

Layer / File(s) Summary
Route and workspace tab cleanup
wework/src/App.tsx, wework/src/config/apps.ts, wework/src/features/workspace-tabs/workspaceTabs.ts, wework/src/i18n/locales/*/common.json
The /apps route, hidden Apps tab, workspace title mapping, and localization entries were removed. /app/* remains classified as an app route.
Desktop route fallback and test updates
wework/src/lib/navigation.ts, wework/src/lib/navigation.test.ts, wework/src/features/workspace-tabs/*test*
Unknown desktop app keys now resolve to /. Tests cover known desktop app routes, the fallback, and updated workspace label fixtures.

Estimated code review effort: 3 (Moderate) | ~20 minutes

Possibly related PRs

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly and concisely describes the main change: removing the hidden Apps page and its /apps route.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@coderabbitai coderabbitai Bot 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.

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In `@wework/src/App.tsx`:
- Line 164: Remove the obsolete `/apps` fallback from the default branch of the
navigation resolver in `navigation.ts`, and instead return a supported
destination or fail explicitly while preserving `unknown` telemetry behavior.
Add a regression test covering unknown `DesktopAppKey` values and verifying the
new default behavior; do not retain or redirect through the `AppsPage` path.
🪄 Autofix

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: a7517268-b1ca-4134-992b-a61156ba8b08

📥 Commits

Reviewing files that changed from the base of the PR and between a6f6d24 and 6d968b4.

📒 Files selected for processing (13)
  • wework/src/App.apps.test.tsx
  • wework/src/App.tsx
  • wework/src/components/topnav/ChromeTitlebar.test.tsx
  • wework/src/components/topnav/useChromeTabs.test.ts
  • wework/src/config/apps.ts
  • wework/src/extensions/apps.tsx
  • wework/src/features/workspace-tabs/WorkspaceTabStrip.test.tsx
  • wework/src/features/workspace-tabs/WorkspaceTabsContext.test.tsx
  • wework/src/features/workspace-tabs/workspaceTabs.test.ts
  • wework/src/features/workspace-tabs/workspaceTabs.ts
  • wework/src/i18n/locales/en/common.json
  • wework/src/i18n/locales/zh-CN/common.json
  • wework/src/pages/AppsPage.tsx
💤 Files with no reviewable changes (12)
  • wework/src/i18n/locales/zh-CN/common.json
  • wework/src/components/topnav/ChromeTitlebar.test.tsx
  • wework/src/extensions/apps.tsx
  • wework/src/features/workspace-tabs/WorkspaceTabsContext.test.tsx
  • wework/src/pages/AppsPage.tsx
  • wework/src/App.apps.test.tsx
  • wework/src/i18n/locales/en/common.json
  • wework/src/features/workspace-tabs/workspaceTabs.ts
  • wework/src/features/workspace-tabs/WorkspaceTabStrip.test.tsx
  • wework/src/components/topnav/useChromeTabs.test.ts
  • wework/src/config/apps.ts
  • wework/src/features/workspace-tabs/workspaceTabs.test.ts

Comment thread wework/src/App.tsx
if (path === '/sites') return 'sites' as const
if (path === '/automations') return 'automations' as const
if (path === '/apps' || path.startsWith('/app/')) return 'apps' as const
if (path.startsWith('/app/')) return 'apps' as const

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.

🗄️ Data Integrity & Integration | 🟠 Major | ⚡ Quick win

Remove the remaining /apps navigation fallback.

wework/src/lib/navigation.ts:26-37 still returns /apps for unknown DesktopAppKey values. After this change, that path has no AppsPage handler, and telemetry records it as unknown. Update the resolver to use a supported destination or fail explicitly. Add a regression test for the default branch.

As per coding guidelines: fix the primary flow instead of retaining an obsolete fallback path.

Also applies to: 199-199

🤖 Prompt for AI Agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

In `@wework/src/App.tsx` at line 164, Remove the obsolete `/apps` fallback from
the default branch of the navigation resolver in `navigation.ts`, and instead
return a supported destination or fail explicitly while preserving `unknown`
telemetry behavior. Add a regression test covering unknown `DesktopAppKey`
values and verifying the new default behavior; do not retain or redirect through
the `AppsPage` path.

Source: Coding guidelines

The Apps page (AppsPage) was intended to be hidden but could still be
opened through the /apps route, which surfaced a clickable "应用"
workspace tab. Delete the page, its route, the hidden tab entry, the
workspace-tab labels, extensions, and related tests so /apps no longer
opens it.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
sdadunderscoresdad and others added 3 commits August 10, 2026 18:32
resolveDesktopAppRoute still returned the removed /apps route as its
default. Fall back to the workbench instead and cover unknown app keys
with a regression test.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@qdaxb
qdaxb added this pull request to the merge queue Aug 11, 2026
Merged via the queue into wecode-ai:main with commit a7478b3 Aug 11, 2026
47 checks passed
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.

2 participants