Skip to content

refactor(frontend): drop the app-layer re-export shims left by the carve waves - #5887

Draft
ardaerzin wants to merge 1 commit into
pkg/ui-data-tablefrom
oss/drop-reexport-shims
Draft

refactor(frontend): drop the app-layer re-export shims left by the carve waves#5887
ardaerzin wants to merge 1 commit into
pkg/ui-data-tablefrom
oss/drop-reexport-shims

Conversation

@ardaerzin

Copy link
Copy Markdown
Contributor

Each extraction lane left a stub in the app that re-exported from the package, to keep call sites
compiling. This lane deletes those 24 stubs and repoints roughly 60 call sites at the packages.

Wide (108 files) but mechanical — the alternative is leaving a permanent second name for every
moved symbol.
Not run in a browser — static gates only (pnpm lint-fix 24/24, tsc --noEmit clean
for @agenta/shared, ui, entities, entity-ui, settings-ui, oss, ee, mobile).

Stacked on pkg/ui-data-table; review only this lane's diff.

@ardaerzin

Copy link
Copy Markdown
Contributor Author

@coderabbitai review

@vercel

vercel Bot commented Aug 10, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
agenta-documentation Error Error Aug 11, 2026 5:11am

Request Review

@coderabbitai

coderabbitai Bot commented Aug 10, 2026

Copy link
Copy Markdown
⚠️ Action not completed

Review rate limited.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

@coderabbitai

coderabbitai Bot commented Aug 10, 2026

Copy link
Copy Markdown

Review Change Stack

Important

Review skipped

Draft detected.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Repository YAML (base), Organization UI (inherited)

Review profile: CHILL

Plan: Pro Plus

Run ID: 862d0497-6a7c-4b16-9ad1-56ba576b2185

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
📝 Walkthrough

Summary by CodeRabbit

  • Refactor

    • Consolidated shared date and time formatting across evaluation, settings, observability, and deployment views.
    • Standardized navigation, settings, project, webhook, authentication, and chat functionality around shared application modules.
    • Simplified sidebar and settings integrations by removing outdated intermediary exports.
    • Improved chat and drive component integration while preserving existing behavior.
    • Updated global styling initialization to support consistent rendered content and token animations.
  • Tests

    • Updated chat approval and project state tests to reflect the current shared integrations.

Walkthrough

The change centralizes frontend imports on shared workspace packages. It migrates date-time, settings, navigation, project, authentication, chat, and webhook dependencies, removes compatibility paths, and updates application style and import ordering.

Changes

Shared import migration

Layer / File(s) Summary
Shared package exports
web/ee/package.json, web/packages/agenta-shared/...
Adds the settings workspace dependency and exports the configured dayjs instance.
Date, settings, and authentication imports
web/ee/src/..., web/oss/src/components/pages/settings/..., web/oss/src/pages/..., web/oss/src/lib/...
Moves date-time, settings, project, and authentication imports to shared packages.
Chat and Drive imports
web/oss/src/components/AgentChatSlice/..., web/oss/src/components/Drives/..., web/oss/src/components/Playground/...
Uses centralized chat state and hooks and reorganizes Drive imports.
Navigation and project entities
web/oss/src/components/Sidebar/..., web/oss/src/state/..., web/oss/src/components/Layout/...
Moves sidebar dependencies and project state imports to @agenta/navigation and @agenta/entities/project.
Webhook entities
web/oss/src/components/Webhooks/...
Consolidates webhook atoms, types, and handlers under @agenta/entities/webhook.
Application cleanup
web/oss/src/pages/_app.tsx, web/oss/src/components/..., web/packages/agenta-playground/...
Reorders imports and styles, removes redundant imports, and reformats unchanged code.
Estimated code review effort: 3 (Moderate) ~20 minutes

Possibly related PRs

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly summarizes removing app-layer re-export shims and updating imports to use package exports directly.
Description check ✅ Passed The description directly explains the shim removal, call-site updates, scope, validation, and browser-testing status.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
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 💡 1
🛠️ Fix failing CI checks 💡
  • Create stacked PR
  • Commit on current branch
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch oss/drop-reexport-shims

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.

@ardaerzin

Copy link
Copy Markdown
Contributor Author

@coderabbitai review

@coderabbitai

coderabbitai Bot commented Aug 10, 2026

Copy link
Copy Markdown
✅ Action performed

Review finished.

Note: CodeRabbit is an incremental review system and does not re-review already reviewed commits. This command is applicable only when automatic reviews are paused.

…rve waves

Each extraction wave left a stub at the old app path re-exporting the package,
so call sites never moved. OSS lint forbids exactly that (it defeats
tree-shaking), and the gate had been red since the navigation wave.

All 24 shims are gone and their 60 call sites now import the package directly.
Two needed more than a path swap: SettingsPageShell was a default re-export, and
services/api.ts re-exported fetchProfile out of a module the caller also used for
getJWT.

Also fixes an unrelated pre-existing break: seven files imported dayjs from
lib/helpers/dateTimeHelper/dayjs, a path that has never existed in git. They were
silently untyped, which is where all 23 of the OSS type errors came from. They now
take the plugin-configured instance, newly re-exported from
@agenta/shared/utils/dateTime. EE gained the @agenta/settings dep the repointing
exposed.

Gates: lint 24/24, OSS tsc 0 errors (was 23), EE tsc 0.

In _app.tsx the CSS imports keep their original order — globals.css before the
vendor sheets — since the cascade depends on it.
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.

1 participant