Skip to content

Spike: V5 format proposal #124

@willmcvay

Description

@willmcvay

Background context or User story:

As discussed with Kurt and Karmen, proposing that we adjust the structure of how the project is presented in Storybook for v5. This ticket is a spike so we have something to discuss but if we like, can use as the model going forward

Specification or Acceptance Criteria:

Broadly, we identified 3 categories of story and the proposal is to group and structure by these flavours:

  • Basic Components (should agree a name, not sure if Atomic is right?) - Presentational wrapped Linaria tags that generate vanilla HTML and CSS, suitable for use as CSS classes in any app (inc non-React). Composable, more un-opinionated - allows maximum flexibility if required.
  • Complex Components (Molecules maybe?) - React first composed components - much more opinionated, typically prop driven with advanced functionality driven by React. Underlying markup is often the same, but provides a shorthand abstraction for the happy path in most React apps.
  • Patterns - Composed collections of components that validate the design system and provide developers with off the shelf solutions to common UI problems. No new functionality in this section, rather acting as a developer guide on how to use the components effectively.

Currently the Storybook is a jumble of all 3 - suggest we make these distinctions clearer and this spike as a proposal we can discuss, refine and potentially adopt

Metadata

Metadata

Assignees

No one assigned

    Labels

    featureThe issue relates to a new featurev5Issues for v5 release

    Type

    No type

    Projects

    Status

    Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions