Page MenuHomePhabricator

[web] Remove duplicate `thread[Name/Description]Disabled` props in `ThreadSettingsGeneralTab` component
ClosedPublic

Authored by atul on Apr 24 2022, 1:05 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Nov 23, 10:20 AM
Unknown Object (File)
Sat, Nov 23, 9:54 AM
Unknown Object (File)
Sat, Nov 23, 9:53 AM
Unknown Object (File)
Sat, Nov 23, 9:43 AM
Unknown Object (File)
Sat, Nov 23, 9:40 AM
Unknown Object (File)
Wed, Nov 20, 11:58 PM
Unknown Object (File)
Tue, Nov 19, 2:49 PM
Unknown Object (File)
Tue, Nov 19, 12:00 PM

Details

Summary

These props both get inputDisabled passed in from the parent component, so they can be "flattened" into a single prop.


Depends on D3825

Test Plan
  1. Open ThreadSettingsModal
  2. Make sure that the "General" tab continues to look/work as expected

Diff Detail

Repository
rCOMM Comm
Branch
arcpatch-D3826
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

atul requested review of this revision.Apr 24 2022, 1:10 PM
tomek added a reviewer: ashoat.

Just wondering: are we planning to have threads with one input enabled and another disabled? It feels like changing a description is less destructive than changing a name and more users could be allowed to do that. On the other hand, reintroducing this option shouldn't be hard. Adding @ashoat to get his opinion.

In D3826#106968, @palys-swm wrote:

Just wondering: are we planning to have threads with one input enabled and another disabled? It feels like changing a description is less destructive than changing a name and more users could be allowed to do that. On the other hand, reintroducing this option shouldn't be hard. Adding @ashoat to get his opinion.

That's a good point, I could definitely see us having more fine-grained thread setting permissions in the future.

For now just maintaining the existing behavior, which I think should be fine for a refactoring stack of diffs.

We can refactor later if we need to

This revision is now accepted and ready to land.Apr 27 2022, 11:43 AM

rebase before landing, actually

This revision was landed with ongoing or failed builds.Apr 28 2022, 1:33 PM
This revision was automatically updated to reflect the committed changes.