Page MenuHomePhabricator

[native] add threadID to thread settings loading status selector custom keys
ClosedPublic

Authored by ginsu on Apr 24 2023, 12:50 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Jun 29, 3:13 PM
Unknown Object (File)
Fri, Jun 28, 9:10 PM
Unknown Object (File)
Wed, Jun 19, 5:14 PM
Unknown Object (File)
Sat, Jun 15, 9:17 AM
Unknown Object (File)
Thu, Jun 13, 10:39 AM
Unknown Object (File)
Thu, Jun 13, 2:27 AM
Unknown Object (File)
Wed, Jun 12, 11:45 PM
Unknown Object (File)
May 28 2024, 9:56 PM
Subscribers

Details

Summary

add threadID to the thread settings loading status selector custom keys. This will prevent the loading state of the various thread setting from being shared across different threads. Here is an example with the edit thread color setting

Test Plan

Tested all four loaders that suffered from the shared loaders and after making these changes the loading state is no longer shared across different states

Name:

Description:

Color:

Leave Thread:

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

ginsu requested review of this revision.Apr 24 2023, 1:09 PM
ashoat requested changes to this revision.Apr 24 2023, 1:15 PM

Not clear why this is being prioritized right now when avatars work is so very deeply behind.

Can you please clarify how much more non-avatars work you are planning to sequence before finishing the avatars work?

native/chat/settings/color-selector-modal.react.js
98 ↗(On Diff #25621)

Please keep all lines to 80 chars

native/chat/settings/thread-settings-description.react.js
214 ↗(On Diff #25621)

Please keep all lines to 80 chars

296–301 ↗(On Diff #25621)
  1. Please keep all lines to 80 chars
  2. Can this be simplified?
native/chat/settings/thread-settings.react.js
1187–1220 ↗(On Diff #25621)

This can all be inside a single useSelector invocation

Try rewriting all of this as const somethingIsSaving = useSelector(...);

This revision now requires changes to proceed.Apr 24 2023, 1:15 PM

Not clear why this is being prioritized right now when avatars work is so very deeply behind.

I was under the impression that we should fix this foundational piece first so that the loading state when saving a thread avatar would not be shared across different threads. If we should completely deprioritize this right now lmk

Can you please clarify how much more non-avatars work you are planning to sequence before finishing the avatars work?

This is the last diff that is considered "non avatars work"

ginsu edited the test plan for this revision. (Show Details)

address comments

This revision is now accepted and ready to land.Apr 25 2023, 1:01 PM