-
Notifications
You must be signed in to change notification settings - Fork 42
feat(preferences): Add “Collection Preferences” page with role-gated access #7464
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
Gitesh307
wants to merge
87
commits into
issue-7445
Choose a base branch
from
issue-7440
base: issue-7445
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
87 commits
Select commit
Hold shift + click to select a range
32d2a4f
Fix:Expose general collection prefs for picklist scoping and attachme…
Gitesh307 008fe07
implement Collection Preferences UI with dedicated definitions
Gitesh307 a9fd48e
adding missing files for the Collection preferences
Gitesh307 45b4734
resolve typecheck errors in Collection Preferences definitions
Gitesh307 9411b4a
add Collection Preferences UI and editor with doc links
Gitesh307 d185810
implify CollectionPreferences page by removing internal save
Gitesh307 3f19937
Corrected specifyNetwork keys to publishingOrg and datasetKey
Gitesh307 ce2b1c6
fix TypeScript errors in collection preference definitions
Gitesh307 45cbc31
align CollectionDefinitions with UserDefinitions typing
Gitesh307 d70cdd5
Fix localization scanner issues in preferences
Gitesh307 eb00132
adding path for role gated access
Gitesh307 fb3d616
Lint code with ESLint and Prettier
Gitesh307 b59b33e
Refactor collection preferences renderer and documentation link layout
Gitesh307 b75ae77
Lint code with ESLint and Prettier
Gitesh307 2beb319
Localization cleanup for collection preferences
Gitesh307 7e905d0
Lint code with ESLint and Prettier
Gitesh307 c37ae85
removed collection pref refrence from User Tools
Gitesh307 d84ba94
remove extra language lines and keep only 'en-us'
Gitesh307 70780ae
extract shared logic into createPreferencesEditor and wire User/Colle…
Gitesh307 ccd5d0c
implemented IR<T> for preferences typing
Gitesh307 80a9467
Lint code with ESLint and Prettier
Gitesh307 d1bdada
resolve BasePreferences context type incompatibility in index.tsx
Gitesh307 f534d6c
simplify resolveCollectionDocumentHref logic using unified NAME_DOCS_MAP
Gitesh307 baaebac
Lint code with ESLint and Prettier
Gitesh307 5369e91
unify visibilityContext to remove duplication
Gitesh307 53490e7
Lint code with ESLint and Prettier
Gitesh307 7bb534f
optimize preferences wrappers by introducing FetchGate component.
Gitesh307 b7fb880
simplify className logic for documentation paragraph
Gitesh307 f61be53
Localization cleanup for collection preferences
Gitesh307 0cd11cb
removed `as unknown` casts
Gitesh307 665e6c7
consolidate doc links and merge catalog-number card
Gitesh307 a315d41
removed unused imports
Gitesh307 85413e4
function call
Gitesh307 81e4daa
render editor inline for User tools menu
Gitesh307 88a6280
Lint code with ESLint and Prettier
Gitesh307 5bec699
Lint code with ESLint and Prettier
Gitesh307 18ae49a
Modularize preferences localization into smaller files
Gitesh307 0baff4d
createDictionary export for modularize prefrences
Gitesh307 c7fc0db
Refactor preference localization dictionaries to expose raw maps
Gitesh307 694864a
Modularize preferences localization dictionary
Gitesh307 a22c3cd
fix: links to docs
grantfitzsimmons 67c9b78
Lint code with ESLint and Prettier
Gitesh307 3c7088b
refactor(preferences): improve tree management
grantfitzsimmons 43a5c90
fix: improve public attachment description
grantfitzsimmons 527c1cb
Update attachments.ts
grantfitzsimmons b9b57a6
feat: add descriptions for specify network fields
grantfitzsimmons 322e760
feat: improve descriptions for stats fields
grantfitzsimmons 02e7a26
feat: improve title for synonym behavior section
grantfitzsimmons 6a2306c
feat: improve cat number inheritance
grantfitzsimmons ade9f24
feat: improve descriptions for catalog number inheritance
grantfitzsimmons 88b775b
feat: add better icon, distinguish preferences
grantfitzsimmons 8fcfeea
fix: reorder trees in order of relevance
grantfitzsimmons 9f315e4
feat(collection preferences): add sidebar
grantfitzsimmons 1eec258
feat(preferences): match user preferences visual
grantfitzsimmons 0d16c07
Sync localization strings with Weblate
maksim2005UKR 51bd2bd
Sync localization strings with Weblate
9f180ac
fix: failing test
grantfitzsimmons ec5c1f7
fix: remove unused localization strings
grantfitzsimmons 8545502
refactor: simplify code
grantfitzsimmons 536711f
Lint code with ESLint and Prettier
grantfitzsimmons 151e642
fix(prefs): use collection pref for tree settings
grantfitzsimmons 7583ea6
fix: collection pref
grantfitzsimmons 799707d
Lint code with ESLint and Prettier
grantfitzsimmons d5e96b9
removed obsolete logic for statsThreshold
Gitesh307 6cec0e1
stats threshold preference definitions
Gitesh307 0a586ae
Use collection-scoped remote prefs for synonym and attachment defaults
Gitesh307 ef5a8f7
Use collection-scoped remote prefs for synonym and attachment defaults
Gitesh307 cd711e3
Use collection-scoped remote prefs for synonym and attachment defaults
Gitesh307 6e0ba1e
Refine collection-pref lookup for synonym and attachment defaults
Gitesh307 27160c8
remove always-false condition in
Gitesh307 bba8088
removed unused imports
Gitesh307 e9b8f26
Update remotePrefs snapshot for collection pref keys
Gitesh307 58bb93b
Lint code with ESLint and Prettier
Gitesh307 f1dc60e
Allow collections to enable synonym actions via preference.
Gitesh307 8457181
Fix picklist scoping to respect “Scope Entire Table” preference
Gitesh307 51e1d5c
Fix Entire Table picklist scoping toggle to respect collection prefs
Gitesh307 d99d8c2
Fix Entire Table picklist scoping toggle to respect collection prefs
Gitesh307 a6a1065
Added ajax overrides for the unscoped requests
Gitesh307 9b814bb
fixed failing tests
Gitesh307 579a30b
Enable collection-level catalog-number inheritance toggles
Gitesh307 e8b6976
Lint code with ESLint and Prettier
Gitesh307 0964161
Collection Preferences menu visibility based on roles and App Resourc…
Gitesh307 da5271a
Lint code with ESLint and Prettier
Gitesh307 8b8f0c2
Fix catalog inheritance sidebar entry and show Component heading
Gitesh307 63b2cc7
Merge branch 'issue-7445' into issue-7440
Gitesh307 ec1864b
Merge remote-tracking branch 'origin/issue-7445' into issue-7440
Gitesh307 044b1df
changed default value to name for Ordering the trees
Gitesh307 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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 hidden or 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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why 2? See line 34
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Older deployments saved the Chronostrat synonym preference under two different keys, ChronosStrat (the legacy table/view name) and ChronoStrat (the shortened label used in global properties). If we drop one of them, any collection that previously saved the preference under that spelling would lose the ability to add children to synonymized Chronostrat nodes. Keeping both entries ensures _synonym_pref_keys continues to read whatever was persisted historically.