Skip to content

[Enhancement] - Create a Card Component #626

Open
@joshua-cornett

Description

@joshua-cornett

Describe the Current Behavior/Feature:

Cards are increasingly common in the application. Messages already incorporate them, and Documents will too (see issue #606 ). We should implement a reusable Card component.

Rationale:

Simplifies the use of cards throughout the application by providing reusable code.

Proposed Changes:

image

  • Create an expandable/collapsible card component
  • Props should tentatively include a header, type, and data to display
  • Parse over data, and populate the card (default and expanded)
  • Replace cards in application with new component

Possible Drawbacks:

  • Card types may differ enough to warrant separate components

Alternatives Considered:

N/A

Additional Context:

This is part of an ongoing greater refactoring

Metadata

Metadata

Labels

enhancementEnhancement of existing features

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions