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
F2736652: D3826.diff
Tue, Sep 17, 4:38 PM
Unknown Object (File)
Tue, Sep 10, 2:20 PM
Unknown Object (File)
Sun, Sep 1, 8:39 AM
Unknown Object (File)
Sun, Sep 1, 12:19 AM
Unknown Object (File)
Wed, Aug 28, 3:16 AM
Unknown Object (File)
Sat, Aug 24, 3:03 AM
Unknown Object (File)
Sat, Aug 24, 3:03 AM
Unknown Object (File)
Sat, Aug 24, 3:03 AM

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
Lint
Lint Not Applicable
Unit
Tests Not Applicable

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.