Page MenuHomePhabricator

[lib] Introduce `useOnScreenEntryEditableThreadInfos`
ClosedPublic

Authored by atul on May 7 2024, 10:22 AM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Nov 21, 2:21 AM
Unknown Object (File)
Thu, Nov 21, 2:21 AM
Unknown Object (File)
Sun, Nov 10, 11:41 AM
Unknown Object (File)
Fri, Nov 8, 7:16 PM
Unknown Object (File)
Tue, Nov 5, 8:31 AM
Unknown Object (File)
Oct 25 2024, 7:39 PM
Unknown Object (File)
Oct 24 2024, 6:31 PM
Unknown Object (File)
Oct 24 2024, 4:32 PM
Subscribers
None

Details

Summary

Replace onScreenEntryEditableThreadInfos with hook which consumes useThreadsWithPermission introduced in D11924.


Depends on D11924

Test Plan

flow + close reading for now

Checked ThreadPickerModal on web (skipped native, but assuming everything is the same since lib) and ensured that threads appeared as expected.

Diff Detail

Repository
rCOMM Comm
Branch
master
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

atul requested review of this revision.May 7 2024, 10:38 AM

As an aside, it might be nice to separate hooks from thread-utils and put them in eg thread-hooks file? Maybe even move permission-related utilities to something like thread-permission-utils?

thread-utils is getting a little unwieldy at least for me, and have noticed that IDE sometimes struggles with eg format on save due to the size.

On surface seems like 2 min task to separate hooks, but in practice it'd probably be a pain because of dependency cycles so prob not worth

Yeah thread-utils is def large and unwieldy. I wonder if there's a tool or IDE that can help with refactoring. You'd def be welcome to do any tidying up that you want

This revision is now accepted and ready to land.May 7 2024, 6:27 PM
This revision was landed with ongoing or failed builds.May 14 2024, 6:16 PM
This revision was automatically updated to reflect the committed changes.