Conversation
Migrate build/test/lint workflow to VoidZero's vite-plus (vp): CI now uses voidzero-dev/setup-vp and build/test/preview scripts use vp commands. Add vp pre-commit hook (.vite-hooks/pre-commit) and a VSCode recommendation/settings for vite-plus and formatting. Remove legacy prettier/eslint config files and update package.json scripts and dependencies to match the new toolchain. Also add a new DevTools component and apply widespread updates to tests, components, hooks, and configs to align with the tooling and dependency bumps.
Reviewer's GuideMigrates the project from plain Vite/Vitest/Prettier/ESLint CLI usage to the vite-plus (vp) toolchain, wiring vp into configs, CI, and local workflows, while introducing a reusable DevTools component and applying minor code/test tweaks for async handling, linting, and type-safety. Sequence diagram for lazy loading DevTools in the root routesequenceDiagram
actor Dev
participant Browser
participant RootComponent
participant DevToolsLazy as DevTools_lazy_import
participant DevTools
participant TanStackDevtools
participant RouterPanel as TanStackRouterDevtoolsPanel
participant QueryDevtools as TanStackQueryDevtools
Dev->>Browser: Open_app_in_dev_mode
Browser->>RootComponent: Render_root_route
RootComponent->>RootComponent: Check_import_meta_env_DEV
alt DEV_true
RootComponent->>DevToolsLazy: lazy(import_DevTools)
RootComponent->>DevToolsLazy: Render_inside_Suspense
DevToolsLazy-->>DevTools: Load_DevTools_component
DevTools->>TanStackDevtools: Render_with_config_and_plugins
TanStackDevtools->>RouterPanel: Mount_router_devtools_panel
TanStackDevtools->>QueryDevtools: Mount_query_devtools
else DEV_false
RootComponent-->>RootComponent: DevTools_reference_is_null
RootComponent-->>Browser: Render_without_devtools
end
Browser-->>Dev: App_UI_displayed
Class diagram for the new DevTools componentclassDiagram
class DevTools {
+DevTools()
}
class TanStackDevtools {
+config
+plugins
}
class TanStackRouterDevtoolsPanel {
}
class TanStackQueryDevtools {
}
DevTools --> TanStackDevtools : renders
TanStackDevtools o-- TanStackRouterDevtoolsPanel : plugin
TanStackDevtools o-- TanStackQueryDevtools : plugin
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Migrate build/test/lint workflow to VoidZero's vite-plus (vp): CI now uses voidzero-dev/setup-vp and build/test/preview scripts use vp commands. Add vp pre-commit hook (.vite-hooks/pre-commit) and a VSCode recommendation/settings for vite-plus and formatting. Remove legacy prettier/eslint config files and update package.json scripts and dependencies to match the new toolchain. Also add a new DevTools component and apply widespread updates to tests, components, hooks, and configs to align with the tooling and dependency bumps.
Summary by Sourcery
Migrate the project tooling to vite-plus (vp) and update configuration, code, and tests to align with the new build, lint, and test pipeline while introducing a dedicated DevTools component for development diagnostics.
New Features:
Enhancements:
Build:
CI:
Tests:
Chores: