1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-21 04:50:55 +01:00
phorge-phorge/webroot/rsrc/css/application
epriestley 94d0adb140 Add "Undo" for editing Differential inline comments
Summary:
When a user hits 'cancel' on a 'new', 'edit', or 'reply' operation, add a little
"Changes discarded. __Undo__" insert so they can get their change back. No undo
for delete since there's an explicit prompt. Once this lands we can make
'escape' work again to close dialogs.

This change started feeling really good when I was merging all the duplicate
code and making things more consistent, but by the time I started writing client
rendering it felt gross. I'm not really thrilled with it but I guess it's a step
forward? The feature seems pretty OK in practice. Let me know how much barfing
this causes and I can try to remedy the most acute concerns.

This also fixes a bug where replies always (?) appear on the 'new' side of the
diff (I think?).

Test Plan:
Applied 'new', 'edit', 'delete' and 'reply' operations, pressed 'cancel' and
'okay' in each case, with and without changing text where relevant. All
behaviors seem to conform with expectations, except that canceling out of 'edit'
without changing the text gives you an option to undo when it shouldn't really.
There's no super easy way to get at the original text right now.

Reviewed By: aran
Reviewers: aran, jungejason, tuomaspelkonen
CC: simpkins, aran, epriestley
Differential Revision: 406
2011-06-08 10:44:01 -07:00
..
base Provide basic structure for keyboard shortcuts 2011-06-07 11:23:19 -07:00
differential Add "Undo" for editing Differential inline comments 2011-06-08 10:44:01 -07:00
diffusion Fixed resource map. 2011-05-23 19:52:13 -07:00
directory Distribute Celerity includes. 2011-01-25 11:32:46 -08:00
herald Herald CSS, plus edit/save/delete. 2011-03-24 11:07:36 -07:00
maniphest Add comment linking to Maniphest and Differential 2011-05-31 11:11:19 -07:00
objectselector Move object-selector closable to being usable. 2011-02-18 15:12:15 -08:00
owners Some owners read workflows. 2011-04-03 19:20:47 -07:00
people Very very rough cut of profiles. 2011-02-19 17:33:53 -08:00
uiexample AphrontPagerView and UIExamples. 2011-03-31 17:06:33 -07:00