Commit Graph
4206 Commits
Author SHA1 Message Date
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
dependabot[bot] 4c05fe422c chore(deps): bump http-errors from 1.4.0 to 2.0.0 (#3772)
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-07-13 00:59:56 -07:00
Tom Moor 47e73cee4e feat: Cleanup api keys and webhooks for suspended users (#3756) 2022-07-13 00:59:31 -07:00
CuriousCorrelation d1b01d28e6 fix: svg+xml image type ext not assigned properly (#3774) 2022-07-13 00:59:17 -07:00
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
dependabot[bot] dd6084d044 chore(deps-dev): bump @types/formidable from 2.0.0 to 2.0.5 (#3773)
Bumps [@types/formidable](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/formidable) from 2.0.0 to 2.0.5.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/formidable)

---
updated-dependencies:
- dependency-name: "@types/formidable"
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-07-12 11:07:17 -07:00
Tom Moor 206545f350 fix: Ensure signed attachment urls are always downloaded rather than loaded in browser 2022-07-12 17:14:22 +01:00
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
Tom Moor e92d68a0a3 Create dependabot.yml 2022-07-12 09:40:44 +02:00
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 35e82beaf7 chore: Upgrade koa- dependencies (#3761) 2022-07-09 10:23:42 -07:00
Tom Moor 8bb88b8550 chore: Audit of all model column validations (#3757)
* chore: Updating all model validations before the white-hatters get to it ;)

* test

* Remove isUrl validation, thinking about it need to account for minio and other weird urls here
2022-07-09 08:04:40 -07: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