Skip to content

Add storybook stories for the Content Editor

Enrique Alcántara requested to merge add-content-editor-storybook-stories into master

What does this MR do?

This MR add a Storybook stories file for the Content Editor. The stories file contains a single (default) story. The storybook instance in this repository required some extra setup to display the Content Editor:

  • Include GitLab UI utility classes
  • Set up the translate mixin globally.
  • Initialize a default gon object.

What this MR doesn’t do

  • It doesn’t set up Storybook to allow simulating image uploading via the Content Editor.

Screenshots or Screencasts (strongly suggested)

storybook-content-editor

How to setup and validate locally (strongly suggested)

  • Run yarn storybook:install && yarn storybook:start in your local environment.
  • Open the URL http://localhost:9002/?path=/story/components-content-editor--default

Does this MR meet the acceptance criteria?

Conformity

Availability and Testing

Security

Does this MR contain changes to processing or storing of credentials or tokens, authorization and authentication methods or other items described in the security review guidelines? If not, then delete this Security section.

  • Label as security and @ mention @gitlab-com/gl-security/appsec
  • The MR includes necessary changes to maintain consistency between UI, API, email, or other methods
  • Security reports checked/validated by a reviewer from the AppSec team
Edited by Enrique Alcántara

Merge request reports

Loading