-
Notifications
You must be signed in to change notification settings - Fork 47
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Miscellaneous tweaks related to metadata storage and processing
- Item type options are now stored, mapped, and sorted. Previously, this process was repeated in multiple components, wasting processing power and resulting in different orderings for entries in the "New Item" dropdown and the item type selector. - Creator type options are also stored mapped to avoid repeated processing. - Optimised the Creators component to avoid using `deepEqual`. - Added tests to ensure the correct order of item type options. - Fixed a missing a11y label for the New Item Type Picker dropdown.
- Loading branch information
Showing
27 changed files
with
175 additions
and
127 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
'use strict'; | ||
|
||
// when creating a new item, types not on this list are hidden under "More" | ||
const primaryItemTypes = [ | ||
'book', | ||
'bookSection', | ||
'case', | ||
'hearing', | ||
'journalArticle', | ||
]; | ||
|
||
// item types that cannot be created manually or changed to from another type | ||
const ignoredItemTypes = ['note', 'attachment', 'annotation']; | ||
|
||
export { primaryItemTypes, ignoredItemTypes }; |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.