Commit b09b17c
Bulk Edit v2 [MAPS-22] (#10226)
* Bulk-Edit: field editors for initial default appearances [MAPS-53] (#10159)
* Keyboard accesibility for bulk edit [MAPS-29] (#10110)
* Bulk-Edit-App: Fix sorting error and edit button with no padding [INTEG-3103] (#10090)
* Bulk-Edit-App: Freeze top row with Field Names [INTEG-2953] (#10076)
* freeze top row with Field Names
* removing unused import
* making the status column sticky too (#10082)
* not showing the edit button when loading entries
* fix error when changing sorting
* Bulk edit: Filter columns [INTEG-3089] (#10089)
* Bulk-Edit-App: Freeze top row with Field Names [INTEG-2953] (#10076)
* freeze top row with Field Names
* removing unused import
* making the status column sticky too (#10082)
* wip
* select all
* Refactor FilterColumns and SortMenu components for improved layout and functionality
* Fixing states and enhancing performance in the process by not calling the getContentType each time
* Fix box issue
* Renaming and fixing warnings
* sticky
* corrections PR comments
* Fixing rebase conflicts
---------
Co-authored-by: Franco Banfi <62450599+FBanfi@users.noreply.github.com>
Co-authored-by: francobanfi <franco.banfi@external.contentful.com>
* wip
* Added new useKeyboardNavigation hook to encapsulate keyboard navigation logic.
* Simplifying a bit
* Refactor keyboard navigation logic in useKeyboardNavigation hook for improved readability and performance. Simplified moveFocus and extendFocusToEdge functions by removing unnecessary useCallback and enhancing selection handling.
* Refactor EntryTable and TableHeader components to improve keyboard navigation and selection handling. Updated focus logic to use HEADERS_ROW constant for better readability and maintainability. Enhanced checkbox toggle functionality for header and row selections.
* fixing issues
* changing styles for keyboard accessibility
* Refactors and tests
* Fixing focus on first cell and edge navigation
* Readding column selection
* Refactoring styles
* Refactor Table components to centralize cell focus and selection logic.
* Fixing checked disable checkboxes
* Refactor EntryTable, TableHeader, and TableRow components to unify cell focus and selection logic. Updated function signatures to use FocusPosition for better clarity and maintainability. Enhanced keyboard navigation handling in useKeyboardNavigation hook and corresponding tests.
* Simplifying a few things. Enter doesn't do that much anymore
* fix merge
---------
Co-authored-by: Franco Banfi <62450599+FBanfi@users.noreply.github.com>
Co-authored-by: francobanfi <franco.banfi@external.contentful.com>
* Tooltip fix for bulk edit [MAPS-57] (#10148)
* fix
* wip
* Workaround to make both things work
* changing some icons to match field editors versions + adding initial editors
* changing icon + modifying tests
* adding tests for FieldEditor component
* adding more field editors
* adding test for entry utils content type mapper
* renaming method
* removing unused variable
* moving methods to entry utils file
* removing any
* removing unnecessary logic for field editor setter
* changing disabled logic
* refactors + removing createLocales
* using field locale instead of default
* removing manual numeric validations
* removing mock from BulkEditModal.test.tsx
* fixing tests between conflicts
* Bulk-Edit: Parsing the value for the different editors [MAPS-53] (#10173)
* Keyboard accesibility for bulk edit [MAPS-29] (#10110)
* Bulk-Edit-App: Fix sorting error and edit button with no padding [INTEG-3103] (#10090)
* Bulk-Edit-App: Freeze top row with Field Names [INTEG-2953] (#10076)
* freeze top row with Field Names
* removing unused import
* making the status column sticky too (#10082)
* not showing the edit button when loading entries
* fix error when changing sorting
* Bulk edit: Filter columns [INTEG-3089] (#10089)
* Bulk-Edit-App: Freeze top row with Field Names [INTEG-2953] (#10076)
* freeze top row with Field Names
* removing unused import
* making the status column sticky too (#10082)
* wip
* select all
* Refactor FilterColumns and SortMenu components for improved layout and functionality
* Fixing states and enhancing performance in the process by not calling the getContentType each time
* Fix box issue
* Renaming and fixing warnings
* sticky
* corrections PR comments
* Fixing rebase conflicts
---------
Co-authored-by: Franco Banfi <62450599+FBanfi@users.noreply.github.com>
Co-authored-by: francobanfi <franco.banfi@external.contentful.com>
* wip
* Added new useKeyboardNavigation hook to encapsulate keyboard navigation logic.
* Simplifying a bit
* Refactor keyboard navigation logic in useKeyboardNavigation hook for improved readability and performance. Simplified moveFocus and extendFocusToEdge functions by removing unnecessary useCallback and enhancing selection handling.
* Refactor EntryTable and TableHeader components to improve keyboard navigation and selection handling. Updated focus logic to use HEADERS_ROW constant for better readability and maintainability. Enhanced checkbox toggle functionality for header and row selections.
* fixing issues
* changing styles for keyboard accessibility
* Refactors and tests
* Fixing focus on first cell and edge navigation
* Readding column selection
* Refactoring styles
* Refactor Table components to centralize cell focus and selection logic.
* Fixing checked disable checkboxes
* Refactor EntryTable, TableHeader, and TableRow components to unify cell focus and selection logic. Updated function signatures to use FocusPosition for better clarity and maintainability. Enhanced keyboard navigation handling in useKeyboardNavigation hook and corresponding tests.
* Simplifying a few things. Enter doesn't do that much anymore
* fix merge
---------
Co-authored-by: Franco Banfi <62450599+FBanfi@users.noreply.github.com>
Co-authored-by: francobanfi <franco.banfi@external.contentful.com>
* Tooltip fix for bulk edit [MAPS-57] (#10148)
* fix
* wip
* Workaround to make both things work
* adding more field editors
* adding test for entry utils content type mapper
* refactors + removing createLocales
* parsing the value for the different editors
* setting truncation to display fields
* adding more tests
* pr comments
* format changes between conflicts resolution
* changing utils file name
---------
Co-authored-by: JuliRossi <juliana.rossi@external.contentful.com>
---------
Co-authored-by: JuliRossi <juliana.rossi@external.contentful.com>
* Bulk edit: Refactor display names [MAPS-78] (#10205)
* refactor to reuse existing display value method
* refactor for getFieldDisplayValue method
* refactor in the getEntryFieldValue method
* removing test
* Bulk Edit: Customize the Boolean editor label with user settings [MAPS-86] (#10210)
* first version of the customizable boolean labels
* refactor to use useSdk hook
* adding tests and some refactors
* fixing pr comments
* removing unused imports
* Bulk Edit: Alternative appearances [MAPS-54] (#10219)
* first version of the customizable boolean labels
* refactor to use useSdk hook
* fixing pr comments
* removing unused imports
* adding alternative appearances for field editors
* Bulk edit: Add field validations [MAPS-52] (#10221)
* Add field validations
* Address PR comments
- Remove duplicated debounced value
- Updated the way error messages are displayed so they're consistent with errors from the field editors
- Removed redundant isValid property
* Bulk edit v2 fixes [MAPS-22] (#10229)
* Run validations for items
* Remove value from update if empty
---------
Co-authored-by: Franco Banfi <62450599+FBanfi@users.noreply.github.com>
Co-authored-by: JuliRossi <juliana.rossi@external.contentful.com>1 parent 05317bd commit b09b17c
41 files changed
Lines changed: 13986 additions & 454 deletions
File tree
- apps/bulk-edit
- src
- locations/Page
- components
- utils
- validations
- commands
- test
- locations/Page
- mocks
- validations
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
8 | 9 | | |
9 | 10 | | |
10 | 11 | | |
11 | | - | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
12 | 23 | | |
13 | 24 | | |
14 | 25 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
5 | 6 | | |
6 | 7 | | |
7 | 8 | | |
| |||
10 | 11 | | |
11 | 12 | | |
12 | 13 | | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
13 | 24 | | |
14 | 25 | | |
15 | 26 | | |
| |||
Lines changed: 34 additions & 42 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
3 | | - | |
4 | | - | |
5 | | - | |
6 | | - | |
7 | | - | |
8 | | - | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | | - | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
13 | 5 | | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
14 | 9 | | |
15 | 10 | | |
16 | 11 | | |
17 | 12 | | |
18 | 13 | | |
19 | 14 | | |
20 | 15 | | |
21 | | - | |
| 16 | + | |
22 | 17 | | |
23 | 18 | | |
24 | 19 | | |
| |||
30 | 25 | | |
31 | 26 | | |
32 | 27 | | |
33 | | - | |
| 28 | + | |
34 | 29 | | |
35 | 30 | | |
36 | 31 | | |
37 | 32 | | |
38 | | - | |
| 33 | + | |
| 34 | + | |
39 | 35 | | |
40 | 36 | | |
41 | 37 | | |
42 | | - | |
43 | | - | |
| 38 | + | |
| 39 | + | |
44 | 40 | | |
45 | 41 | | |
46 | 42 | | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | 43 | | |
51 | 44 | | |
| 45 | + | |
52 | 46 | | |
53 | 47 | | |
54 | 48 | | |
| |||
66 | 60 | | |
67 | 61 | | |
68 | 62 | | |
69 | | - | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
70 | 66 | | |
71 | 67 | | |
72 | 68 | | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | | - | |
77 | | - | |
78 | | - | |
79 | | - | |
80 | | - | |
81 | | - | |
82 | | - | |
83 | | - | |
84 | | - | |
85 | | - | |
86 | | - | |
87 | | - | |
88 | | - | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
89 | 85 | | |
90 | 86 | | |
91 | 87 | | |
| |||
103 | 99 | | |
104 | 100 | | |
105 | 101 | | |
106 | | - | |
107 | | - | |
108 | | - | |
109 | | - | |
110 | | - | |
111 | | - | |
| 102 | + | |
| 103 | + | |
112 | 104 | | |
113 | 105 | | |
114 | 106 | | |
| |||
Lines changed: 5 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
| 1 | + | |
| 2 | + | |
3 | 3 | | |
4 | | - | |
| 4 | + | |
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
| 9 | + | |
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
| 17 | + | |
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| |||
Lines changed: 112 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
Lines changed: 52 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
44 | | - | |
| 44 | + | |
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
| |||
0 commit comments