CuriousCorrelation
9782f6ea21
Rename Data suffix to Options for readability
2022-07-13 15:52:19 +05:30
CuriousCorrelation
2ad2dbc69e
Move mount useEffect to top, convention
2022-07-13 15:51:31 +05:30
CuriousCorrelation
64992aab51
Merge branch 'main' into feat/dropdown-pagination
2022-07-13 14:54:57 +05:30
Tom Moor
973cfc3fa3
Do not show suspended users to non admins ( #3776 )
2022-07-13 00:59:06 -07:00
CuriousCorrelation
2cbe07fc6a
fix: Search box not filling all space horizontally
2022-07-12 23:40:59 +05:30
CuriousCorrelation
ec51e495a1
Update UserFilter paginateFetch def
2022-07-12 17:35:25 +05:30
CuriousCorrelation
6a0d1de57a
Remove generic qualifiers (used for testing)
2022-07-12 17:34:45 +05:30
CuriousCorrelation
4efa4103c3
Move filteredData to top level for readability
2022-07-11 23:34:25 +05:30
CuriousCorrelation
87ac604344
Change options to be generic
...
Now function expects `options` to impl `PaginatedList`
2022-07-11 23:12:54 +05:30
CuriousCorrelation
25acbe04f5
Change paginateFetch type
...
`paginateFetch` now has concrete types
2022-07-11 23:11:19 +05:30
CuriousCorrelation
1d39359e36
Fix handleFilter dependency
2022-07-11 22:26:47 +05:30
CuriousCorrelation
bbfcc7f96c
Change searchable to be optional
2022-07-11 19:30:27 +05:30
CuriousCorrelation
0fe220164e
Add filter clear action on blank search
...
This fixes stale search persisting when
clearing search characters.
2022-07-11 19:20:06 +05:30
CuriousCorrelation
933fb815e7
Update FilterOptions component with new API
2022-07-11 18:16:42 +05:30
CuriousCorrelation
9ecd40ce76
Impl PaginatedItem interface for options
2022-07-11 18:16:17 +05:30
CuriousCorrelation
e41aaac07b
Reduce initial number of user to load
2022-07-11 18:15:41 +05:30
CuriousCorrelation
e51468f50b
Add ability to populate filteredData on mount
2022-07-11 18:14:55 +05:30
CuriousCorrelation
11018578b7
Fix clicking on menu not clearing previous search
2022-07-11 18:14:39 +05:30
CuriousCorrelation
63622c2f66
Add searchable and paginateFetch var
2022-07-11 18:14:03 +05:30
CuriousCorrelation
2b790cdc2f
Implement options filter
2022-07-11 18:13:30 +05:30
CuriousCorrelation
06360fd7c2
Add PaginatedItem type req to TFilterOption
...
For use with `PaginatedList`
2022-07-11 18:11:30 +05:30
CuriousCorrelation
a72700b408
[WIP] Change map with MenuItem to PaginatedList
2022-07-11 18:10:21 +05:30
CuriousCorrelation
5972eb2232
Add InputSearch styling
2022-07-11 18:07:17 +05:30
CuriousCorrelation
1201bd85a9
Remove PaginatedDropdown in favor of merge with FilterOptions
2022-07-11 17:56:18 +05:30
CuriousCorrelation
10d5941e85
Revert UserFilter changes
2022-07-11 17:55:53 +05:30
CuriousCorrelation
66dbcde29b
feat: Redirect on unpublished share access ( #3760 )
...
* feat(WIP): Redirect on unpublished shares
* feat[WIP]: add redirect with test notice
* Revert to `Login` display, no redirects
2022-07-10 23:59:45 -07:00
CuriousCorrelation
734e752b76
Made default item component dependency
...
Now parent component can set a default value,
instead of it being hardcoded "Any authors".
2022-07-10 22:17:27 +05:30
CuriousCorrelation
3941474191
Fix dropdown button label not setting
2022-07-10 21:48:01 +05:30
CuriousCorrelation
3becb00102
Use user.id as PaginatedItem id
2022-07-10 21:01:47 +05:30
CuriousCorrelation
dac60cd4a0
Remove onFocus
...
Has no adverse effects so far, fingers crossed
2022-07-10 20:07:21 +05:30
CuriousCorrelation
966f449156
Impl Paginated list
...
Pagination seems to work fine.
`onFocus` isn't useful because
mount is handled already.
TODO: Try removing `onFocus`
2022-07-10 20:06:01 +05:30
CuriousCorrelation
5e0893ebc9
Add memoized options
...
TODO: Use `options` to create filtered data
2022-07-10 20:03:56 +05:30
CuriousCorrelation
3ad1187977
Add users param to PaginatedDropdown
...
Not sure what `users` type should be.
TODO: Use `users` to calculate `options`
2022-07-10 20:01:45 +05:30
CuriousCorrelation
57b03936eb
Change PaginatedDropdown to consume user store
...
`PaginatedDropdown` should consume user store directly,
so the pagination and refresh can be encapsulated
into one single component.
TODO: Impl memoized options calculation for
`PaginatedDropdown`
2022-07-10 19:59:09 +05:30
CuriousCorrelation
324f4b133d
Impl author filter and mount set
...
TODO: Limit user display using pagination.
- Limit user display
- Scroll limited users
- Query for more
Because data would be provided by parent component,
`PaginatedDropdown` might need to use a callback
to fetch additional data.
2022-07-10 18:49:54 +05:30
CuriousCorrelation
b0ca6b5567
Add static positioning for search box
...
Now search box doesn't scroll away with the content
TODO: Impl `handleOnChange`
2022-07-10 17:53:11 +05:30
CuriousCorrelation
28178846fa
Replace FilterOptions with PaginatedDropdown
...
TODO: Make search bar sticky
2022-07-10 16:56:43 +05:30
CuriousCorrelation
c80a490340
Add PaginatedDropdown component
...
Based on `FilterOptions.tsx`
TODO: Replace `FilterOptions` with `PaginatedDropdown`
in `UserFilter.tsx`
2022-07-10 16:55:07 +05:30
CuriousCorrelation
c39c907d72
Merge remote-tracking branch 'origin/tom/chore-developer-test-users' into feat/dropdown-pagination
2022-07-10 16:04:30 +05:30
Tom Moor
465a8bd505
fix: Version tag should open new tab, related type improvements
...
closes #3737
2022-07-10 11:22:45 +02:00
Tom Moor
aef62d1356
fix: Publish click from editing heading, closes #3759
2022-07-10 10:23:00 +02:00
Tom Moor
eeff46b6c9
Add ability to quickly create test users in development
2022-07-10 09:13:24 +02:00
Tom Moor
da4a10e877
chore: Remove shares.info apiVersion 1 ( #3758 )
...
* chore: Remove shares.info apiVersion 1
* fix: Sporadic test failure
2022-07-09 04:28:56 -07:00
Tom Moor
caaf6dd76b
fix: Enter at beginning of collapsed heading should create a new heading above ( #3754 )
2022-07-09 02:23:12 -07:00
Tom Moor
32b7a7df00
fix: Handle sanitizeUrl can receive non-string value
...
closes #3746
2022-07-08 21:15:07 +02:00
Tom Moor
4a46d19846
fix: Improved model validation for Collection ( #3749 )
...
* fix: Added improved model validation for Collection attributes
* sp
* fix: Enforce title length in UI
2022-07-08 11:10:22 -07:00
Tom Moor
831df67358
feat: Adds route-level role filtering. ( #3734 )
...
* feat: Adds route-level role filtering. Another layer in the onion of security and performance
* fix: Regression in authentication middleware
2022-07-05 12:26:49 -07:00
Tom Moor
c6fdffba77
chore: Internal request filtering
2022-07-05 11:06:47 +02:00
Tom Moor
4e189b8970
Improved sanitization of href's in editor
2022-07-05 10:14:16 +02:00
Tom Moor
2f3dcb2520
fix: Do not show 'Full width' toggle to viewers
...
closes #3728
2022-07-04 15:20:01 +02:00