-
Notifications
You must be signed in to change notification settings - Fork 159
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
refactor: remove opinionated components from ODS #10293
Conversation
b04e7f3
to
c09a296
Compare
packages/design-system/changelog/unreleased/change-remove-opinionated-components
Outdated
Show resolved
Hide resolved
packages/design-system/changelog/unreleased/change-remove-opinionated-components
Show resolved
Hide resolved
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.
Move into subfolder FilesList
? The ResourceTiles.vue
component still lives in the files app, but it would make sense to move it here into the FilesList
folder anyway... if you think the scope of this PR can handle that move as well, then go for it 😇
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.
Moving ResourceTiles.vue
is a little more work to do, I created an issue for this: #10304
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.
Since this component now moved from the (potentially standalone) design system into web-pkg
we don't need to provide/inject the icon mappings anymore. Instead the component could query that from the runtime / a composable / whatever. But maybe something for a followup... could you create an issue? Or just add a todo in your PR description, so that I can create the issue before we merge and after we agreed that we want to change it. 😅
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.
Good catch, I've created #10305 for this.
|
I decided for |
Removes the following opinionated components from the ODS and moves them to `web-pkg` instead: - `OcResource` (now `ResourceListItem`) - `OcTile` (now `ResourceTile`) - `OcResourceIcon` (now `ResourceIcon`) - `OcGhostElement` (now `DragGhostElement`) Those components hold logic about resources, which is something that is not supposed to live in the ODS. The ODS should only contain design- and layout-specific components.
Move the following components to web-pkg: - `OcResourceLink` (now `ResourceLink`) - `OcResourceName` (now `ResourceName`) - `OcResourceSize` (now `ResourceSize`)
da34479
to
e43c9f8
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.
Nice! Now my last request for change: remove web-client
from the dependency list please 😅
Quality Gate passedThe SonarCloud Quality Gate passed, but some issues were introduced. 11 New issues |
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.
Hooray, thank you 🥳
Description
Removes the following opinionated components from the ODS and moves them to
web-pkg
instead:OcResource
(nowResourceListItem
)OcTile
(nowResourceTile
)OcResourceIcon
(nowResourceIcon
)OcGhostElement
(nowResourceGhostElement
)OcResourceLink
(nowResourceLink
)OcResourceName
(nowResourceName
)OcResourceSize
(nowResourceSize
)Those components hold logic about resources, which is something that is not supposed to live in the ODS. The ODS should only contain design- and layout-specific components.
Types of changes