You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Show a warning bar over the top of the editor that says something like. "This file is generated and should not be edited by hand.", with an action button on the right that says "Edit Anyway"
Clicking Edit Anyway removes the warning bar and enables the editor
That way you have to acknowledge the warning before editing, so it's very hard to change anything accidentally, but you still have an escape hatch if you really need to make a change.
Activity
kevinushey commentedon Jan 29, 2018
What if the user really, truly does want to edit one of these files?
Are you imagining an extra UI affordance (e.g. a warning bar), or something more drastic like making the editor read-only when opening these files?
jjallaire commentedon Jan 29, 2018
We could just use our standard warning band treatment here (and not actually make it impossible to edit the file)
jmcphers commentedon Jan 29, 2018
Ideally I think we'd do the following:
Make the editor read-only
Show a warning bar over the top of the editor that says something like. "This file is generated and should not be edited by hand.", with an action button on the right that says "Edit Anyway"
Clicking Edit Anyway removes the warning bar and enables the editor
That way you have to acknowledge the warning before editing, so it's very hard to change anything accidentally, but you still have an escape hatch if you really need to make a change.
hadley commentedon Jan 29, 2018
I was thinking mostly of a warning bar, but @jmcphers' suggestion sounds perfect.
jmcphers commentedon Feb 3, 2018
@kevinushey added a warning bar in #2085.
ronblum commentedon Feb 16, 2018
Verified in 1.2.349.