devtools icon indicating copy to clipboard operation
devtools copied to clipboard

DevTools UI improvement

Open arashsheyda opened this issue 2 years ago • 2 comments

while developing modules for DevTools, It feels like some components are missing or some can be refactored to have more features. here is a list:

  • [ ] NTable: unavailable
  • [ ] NPagination: unavailable
  • [ ] NTabs: unavailable
  • [ ] NDialog or NModal: we have Dialog component in @nuxt/devtools, we can refactor and move it to ui.
  • [x] NDrawer: we have DrawerRight & DrawerBottom component in @nuxt/devtools, we can refactor and move it to ui.
  • [x] NNotification: we have Notification component in nuxt-devtools, we can refactor and move it to ui.
  • [x] NNavbar: we have Navbar component in @nuxt/devtools, we can refactor and move it to ui because it's often use.
  • [x] NSplitPane: we have PanelLeftRight component in @nuxt/devtools, we can refactor and move it to ui.
  • [ ] NTooltip: we are using floating-vue for tooltips too in @nuxt/devtools, but I think we can add tooltip with only css
  • [x] ~~NCommandPalette: we have CommandPalette component in @nuxt/devtools, we can refactor and move it to ui~~
  • [ ] NAlert: there is already NTip but I think NAlert is more common for use
  • [x] NBadge: we have Badge component in @nuxt/devtools, we can refactor and move it to ui
  • [x] NLink & NTextExternalLink: can refactored to one component
  • [x] NButton & NIconButton: can refactored to one component (with support for group-buttons)

also there is this thought that maybe user wants to use @nuxt/devtools-ui for any other project so it would be neat if we add some other components too (e.g. NAvatar, NProgress ...)

If there are any additional components or improvements that have been overlooked, please feel free to add them to the list. let me know what you think, thanks

arashsheyda avatar Sep 23 '23 04:09 arashsheyda

I am not sure if NCommandPalette should be moved to UI kit, modules should contribute to the main commands instead of bundling another one.

Others sound great! 👍

antfu avatar Sep 23 '23 10:09 antfu

I am not sure if NCommandPalette should be moved to UI kit, modules should contribute to the main commands instead of bundling another one.

Others sound great! 👍

Yes I forgot about that :)

arashsheyda avatar Sep 23 '23 19:09 arashsheyda