1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-30 18:52:42 +01:00
phorge-phorge/src/applications/files/document
epriestley afc3099ee7 Add a view option to disable blame in Diffusion and fix some view transition bugs
Summary:
See PHI604. Ref T13130. Ref T13105. There's currently no way to turn blame off in Diffusion. Add a "Hide Blame" option to the "View Options" dropdown so it can be toggled off.

Also fix a couple of bugs around this: for example, if you loaded a Jupyter notebook and then switched to "Source" view, blame would incorrectly fail to activate because the original rendering of the "stage" used an asynchronous engine so `willRenderRef()` wasn't called to populate blame.

Test Plan:
  - Viewed a source file, toggled blame off/on, reloaded page to see state stick in URL.
  - Viewed a Jupyter notebook, toggled to "Source" view, saw blame.
  - Viewed stuff in Files (no blame UI options).
  - Tried to do some invalid stuff like toggle blame on a non-blame engine (options disable properly).

Reviewers: amckinley

Reviewed By: amckinley

Maniphest Tasks: T13130, T13105

Differential Revision: https://secure.phabricator.com/D19414
2018-04-30 15:32:23 -07:00
..
render Add a view option to disable blame in Diffusion and fix some view transition bugs 2018-04-30 15:32:23 -07:00
PhabricatorAudioDocumentEngine.php Add filesize limits for document rendering engines and support partial/complete rendering 2018-03-19 15:18:34 -07:00
PhabricatorDocumentEngine.php Add a view option to disable blame in Diffusion and fix some view transition bugs 2018-04-30 15:32:23 -07:00
PhabricatorDocumentRef.php Restore coverage reporting to Diffusion browse UI 2018-04-17 14:51:47 -07:00
PhabricatorHexdumpDocumentEngine.php Add filesize limits for document rendering engines and support partial/complete rendering 2018-03-19 15:18:34 -07:00
PhabricatorImageDocumentEngine.php Add filesize limits for document rendering engines and support partial/complete rendering 2018-03-19 15:18:34 -07:00
PhabricatorJSONDocumentEngine.php Make repository symbol references work with DocumentEngine 2018-04-09 04:47:28 -07:00
PhabricatorJupyterDocumentEngine.php Make Jupyter notebooks use the fast builtin Python highlighter 2018-03-30 11:26:48 -07:00
PhabricatorPDFDocumentEngine.php Add a PDF document "rendering" engine 2018-03-23 07:14:17 -07:00
PhabricatorRemarkupDocumentEngine.php Add a basic Remarkup document rendering engine 2018-03-23 07:07:50 -07:00
PhabricatorSourceDocumentEngine.php Add a view option to disable blame in Diffusion and fix some view transition bugs 2018-04-30 15:32:23 -07:00
PhabricatorTextDocumentEngine.php Restore coverage reporting to Diffusion browse UI 2018-04-17 14:51:47 -07:00
PhabricatorVideoDocumentEngine.php Add filesize limits for document rendering engines and support partial/complete rendering 2018-03-19 15:18:34 -07:00
PhabricatorVoidDocumentEngine.php Add filesize limits for document rendering engines and support partial/complete rendering 2018-03-19 15:18:34 -07:00