Skip to content

Fix profile sidebar profile - #7

Merged
swarfte merged 4 commits into
mainfrom
dev
May 31, 2026
Merged

Fix profile sidebar profile#7
swarfte merged 4 commits into
mainfrom
dev

Conversation

@swarfte

@swarfte swarfte commented May 31, 2026

Copy link
Copy Markdown
Owner

This pull request introduces improvements to the sidebar's context menu handling, enhances the sidebar's visual structure, and adds type checking to the development workflow. The main changes are grouped below:

Developer Tooling Improvements:

  • Added vite-plugin-checker to devDependencies in package.json and configured it in vite.config.ts to enable real-time TypeScript and template checking with vue-tsc. This helps catch type errors during development. [1] [2]

Sidebar UI and UX Enhancements:

  • Updated the sidebar container in App.vue to use min-h-screen h-full and a consistent bg-gray-50 background for improved layout and appearance.
  • Refined context menu event handling in ProfileArea.vue by using .stop.prevent modifiers. This ensures context menus only open for the intended sidebar elements and do not propagate to parent elements, providing a more reliable user experience. [1] [2]

Code Cleanup:

  • Removed the unused ClipboardDocumentIcon import from ProfileArea.vue to keep the codebase clean.

swarfte added 4 commits May 31, 2026 14:10
Add vite-plugin-checker to dev dependencies and enable it in vite.config.ts (vueTsc: true) so Vite runs TypeScript/template checks during development. Update package.json and package-lock.json accordingly. Also remove an unused ClipboardDocumentIcon import from ProfileArea.vue.
Adjust contextmenu event modifiers in ProfileArea.vue to prevent menu conflicts: removed .self on the sidebar handler and added .stop.prevent to folder, profile and empty-state handlers so their right-click events don't bubble up to the sidebar. Ensures the correct context menu is shown depending on where the user right-clicks.
Update App.vue layout: change container alignment from items-start to items-stretch so grid children fill available height, and add bg-gray-50 and h-full to the left column wrapper to give the ProfileArea a full-height, light background. This improves visual consistency and ensures the sidebar spans the full viewport height.
Add Tailwind's `min-h-screen` utility to the left column wrapper so the ProfileArea spans the full viewport height. This fixes layout issues where the sidebar could be shorter than the page when content is limited; no functional changes beyond styling.
Copilot AI review requested due to automatic review settings May 31, 2026 06:43
@vercel

vercel Bot commented May 31, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
nc-command-builder Ready Ready Preview, Comment May 31, 2026 6:43am

@swarfte
swarfte merged commit 0b3d581 into main May 31, 2026
2 checks passed

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot encountered an error and was unable to review this pull request. You can try again by re-requesting a review.

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