Skip to content

UI/UX Templating #14

@zacharylove

Description

@zacharylove

Motivation

We need to define some frontend specifications and reusable components beyond what's offered in Chakra.
By coming up with some highly reusable and extendable frontend components, we can more easily enforce a consistent UI/UX design and have a toolbox for creating new components or views.

The lovely @Apexal added Storybook, which enables the parallel and isolated development of frontend components.

Example: A stat display component

For example, a simple component to display a string and a value could be reused to display information about the player's stats (in the character sheet), an enemy creature's stats, and much more:
Untitled-2022-05-22-1805

These components can be non-functional at first, then extended to query or interact with the backend as needed. They would also serve as excellent tasks for contributors learning React and/or Chakra.

Potential Components

  • Stat display: Shows an attribute and a value associated with it (e.g, Acrobatics level)
    • Optional: buttons to modify value (e.g, healing increases HP)
  • Dice roll: Allows the user to roll a die (D4 to D20) by clicking a button
    • Optional: functionality for saving throws or ability checks, comparing against calling user's character stats
    • Related issue
  • Modal: Window overlaid on top of current view
    • Would be good for actions such as rolling or perhaps selecting abilities/spells.

If you come up with any other components that would be useful, please make a comment in this thread.

Metadata

Metadata

Assignees

Labels

P3Moderate prioritydocumentationImprovements or additions to documentationgood first issueGood for newcomersui/uxRelated to design and interfaceweb appRelated to React web app

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions