Commit Graph
4226 Commits
Author SHA1 Message Date
CuriousCorrelation 6fbbbcbf87 Revert TFilterOption interface changes 2022-07-17 12:22:25 +01:00
CuriousCorrelation dad3ea104b Add docs for else branch 2022-07-17 12:22:25 +01:00
CuriousCorrelation e1f6fbab7f Remove test intermediate paginateFetch proxy fn 2022-07-17 12:22:25 +01:00
CuriousCorrelation efc891d22a Rename Data suffix to Options for readability 2022-07-17 12:22:25 +01:00
CuriousCorrelation 22ca319d25 Move mount useEffect to top, convention 2022-07-17 12:22:25 +01:00
CuriousCorrelation e7d96f9257 fix: Search box not filling all space horizontally 2022-07-17 12:22:25 +01:00
CuriousCorrelation 507e6ea926 Update UserFilter paginateFetch def 2022-07-17 12:22:25 +01:00
CuriousCorrelation 5544521524 Remove generic qualifiers (used for testing) 2022-07-17 12:22:25 +01:00
CuriousCorrelation 7a57d8fbf9 Move filteredData to top level for readability 2022-07-17 12:22:25 +01:00
CuriousCorrelation d119bc65e0 Change options to be generic
Now function expects `options` to impl `PaginatedList`
2022-07-17 12:22:25 +01:00
CuriousCorrelation 175e9ca597 Change paginateFetch type
`paginateFetch` now has concrete types
2022-07-17 12:22:25 +01:00
CuriousCorrelation a7fc3494c8 Fix handleFilter dependency 2022-07-17 12:22:25 +01:00
CuriousCorrelation 384259f662 Change searchable to be optional 2022-07-17 12:22:25 +01:00
CuriousCorrelation b6e5e7ed80 Add filter clear action on blank search
This fixes stale search persisting when
clearing search characters.
2022-07-17 12:22:25 +01:00
CuriousCorrelation a7d5b70440 Update FilterOptions component with new API 2022-07-17 12:22:25 +01:00
CuriousCorrelation fec7695711 Impl PaginatedItem interface for options 2022-07-17 12:22:25 +01:00
CuriousCorrelation da1a8287f0 Reduce initial number of user to load 2022-07-17 12:22:25 +01:00
CuriousCorrelation d3934606e6 Add ability to populate filteredData on mount 2022-07-17 12:22:25 +01:00
CuriousCorrelation 6e9363b551 Fix clicking on menu not clearing previous search 2022-07-17 12:22:25 +01:00
CuriousCorrelation 0926b32957 Add searchable and paginateFetch var 2022-07-17 12:22:25 +01:00
CuriousCorrelation 1b2a5a7ee6 Implement options filter 2022-07-17 12:22:25 +01:00
CuriousCorrelation 6319e54fc0 Add PaginatedItem type req to TFilterOption
For use with `PaginatedList`
2022-07-17 12:22:25 +01:00
CuriousCorrelation b6813272c1 [WIP] Change map with MenuItem to PaginatedList 2022-07-17 12:22:25 +01:00
CuriousCorrelation 0a0946cf12 Add InputSearch styling 2022-07-17 12:22:25 +01:00
CuriousCorrelation f7d7159805 Remove PaginatedDropdown in favor of merge with FilterOptions 2022-07-17 12:22:24 +01:00
CuriousCorrelation 2fca88f621 Revert UserFilter changes 2022-07-17 12:22:24 +01:00
CuriousCorrelation 2b97a5d593 Made default item component dependency
Now parent component can set a default value,
instead of it being hardcoded "Any authors".
2022-07-17 12:22:24 +01:00
CuriousCorrelation b9e013185d Fix dropdown button label not setting 2022-07-17 12:22:24 +01:00
CuriousCorrelation a55b0b3872 Use user.id as PaginatedItem id 2022-07-17 12:22:24 +01:00
CuriousCorrelation 1cf83da73f Remove onFocus
Has no adverse effects so far, fingers crossed
2022-07-17 12:22:24 +01:00
CuriousCorrelation 61d4158d8c Impl Paginated list
Pagination seems to work fine.
`onFocus` isn't useful because
mount is handled already.

TODO: Try removing `onFocus`
2022-07-17 12:22:24 +01:00
CuriousCorrelation 8b70a52114 Add memoized options
TODO: Use `options` to create filtered data
2022-07-17 12:22:24 +01:00
CuriousCorrelation 2f7789088a Add users param to PaginatedDropdown
Not sure what `users` type should be.

TODO: Use `users` to calculate `options`
2022-07-17 12:22:24 +01:00
CuriousCorrelation 7c43d937c4 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-17 12:22:24 +01:00
CuriousCorrelation 10daeb41e6 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-17 12:22:24 +01:00
CuriousCorrelation d20c6c456e Add static positioning for search box
Now search box doesn't scroll away with the content

TODO: Impl `handleOnChange`
2022-07-17 12:22:24 +01:00
CuriousCorrelation 180a41bd59 Replace FilterOptions with PaginatedDropdown
TODO: Make search bar sticky
2022-07-17 12:22:24 +01:00
CuriousCorrelation fada7032be Add PaginatedDropdown component
Based on `FilterOptions.tsx`

TODO: Replace `FilterOptions` with `PaginatedDropdown`
in `UserFilter.tsx`
2022-07-17 12:22:24 +01:00
Tom Moor 4af69b2758 fix: Moving an image to empty space results in endless upload (#3799)
* fix: Error dragging images below doc, types

* fix: Handle html/text content dropped into padding

* refactor, docs
2022-07-17 03:31:55 -07:00
Tom Moor dee87f15af fix: Members table does not correctly reset from filters 2022-07-16 18:47:36 +01:00
dependabot[bot] 67885e7339 chore(deps): bump react-dnd-html5-backend from 14.0.0 to 16.0.1 (#3769)
Bumps [react-dnd-html5-backend](https://github.com/react-dnd/react-dnd) from 14.0.0 to 16.0.1.
- [Release notes](https://github.com/react-dnd/react-dnd/releases)
- [Changelog](https://github.com/react-dnd/react-dnd/blob/main/CHANGELOG.md)
- [Commits](https://github.com/react-dnd/react-dnd/commits)

---
updated-dependencies:
- dependency-name: react-dnd-html5-backend
  dependency-type: direct:production
  update-type: version-update:semver-major
...

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

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2022-07-16 10:15:11 -07:00
Tom Moor 0b0a1b0169 fix: Heading action depth conflict, closes #3558 2022-07-16 17:58:02 +01:00
Tom Moor de18196fd8 chore: Upgrade socket.io (#3697)
* Upgrade wip

* tsc

* tsc

* fix: Missing authenticated message
2022-07-16 06:02:03 -07:00
dependabot[bot] 96d1c4997b chore(deps): bump yjs from 13.5.34 to 13.5.39 (#3770)
Bumps [yjs](https://github.com/yjs/yjs) from 13.5.34 to 13.5.39.
- [Release notes](https://github.com/yjs/yjs/releases)
- [Commits](https://github.com/yjs/yjs/compare/v13.5.34...v13.5.39)

---
updated-dependencies:
- dependency-name: yjs
  dependency-type: direct:production
  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-16 02:40:34 -07:00
Tom Moor 95f4fb2424 chore: Remove deprecated socket.io-auth (#3780) 2022-07-16 02:27:09 -07:00
Tom Moor 1247bb411e Merge branch 'paullessing-issue-3655-allowed-domains-save-no-change' 2022-07-16 00:38:28 +01:00
Tom Moor 7ffb182034 Merge branch 'issue-3655-allowed-domains-save-no-change' of github.com:paullessing/outline into paullessing-issue-3655-allowed-domains-save-no-change 2022-07-16 00:37:49 +01:00
Translate-O-Tron fc414e2dd4 New Crowdin updates (#3723) 2022-07-15 16:19:13 -07:00
Nan YuandTom Moor c3ec7b0877 Feat: clarify security language and hide default settings when invites are required (#3751)
* clarify default role and allowed domains

* language tweaks

* Update app/scenes/Settings/Security.tsx

Co-authored-by: Tom Moor <tom.moor@gmail.com>

Co-authored-by: Tom Moor <tom.moor@gmail.com>
2022-07-15 16:13:41 -07:00
Tom Moor e509719c77 Add ability to quickly create test users in development (#3764) 2022-07-15 16:11:30 -07:00