Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

[Enhancement] - Create a Card Component #626

Open
joshua-cornett opened this issue May 1, 2024 · 1 comment
Open

[Enhancement] - Create a Card Component #626

joshua-cornett opened this issue May 1, 2024 · 1 comment
Assignees
Labels
enhancement Enhancement of existing features

Comments

@joshua-cornett
Copy link
Contributor

joshua-cornett commented May 1, 2024

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

@andycwilliams
Copy link
Member

And just to clarify, these are for mobile views. For larger viewpoints, will be keeping the tables as they are.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
enhancement Enhancement of existing features
Projects
None yet
Development

No branches or pull requests

2 participants