codeforpdx / codeforpdx/PASS

[Enhancement] - Create a Card Component

Open
#626 1 comment 0 reactions 1 assignee View on GitHub

@joshua-cornett is already working on this.

Since May 1, 2024.

enhancement
Dominant language
JavaScript
Stars
38
Forks
23
Avg merge
11m
Merged PRs (30d)
4

Description

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

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.