Skip to content

chore: use Vite+#2

Draft
fengmk2 wants to merge 1 commit into
mainfrom
vite-plus-migration-e2e-npm
Draft

chore: use Vite+#2
fengmk2 wants to merge 1 commit into
mainfrom
vite-plus-migration-e2e-npm

Conversation

@fengmk2
Copy link
Copy Markdown
Owner

@fengmk2 fengmk2 commented Jan 17, 2026

┌  VITE+(⚡︎) - The Unified Toolchain for the Web
│
◇  pnpm@10.27.0 installed
│
◇  Dependencies installed
│
◆  ✅ Rewrote imports in 124 file(s)
│
●    app/signup/components/input-mail.spec.tsx
│    app/components/app/configuration/prompt-value-panel/utils.spec.ts
│    app/components/app/configuration/prompt-value-panel/index.spec.tsx
│    app/components/app/configuration/config/agent/agent-tools/index.spec.tsx
│    app/components/app/configuration/config/index.spec.tsx
│    app/components/app/configuration/config/config-document.spec.tsx
│    app/components/app/configuration/config/config-audio.spec.tsx
│    app/components/app/configuration/config-var/index.spec.tsx
│    app/components/app/configuration/config-vision/index.spec.tsx
│    app/components/app/configuration/dataset-config/settings-modal/index.spec.tsx
│    app/components/app/configuration/dataset-config/params-config/index.spec.tsx
│    app/components/app/configuration/dataset-config/params-config/config-content.spec.tsx
│    app/components/app/configuration/dataset-config/select-dataset/index.spec.tsx
│    app/components/app/configuration/dataset-config/card-item/index.spec.tsx
│    app/components/app/annotation/filter.spec.tsx
│    app/components/app/annotation/header-opts/index.spec.tsx
│    app/components/app/annotation/index.spec.tsx
│    app/components/app/annotation/batch-add-annotation-modal/index.spec.tsx
│    app/components/app/annotation/batch-add-annotation-modal/csv-downloader.spec.tsx
│    app/components/app/annotation/add-annotation-modal/index.spec.tsx
│    app/components/app/annotation/view-annotation-modal/index.spec.tsx
│    app/components/app/text-generate/saved-items/index.spec.tsx
│    app/components/app/text-generate/saved-items/no-data/index.spec.tsx
│    app/components/app/create-app-modal/index.spec.tsx
│    app/components/app/workflow-log/index.spec.tsx
│    app/components/app/overview/__tests__/toggle-logic.test.ts
│    app/components/app/overview/embedded/index.spec.tsx
│    app/components/app/overview/apikey-info-panel/apikey-info-panel.test-utils.tsx
│    app/components/plugins/card/index.spec.tsx
│    app/components/plugins/update-plugin/index.spec.tsx
│    app/components/plugins/plugin-mutation-model/index.spec.tsx
│    app/components/plugins/marketplace/empty/index.spec.tsx
│    app/components/plugins/marketplace/index.spec.tsx
│    app/components/plugins/marketplace/description/index.spec.tsx
│    app/components/plugins/marketplace/list/index.spec.tsx
│    app/components/plugins/marketplace/search-box/index.spec.tsx
│    app/components/plugins/marketplace/sort-dropdown/index.spec.tsx
│    app/components/plugins/plugin-item/index.spec.tsx
│    app/components/plugins/plugin-item/action.spec.tsx
│    app/components/plugins/plugin-detail-panel/model-selector/tts-params-panel.spec.tsx
│    app/components/plugins/plugin-detail-panel/model-selector/index.spec.tsx
│    app/components/plugins/plugin-detail-panel/model-selector/llm-params-panel.spec.tsx
│    app/components/plugins/plugin-detail-panel/subscription-list/delete-confirm.spec.tsx
│    app/components/plugins/plugin-detail-panel/subscription-list/use-subscription-list.spec.ts
│    app/components/plugins/plugin-detail-panel/subscription-list/selector-view.spec.tsx
│    app/components/plugins/plugin-detail-panel/subscription-list/selector-entry.spec.tsx
│    app/components/plugins/plugin-detail-panel/subscription-list/index.spec.tsx
│    app/components/plugins/plugin-detail-panel/subscription-list/subscription-card.spec.tsx
│    app/components/plugins/plugin-detail-panel/subscription-list/edit/apikey-edit-modal.spec.tsx
│    app/components/plugins/plugin-detail-panel/subscription-list/edit/index.spec.tsx
│    app/components/plugins/plugin-detail-panel/subscription-list/edit/oauth-edit-modal.spec.tsx
│    app/components/plugins/plugin-detail-panel/subscription-list/edit/manual-edit-modal.spec.tsx
│    app/components/plugins/plugin-detail-panel/subscription-list/log-viewer.spec.tsx
│    app/components/plugins/plugin-detail-panel/subscription-list/list-view.spec.tsx
│    app/components/plugins/plugin-detail-panel/subscription-list/create/oauth-client.spec.tsx
│    app/components/plugins/plugin-detail-panel/subscription-list/create/index.spec.tsx
│    app/components/plugins/plugin-detail-panel/subscription-list/create/common-modal.spec.tsx
│    app/components/plugins/plugin-detail-panel/multiple-tool-selector/index.spec.tsx
│    app/components/plugins/install-plugin/install-from-marketplace/index.spec.tsx
│    app/components/plugins/install-plugin/install-from-marketplace/steps/install.spec.tsx
│    app/components/plugins/install-plugin/install-bundle/index.spec.tsx
│    app/components/plugins/install-plugin/install-from-local-package/ready-to-install.spec.tsx
│    app/components/plugins/install-plugin/install-from-local-package/index.spec.tsx
│    app/components/plugins/install-plugin/install-from-local-package/steps/install.spec.tsx
│    app/components/plugins/install-plugin/install-from-local-package/steps/uploading.spec.tsx
│    app/components/plugins/install-plugin/install-from-github/index.spec.tsx
│    app/components/plugins/install-plugin/install-from-github/steps/selectPackage.spec.tsx
│    app/components/plugins/install-plugin/install-from-github/steps/loaded.spec.tsx
│    app/components/plugins/install-plugin/install-from-github/steps/setURL.spec.tsx
│    app/components/plugins/reference-setting-modal/index.spec.tsx
│    app/components/plugins/reference-setting-modal/auto-update-setting/index.spec.tsx
│    app/components/plugins/plugin-auth/index.spec.tsx
│    app/components/plugins/plugin-auth/authorize/index.spec.tsx
│    app/components/plugins/plugin-auth/authorize/authorize-components.spec.tsx
│    app/components/plugins/readme-panel/index.spec.tsx
│    app/components/plugins/plugin-page/filter-management/index.spec.tsx
│    app/components/plugins/plugin-page/empty/index.spec.tsx
│    app/components/plugins/plugin-page/use-uploader.spec.ts
│    app/components/plugins/plugin-page/context.spec.tsx
│    app/components/plugins/plugin-page/index.spec.tsx
│    app/components/plugins/plugin-page/list/index.spec.tsx
│    app/components/plugins/plugin-page/plugin-tasks/index.spec.tsx
│    app/components/plugins/plugin-page/use-reference-setting.spec.ts
│    app/components/datasets/external-knowledge-base/connector/index.spec.tsx
│    app/components/datasets/documents/create-from-pipeline/processing/embedding-process/index.spec.tsx
│    app/components/datasets/documents/create-from-pipeline/data-source/online-drive/file-list/list/index.spec.tsx
│    app/components/datasets/documents/create-from-pipeline/data-source/website-crawl/base/options/index.spec.tsx
│    app/components/datasets/create/website/jina-reader/index.spec.tsx
│    app/components/datasets/create/website/watercrawl/index.spec.tsx
│    app/components/datasets/create/notion-page-preview/index.spec.tsx
│    app/components/datasets/create/stop-embedding-modal/index.spec.tsx
│    app/components/datasets/create/file-preview/index.spec.tsx
│    app/components/datasets/create/empty-dataset-creation-modal/index.spec.tsx
│    app/components/explore/app-list/index.spec.tsx
│    app/components/explore/installed-app/index.spec.tsx
│    app/components/explore/index.spec.tsx
│    app/components/rag-pipeline/components/rag-pipeline-header/publisher/index.spec.tsx
│    app/components/workflow/__tests__/trigger-status-sync.test.tsx
│    app/components/custom/custom-page/index.spec.tsx
│    app/components/custom/custom-web-app-brand/index.spec.tsx
│    app/components/apps/app-card.spec.tsx
│    app/components/apps/hooks/use-dsl-drag-drop.spec.ts
│    app/components/header/account-setting/model-provider-page/hooks.spec.ts
│    app/components/header/account-setting/members-page/operation/index.spec.tsx
│    app/components/base/markdown-blocks/think-block.spec.tsx
│    app/components/base/file-uploader/utils.spec.ts
│    app/components/billing/upgrade-btn/index.spec.tsx
│    app/components/billing/priority-label/index.spec.tsx
│    app/components/billing/pricing/plans/self-hosted-plan-item/index.spec.tsx
│    app/components/billing/pricing/plans/self-hosted-plan-item/button.spec.tsx
│    app/components/billing/pricing/plans/cloud-plan-item/index.spec.tsx
│    app/components/billing/pricing/plans/index.spec.tsx
│    app/components/billing/pricing/index.spec.tsx
│    app/components/billing/apps-full-in-dialog/index.spec.tsx
│    app/components/share/text-generation/run-batch/index.spec.tsx
│    test/i18n-mock.ts
│    utils/emoji.spec.ts
│    __tests__/document-detail-navigation-fix.test.tsx
│    __tests__/goto-anything/search-error-handling.test.ts
│    __tests__/goto-anything/match-action.test.ts
│    __tests__/workflow-onboarding-integration.test.tsx
│    hooks/use-format-time-from-now.spec.ts
│    service/base.spec.ts
│    vitest.config.ts
│
◇  Which agent are you using?
│  ChatGPT (Codex)
│
◇  Agent instructions already exist at AGENTS.md.
│  Append
│
◆  Appended agent instructions to AGENTS.md
│
◇  Dependencies installed
│
└  ✨ Migration completed!

@gemini-code-assist
Copy link
Copy Markdown

Summary of Changes

Hello @fengmk2, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request undertakes a significant refactoring of the project's frontend build and testing infrastructure. It transitions the development environment to a unified Vite+ toolchain, aiming to consolidate and streamline various development tasks under a single command-line interface. This change involved updating core dependencies, adjusting configuration files, and refactoring import statements across a large number of test files to ensure seamless integration and improved developer experience.

Highlights

  • Toolchain Migration: The project has migrated its frontend development and testing toolchain to Vite+, a unified CLI that wraps various tools like Vite, Rolldown, Vitest, tsdown, Oxlint, and Oxfmt.
  • Dependency Updates: Key development dependencies such as vite and vitest have been updated to use their respective @voidzero-dev/vite-plus-core and @voidzero-dev/vite-plus-test counterparts, and vite-plus has been added as a new dependency.
  • Test Script Adjustments: The package.json scripts for running tests (test, test:coverage, test:watch) have been modified to leverage the new vite test command provided by Vite+.
  • Import Path Refactoring: Over 120 test files (.spec.tsx, .spec.ts) have been updated to change vitest import paths to vite-plus/test, ensuring compatibility with the new testing framework integration.
  • Documentation Update: The AGENTS.md file now includes a comprehensive section detailing the usage of Vite+, outlining its commands, workflow, common pitfalls, and a review checklist for agents.

🧠 New Feature in Public Preview: You can now enable Memory to help Gemini Code Assist learn from your team's feedback. This makes future code reviews more consistent and personalized to your project's style. Click here to enable Memory in your admin console.

Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

Copy link
Copy Markdown

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request successfully migrates the project to use Vite+, a unified toolchain. The changes are comprehensive, including updating the AGENTS.md documentation with usage instructions, modifying package.json and pnpm-lock.yaml to incorporate Vite+ dependencies, and consistently updating import paths from vitest to vite-plus/test across all relevant test files. The test scripts and vitest.config.ts have also been correctly adjusted for the new toolchain. The migration appears to be well-executed and consistent throughout the codebase.

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