Skip to content
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: add dashboard lightweight card #289

Merged
merged 4 commits into from
Aug 8, 2023

Conversation

kertuilves
Copy link

@github-actions
Copy link

github-actions bot commented Jul 5, 2023

size-limit report 📦

Path Size
packages/cxl-ui/pkg/dist-web/cxl-ui.js 34.65 KB (+2.1% 🔺)
packages/cxl-ui/pkg/dist-web/cxl-ui-jwplayer.js 11.87 KB (0%)
packages/cxl-ui/pkg/dist-web/cxl-ui-playbooks.js 25.78 KB (+1.97% 🔺)
packages/cxl-ui/pkg/dist-web/vendor.js 125.6 KB (0%)
packages/cxl-ui/pkg/dist-web/cxl-ui-jwplayer.js, packages/cxl-ui/pkg/dist-web/cxl-ui-playbooks.js, packages/cxl-ui/pkg/dist-web/cxl-ui.js, packages/cxl-ui/pkg/dist-web/manifest.js, packages/cxl-ui/pkg/dist-web/unresolved.js, packages/cxl-ui/pkg/dist-web/vendor.js 199.06 KB (+0.62% 🔺)

@heshfekry
Copy link

@kertuilves just confirming that this is the component

https://deploy-preview-289--conversionxl-aybolit.netlify.app/?path=/story/cxl-ui-cxl-card--cxl-course

@heshfekry
Copy link

heshfekry commented Jul 5, 2023

Hey @kertuilves

Would be good to see multiple cards in the same view so we can assess how they work together? Similar to this.

Right now it seems to take full width,

image

so unclear how it would function with multiple cards

image

Additionally

  1. would be good to see the indicator. - EDIT - I missed the control. I see it but as pawel mentioned its cut. Could just be the view.
  2. A problem came up yday when we where working on roadmaps from teams and personal. We probably need to have tags on there too indicating if the course has been selected in roadmap or not.
  • I would change the label from Team > Team Roadmap and from Personal > Personal Roadmap

image

Copy link

@pawelkmpt pawelkmpt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Icon is cut

Screenshot 2023-07-05 at 12 03 37

packages/cxl-lumo-styles/src/icons.js Outdated Show resolved Hide resolved
packages/cxl-ui/scss/global/cxl-card.scss Outdated Show resolved Hide resolved
@pawelkmpt
Copy link

A problem came up yday when we where working on roadmaps from teams and personal. We probably need to have tags on there too indicating if the course has been selected in roadmap or not.

Use vaadin badge for tags.

@kertuilves kertuilves force-pushed the kertu/feat/dashboard-lightweight-card branch from 8d0f8ab to 86cae23 Compare July 5, 2023 11:42
@kertuilves kertuilves requested a review from pawelkmpt July 5, 2023 11:43
@kertuilves
Copy link
Author

Hey @heshfekry.

  1. I modified the Course Card canvas layout and now the icon is visible
  2. Course Card now has another with-roadmaps state
  3. I added an example under cxl-tabs-slider to see multiple Course Cards in the same view

@heshfekry
Copy link

Hey @heshfekry.

  1. I modified the Course Card canvas layout and now the icon is visible
  2. Course Card now has another with-roadmaps state
  3. I added an example under cxl-tabs-slider to see multiple Course Cards in the same view

Looking good. The size seems to change with different states, unclear how that plays with multiple cards in the same view.

@kertuilves
Copy link
Author

@heshfekry

Looking good. The size seems to change with different states, unclear how that plays with multiple cards in the same view.

I kept the card itself really basic and didn't constrain its component width. In my opinion this should be done when adding the card to the specific layout. In our example when adding it to the slider in the accordion. And those slider styles and card widths are right now visible in the accordion PR.

@heshfekry
Copy link

@heshfekry

Looking good. The size seems to change with different states, unclear how that plays with multiple cards in the same view.

I kept the card itself really basic and didn't constrain its component width. In my opinion this should be done when adding the card to the specific layout. In our example when adding it to the slider in the accordion. And those slider styles and card widths are right now visible in the accordion PR.

This makes sense. Does this apply to height too? for example when you introduce the tags or the names etc take more space.

@kertuilves
Copy link
Author

@heshfekry

Looking good. The size seems to change with different states, unclear how that plays with multiple cards in the same view.

I kept the card itself really basic and didn't constrain its component width. In my opinion this should be done when adding the card to the specific layout. In our example when adding it to the slider in the accordion. And those slider styles and card widths are right now visible in the accordion PR.

This makes sense. Does this apply to height too? for example when you introduce the tags or the names etc take more space.

Yes. So all the cards heights will be the same and it depends on the highest card. I kept it the same way as it is for the slider cards by default.

Screenshot 2023-07-05 at 15 19 00

@heshfekry

This comment was marked as outdated.

@heshfekry

This comment was marked as outdated.

@pawelkmpt pawelkmpt changed the base branch from master to feat/dashboard July 6, 2023 08:05
@kertuilves kertuilves force-pushed the kertu/feat/dashboard-lightweight-card branch from 86cae23 to 8746bea Compare July 6, 2023 10:33
@kertuilves kertuilves requested a review from pawelkmpt July 6, 2023 13:37
Copy link

@pawelkmpt pawelkmpt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking good. Concerns about logic.

@kertuilves kertuilves force-pushed the kertu/feat/dashboard-lightweight-card branch 3 times, most recently from bf1c620 to 2bbc028 Compare July 10, 2023 18:23
packages/cxl-ui/src/components/cxl-light-card.js Outdated Show resolved Hide resolved
packages/cxl-ui/src/components/cxl-light-card.js Outdated Show resolved Hide resolved
packages/cxl-ui/src/components/cxl-light-card.js Outdated Show resolved Hide resolved
packages/cxl-ui/src/components/cxl-light-card.js Outdated Show resolved Hide resolved
packages/cxl-ui/src/components/cxl-light-card.js Outdated Show resolved Hide resolved
@kertuilves kertuilves force-pushed the kertu/feat/dashboard-lightweight-card branch 2 times, most recently from 3156038 to 81ee5d4 Compare July 14, 2023 14:51
Copy link

@pawelkmpt pawelkmpt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Navigation differs from Figma design

it is:
Screenshot 2023-07-27 at 15 57 23

should be:
Screenshot 2023-07-27 at 15 57 08

packages/cxl-ui/src/components/cxl-light-card.js Outdated Show resolved Hide resolved
packages/cxl-ui/src/components/cxl-light-card.js Outdated Show resolved Hide resolved
Comment on lines 10 to 14
[theme~='badge'][theme~='secondary'] {
color: var(--lumo-primary-contrast-color);
background-color: var(--cxl-color-brand-blue);
}

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please make it separate commit as it's badge feature

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@kertuilves following it up

@kertuilves
Copy link
Author

Navigation differs from Figma design

I made the slider changes now here, too. But this was already discussed above that those slider styles were already under #288. And the slider here was just to show how multiple cards together would behave.

Copy link

@pawelkmpt pawelkmpt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please put badge code into one commit and rest into another

Comment on lines 10 to 14
[theme~='badge'][theme~='secondary'] {
color: var(--lumo-primary-contrast-color);
background-color: var(--cxl-color-brand-blue);
}

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@kertuilves following it up

packages/cxl-lumo-styles/src/icons.js Outdated Show resolved Hide resolved
@kertuilves kertuilves force-pushed the kertu/feat/dashboard-lightweight-card branch 3 times, most recently from d4b8555 to 95ac784 Compare August 1, 2023 12:57
@kertuilves kertuilves force-pushed the kertu/feat/dashboard-lightweight-card branch from 95ac784 to 6cbc90b Compare August 2, 2023 07:34
Copy link

@pawelkmpt pawelkmpt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good job 👍
Next step: refactor to use base class

@kertuilves kertuilves force-pushed the kertu/feat/dashboard-lightweight-card branch from 6cbc90b to 1fae565 Compare August 2, 2023 07:49
packages/cxl-ui/scss/cxl-base-card.scss Outdated Show resolved Hide resolved
packages/cxl-ui/scss/cxl-time.scss Show resolved Hide resolved
@kertuilves kertuilves force-pushed the kertu/feat/dashboard-lightweight-card branch from 35b7b02 to bdb5cf1 Compare August 7, 2023 09:47
Copy link

@pawelkmpt pawelkmpt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@kertuilves I marked couple of changes which should go into "improve base card" commit. For storybook templates it's not just a line I left the comment but all changes which are caused by showTimeIcon property introduction.

Light card itself looks good

@kertuilves kertuilves force-pushed the kertu/feat/dashboard-lightweight-card branch from bdb5cf1 to 4989403 Compare August 7, 2023 13:53
@pawelkmpt pawelkmpt merged commit 9fdc717 into feat/dashboard Aug 8, 2023
4 checks passed
@pawelkmpt pawelkmpt deleted the kertu/feat/dashboard-lightweight-card branch January 9, 2024 12:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants