-
Notifications
You must be signed in to change notification settings - Fork 25
feat: Oc card component #1172
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: Oc card component #1172
Conversation
JammingBen
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Besides the tiles view, the cards look good to me 👍
18010df to
1545da8
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR introduces a new OcCard component and replaces all hand-crafted usages of oc-card classes throughout the codebase to standardize card styling and improve maintainability.
Key changes include:
- New
OcCardcomponent with props for title, logo, body/header/footer classes - Updated pages to use the component instead of manual card classes
- Test updates to reflect new card structure in snapshots and selectors
Reviewed Changes
Copilot reviewed 31 out of 32 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
| packages/design-system/src/components/OcCard/OcCard.vue | New OcCard component implementation with configurable props |
| packages/design-system/src/components/index.ts | Export the new OcCard component |
| packages/design-system/src/styles/layers.css | Remove old card CSS classes now handled by component |
| packages/web-runtime/src/pages/*.vue | Convert manual card markup to use OcCard component |
| packages/web-pkg/src/components/FilesList/ResourceTile.vue | Update tile card to use OcCard component |
| packages/web-app-/src/**/.vue | Convert app-specific card usage to OcCard component |
| **/*.spec.ts | Update test selectors and add OcCard stub configuration |
| **/*.snap | Update snapshots to reflect new card structure |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
b8e75b4 to
c640a3d
Compare
JammingBen
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM 👍
4e3f055 to
98c24e3
Compare
98c24e3 to
9b85eb0
Compare
* feat: add OcCard component
Description
Introduces an
OcCardcomponent and kills and hand-crafted usages ofoc-cardoroc-login-cardclasses.Related Issue
Types of changes