uwazi
uwazi copied to clipboard
Migrate to new table
After #6826 is merged we need to use the new table for all the v2 UIs.
We should migrate all uses of V2/Components/UI/Table
and replace it with V2/Components/UI/TableV2
, and remove the corresponding story and test. Lastly, rename TableV2
module, story, and test to Table
.
This is important because TableV2
handles groups differently and has a corrected dnd functionality.
Keep in mind that the new table requires that all its rows and sub rows have a unique rowId
to properly handle dnd, selection and grouping.
Doing this migration will fix: #6431& #6432
Sections under Settings where migration to new table is needed:
- [ ] User & Groups
- [ ] Menu
- [ ] Pages
- [ ] Languages
- [ ] Translations
- [ ] Filters
- [ ] Bug in Filters: Moved here from issue #6820
Describe the bug
When a user extracts all the items from the group in the filter settings, the group becomes a filter. It seems to be a bug because we use entity types (templates) for the creation of primary filters; labels that we use for grouping should not become filters. As a result, when a former group name is displayed on the filters panel, it always shows 0 entities, because there is no template associated with it.
To Reproduce
Steps to reproduce the behavior:
- Go to Settings and navigate to Filters from the left menu
- Add group and add entity types to the group
- Save the change
- Drag all the entity types belonging to the group outside of the group
- See that the group is displayed as a filter item as a result
- [ ] Relationship Types
- [ ] Activity Log
- [ ] Uploads
- [ ] Migrate FileDropzone to use dnd-kit (from #7065) We should migrate FileDropzone to use dnd-kit, instead of react-dnd so that v2 uses one library for drag and drop functionality. There’s also a DragAndDrop.stories.tsx for an implementation of dnd that’s not used in v2 and should also be removed. If https://github.com/huridocs/uwazi/issues/7052 is done, react-dnd can be removed as a dependency.