Skip to content

fix: fix warning about circular imports#22

Open
sburton84 wants to merge 3 commits into
mainfrom
fix-circular-imports
Open

fix: fix warning about circular imports#22
sburton84 wants to merge 3 commits into
mainfrom
fix-circular-imports

Conversation

@sburton84
Copy link
Copy Markdown
Collaborator

No description provided.

Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR introduces an @ path alias for the src/ directory and updates several internal imports to use that alias, aiming to reduce circular import warnings and avoid importing through the src barrel.

Changes:

  • Add @ alias resolution in Vite and TypeScript path mappings.
  • Replace some src/... and relative imports with @/... imports in custom hooks and docs components/scripts.
  • Avoid importing utilities via the src barrel export in a few components (e.g., cn).

Reviewed changes

Copilot reviewed 9 out of 9 changed files in this pull request and generated 1 comment.

Show a summary per file
File Description
documentation-ui/vite.config.ts Adds Vite @ alias pointing to /src for consistent module resolution.
documentation-ui/tsconfig.json Adds @/* TypeScript path mapping to match the new alias usage.
documentation-ui/src/custom/use-theme.ts Switches dark mode utility import to @/utils/darkMode.
documentation-ui/src/custom/docs/scripts/nav/index.tsx Switches NavBar import to @/custom/docs/components/navmenu.
documentation-ui/src/custom/docs/QuantinuumLogo.tsx Imports cn directly from @/utils instead of the src barrel.
documentation-ui/src/custom/docs/components/triplecard/Card.tsx Imports cn directly from @/utils instead of the src barrel.
documentation-ui/src/custom/docs/components/gdpr/_components/CookieSettingsDialog/CookieSettingsDialog.tsx Updates GDPR module imports to use @/custom/docs/components/gdpr/....
documentation-ui/src/custom/docs/components/gdpr/_components/CookieConditional/CookieConditional.tsx Updates GDPR context/type imports to use @/custom/docs/components/gdpr/....
documentation-ui/src/custom/docs/components/footer/index.tsx Switches QuantinuumLogo import to @/custom/docs/QuantinuumLogo.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread documentation-ui/tsconfig.json
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