-
Notifications
You must be signed in to change notification settings - Fork 195
Tbain/253 add tags count #2957
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
Merged
Merged
Tbain/253 add tags count #2957
Changes from all commits
Commits
Show all changes
135 commits
Select commit
Hold shift + click to select a range
70bece4
feat: add a new tag from frontend
jesperhodge e6d6cb7
feat: Add table control bar with expand button
jesperhodge e70becf
feat: create tags
jesperhodge 3d9188b
feat: use react-table and get full depth of tags
jesperhodge 39b8438
feat: support nested subrows in tag list table
jesperhodge ba08de0
feat: can create new tags with a subtag as parent
jesperhodge f11e813
feat: show add row conditionally on table depth
jesperhodge 54b1175
test: make existing tag list table tests work again
jesperhodge de4e8c5
test: create tags
jesperhodge 3ea6bed
test: generate tests from acceptance criteria
jesperhodge 0f4dfda
test: add tests for nested sub-tags and taxonomy editability
jesperhodge 15e9de1
feat: keep table working state with new row at top
jesperhodge ec926db
feat: add tag tree data structure
jesperhodge a617cb8
feat: create tag tree
jesperhodge f5f1ffc
fix: creating top tags
jesperhodge 6021b82
feat: add card style
jesperhodge 38df0b7
feat: add plus icon
jesperhodge 9688d35
feat: add button styling
jesperhodge 07c54d9
test: fix tests that are implemented
jesperhodge a459888
feat: add reducer for table modes
jesperhodge 8db41e1
feat: enable preview mode
jesperhodge 1081bfa
fix: mode transitions
jesperhodge cb2b3be
feat: add row options menu
jesperhodge 7913057
test: skip anything thats not implemented yet
jesperhodge 2f5202f
test: fix test
jesperhodge ee92b6c
refactor: change table mode name to preview
jesperhodge 875ce1e
refactor: extract subcomponents
jesperhodge 62a34d0
fix: tests
jesperhodge ddc5271
refactor: extract table display component
jesperhodge a522402
refactor: make table components reusable
jesperhodge f51f3ae
refactor: simplify and extract components
jesperhodge 2b9aad0
refactor: extract reusable tree table components
jesperhodge 3e7ac04
refactor: convert to typescript
jesperhodge e6caaa6
refactor: make tree table more readable
jesperhodge c2de45c
Merge remote-tracking branch 'upstream/master' into jhodge/create-tags
jesperhodge 15d3c78
fix: delete duplicate file
jesperhodge 1b630bb
feat: add expand icon
jesperhodge 7c9c69b
fix: show columns with correct width
jesperhodge 25c0397
fix: expand rows style
jesperhodge 8fc888e
feat: tag list table expand and row UI
jesperhodge 6bf6400
feat: add dropdown menu
jesperhodge 9e3114a
feat: attempt to make editable row
jesperhodge 784bf49
feat: move create top row buttons to right column
jesperhodge 86522b1
feat: save create rows
jesperhodge 1ca3c5a
feat: prettify expand all
jesperhodge cb093c5
fix: transitions and styles
jesperhodge 6e887d5
feat: UI alignments
jesperhodge b3c298e
fix: lint
jesperhodge 7cba21e
fix: lint
jesperhodge 20ee272
fix: lint and types
jesperhodge 3565051
fix: lint
jesperhodge 0c645c7
refactor: remove unused code
jesperhodge 694f5b9
Merge remote-tracking branch 'upstream/master' into jhodge/create-tags
jesperhodge 4e1191f
feat: add Enter/Exit and spacing
jesperhodge 27d47dc
fix: key press escape functionality
jesperhodge 6a9e1db
fix: expand link
jesperhodge 1dbf276
fix: style
jesperhodge bd6bbab
refactor: replace hardcoded pixel values with paragon/bootstrap sizes
jesperhodge 674af1a
feat: improve accessibility
jesperhodge 391ca25
fix: ui
jesperhodge 3022311
fix: test
jesperhodge 8b3d766
fix: tests
jesperhodge f7f2aaa
temp: disable pagination for tag list
jesperhodge d1ae67f
fix: tests
jesperhodge 98aab9d
fix: lint
jesperhodge 9da80a3
fix: pr review comments
jesperhodge afef299
fix: pr review comments
jesperhodge 711a9b9
fix: pr review comments
jesperhodge 4100fd6
fix: correct forbidden chars
jesperhodge e9c1c27
fix: lint
jesperhodge 01120b0
fix: visual indent
jesperhodge a86679f
refactor: tests
jesperhodge 9a9e3e2
refactor: tests
jesperhodge 25af304
fix: test warnings
jesperhodge 6e0366a
fix: disable behavior
jesperhodge a78e047
fix: test
jesperhodge e614c16
test: increase coverage
jesperhodge 1f1e366
fix: lint
jesperhodge 1ff082f
Merge remote-tracking branch 'upstream/master' into jhodge/create-tags
jesperhodge dc2db61
test: coverage
jesperhodge 1cd7a44
fix: tests
jesperhodge 85e6b7d
Merge remote-tracking branch 'upstream/master' into jhodge/tree-table…
jesperhodge 9bdd5a4
fix: show correct number of taxonomy levels
jesperhodge a3f8899
refactor: extract constants
jesperhodge 631d22d
fix: PR comments
jesperhodge 407835d
fix: tests
jesperhodge d81af1b
Merge branch 'jhodge/create-tags' into jhodge/tree-table-base
jesperhodge faea987
fix: url parameter breaking things
jesperhodge 4eb900b
Merge branch 'jhodge/create-tags' into jhodge/tree-table-base
jesperhodge b3d25bd
fix: PR comments and cleanup
jesperhodge 6f2f6b9
fix: typo
jesperhodge 3a96b58
fix: types
jesperhodge f193edb
fix: apply github code review suggestions
jesperhodge a8f8297
fix: PR comments
jesperhodge 0971da4
fix: PR comments
jesperhodge 825bab3
fix: tests
jesperhodge 443221c
fix: tests
jesperhodge 40f409e
fix: PR comment
jesperhodge 4a4deef
fix: PR comments
jesperhodge 38f87b8
fix: remove unused code
jesperhodge e8820a2
Merge remote-tracking branch 'upstream/master' into jhodge/create-tags
jesperhodge 93605cd
Merge branch 'jhodge/create-tags' into temp--tag-table-base
jesperhodge 726c5a7
feat: add button styling
jesperhodge 7e0c15e
test: fix tests that are implemented
jesperhodge bfa7f72
feat: add reducer for table modes
jesperhodge b210695
feat: enable preview mode
jesperhodge 14a036a
fix: mode transitions
jesperhodge ec0a690
feat: add row options menu
jesperhodge 815d3d9
refactor: change table mode name to preview
jesperhodge 3e8beba
refactor: extract subcomponents
jesperhodge c5b6916
refactor: extract table display component
jesperhodge f685672
refactor: make table components reusable
jesperhodge e54d369
refactor: simplify and extract components
jesperhodge 942d374
refactor: extract reusable tree table components
jesperhodge 6ffa46b
refactor: convert to typescript
jesperhodge be8dfd1
refactor: make tree table more readable
jesperhodge 25a6d2c
fix: delete duplicate file
jesperhodge 29b2af5
fix: expand rows style
jesperhodge 160c5fa
feat: attempt to make editable row
jesperhodge 3e3b3ce
feat: prettify expand all
jesperhodge 67671d9
fix: transitions and styles
jesperhodge bb801cf
feat: #253 Initial commit for usage count display in taxonomy tags
tbain 9cbc074
feat: #253 follow on commit to address GH Copilot suggestions
tbain 1b7eee0
feat: #253 Add FE Unit tests, add invalidation logic on page load to …
tbain 37eca33
refactor: extract constants
jesperhodge 9de8c51
feat: #253 Removing superfluous file, fixing paged query not using in…
tbain a8e4544
feat: #253 Fixing lint issues
tbain dbb02f3
feat: #253 Adding FE Unit tests, addition to add invalidation logic o…
tbain 0d25d49
feat: #253 Fixing lint issues
tbain aedde44
feat: #253 Refactoring refresh logic to fix erroneous refresh, issues…
tbain f0d4611
feat: #253 Updating branch with latest from upstream
tbain 96d6061
Merge branch 'master' of https://github.com/openedx/frontend-app-auth…
tbain 9dabba6
feat: #253 re-adding missing updates after merge from upstream
tbain e6ec144
Merge branch 'master' of https://github.com/openedx/frontend-app-auth…
tbain 50812e2
feat: #253 Removing unneccessary file
tbain 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
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
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
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.
What's the reason for adding
refetchType: 'none',here, andrefetchOnMount: 'always',above?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.
We had observed behavior where the taxonomy data wouldn't refresh when you navigated to the page, you'd have to do a manual browser refresh in order to get updated data. We had explored adding a small method to force it to refresh on mount, but
refetchOnMountperforms that same functionality without needing a somewhat hacky implementation. TherefetchType: 'none'on the invalidate queries will prevent it from trying to refresh immediately upon invalidation and allow it to be refreshed naturally with the mount action.Uh oh!
There was an error while loading. Please reload this page.
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.
Isn't that how all web pages normally work though? Or you mean somehow it was displaying stale data after previously displaying "new" data? If the latter, I think the "modes" code is affecting something.
Normally, we do want things to refresh immediately upon completion of some mutation, and that's how everything else in this MFE works. So this seems a bit unusual to me.