final-hill / cathedral

Requirements Engineering
https://cathedral.final-hill.com/
GNU Affero General Public License v3.0
0 stars 0 forks source link

Upgrade UI framework #164

Open mlhaufe opened 5 months ago

mlhaufe commented 5 months ago

https://primevue.org/guides/migration/v4/

mlhaufe commented 2 months ago

This migration is not working as advertised. Many things still broken:

https://github.com/orgs/primefaces/discussions?discussions_q=nuxt+tailwind

mlhaufe commented 2 months ago

The number of dependencies, configuration changes, and breaking changes lead me to think it's better to migrate to the official nuxt UI offering

https://nuxt.com/modules/ui

Primevue form elements aren't all actual form elements and fail when forms are submitted:

  1. <InputNumber>, <DropDown> don't support 'name' nor 'required' attribute
  2. <DropDown> is not implemented as a <select />

Probably other elements as well...

mlhaufe commented 1 month ago

After viewing the following, it looks like nuxt UI is definitely the way to go. It supports proper form integration as well as zod validation which means that the API validation can be re-used on the client side instead of having to recreate it:

https://www.youtube.com/watch?v=1P4ObGatgnU

This will aid in the generic form editor which is wanted for the workbox feature.

v3 of the library is near release.

https://github.com/nuxt/ui/issues/1289