Page MenuHomePhabricator

[web] Fix app switcher for thread creation
AbandonedPublic

Authored by jacek on Jul 7 2022, 5:34 AM.
Tags
None
Referenced Files
Unknown Object (File)
Apr 11 2024, 6:52 PM
Unknown Object (File)
Apr 9 2024, 5:29 AM
Unknown Object (File)
Apr 5 2024, 11:01 AM
Unknown Object (File)
Apr 2 2024, 7:05 AM
Unknown Object (File)
Mar 28 2024, 10:17 PM
Unknown Object (File)
Mar 28 2024, 10:17 PM
Unknown Object (File)
Mar 28 2024, 10:17 PM
Unknown Object (File)
Mar 28 2024, 10:09 PM

Details

Summary

Currently app switcher highlights current app (on the left side) using navTabSelecter. The change allows highlighting chat icon in both chat and chat-creation navigation state.

After (in chat creation state):

Screenshot_Google Chrome_2022-07-07_150114.png (200×249 px, 6 KB)

Test Plan

Enter chat creation mode. The chat icon on the left should remain highlighted.

Diff Detail

Repository
rCOMM Comm
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

abosh added inline comments.
web/selectors/nav-selectors.js
17 ↗(On Diff #14255)

Why was this change made? Flow/ESLint wasn't complaining and it doesn't match the syntax in the rest of the imports.

218 ↗(On Diff #14255)

This is a bit pedantic, but looks cleaner. Not necessary to implement, though.

This revision now requires changes to proceed.Jul 7 2022, 7:00 AM
web/selectors/nav-selectors.js
218–222 ↗(On Diff #14255)

Actually, in a follow up to my above comment, this can also be shortened with a ternary.

web/selectors/nav-selectors.js
17 ↗(On Diff #14255)

Interesting, I really don't know. Probably somehow by accident. I'll revert it.

218 ↗(On Diff #14255)

Not sure which is better,
It could be a bit dangerous, because if we introduce some new tab starting with chat in the future, this check would automatically cover it, what may not be the best solution.

abosh added inline comments.
web/selectors/nav-selectors.js
218 ↗(On Diff #14255)

That's a great point. In that case, I don't think it's necessary to incorporate this suggestion.

This revision is now accepted and ready to land.Jul 8 2022, 7:17 AM

accidentally hit accept, sorry. Will accept once this change is reverted.

This revision now requires changes to proceed.Jul 8 2022, 7:18 AM

revert accidental import change

Abandoning due to changes in previous diffs that eliminated the need for the change here.