Skip to content

Updated richViewer for blobs

Denys Mishunov requested to merge dmishunov-rich-viewers into master

What does this MR do?

The MR is dependent on the BE part in !25945 (merged).

The MR plugs the new rich viewer for blobs to the already-existing system of processing some special file types (notebook, openapi, pdf, etc.) on the frontend instead of backend.

Click-testing (if needed) requires the :snippets_vue feature flag to be enabled. In Rails console (rails c):

pry(main)> Feature.enable(:snippets_vue)

Screenshots

Example with a notebook snippet (.ipynb)

Before refactoring After refactoring, Before this MR After refactoring, With this MR
Screenshot_2020-03-02_at_11.17.33 Screenshot_2020-03-02_at_11.18.18 Screenshot_2020-03-02_at_11.18.40

Does this MR meet the acceptance criteria?

Conformity

Availability and Testing

Related to #196797 (closed)

Edited by 🤖 GitLab Bot 🤖

Merge request reports