solid-design-system / solid

Monorepo for Union Investment's Solid Design System.
https://solid-design-system.fe.union-investment.de/x.x.x/storybook/
Other
19 stars 2 forks source link

feat: ✨ refine/refactor sd-input/sample-datepicker #567

Open karlbaumhauer opened 10 months ago

karlbaumhauer commented 10 months ago

User Story

As a consumer/stakeholder of the Solid Design System, I would like to utilize a clear and understandable design concept for the calendar so that designing and coding is effective.

Please note


Datepicker is no longer a dedicated webcomponent but a sd-input sample offered in Figma as a helper component and in Storybook as a theme developers can add to sd-input and customize as desired.

Component name and version number:

sd-input/sample-datepicker V.1.0.0 (Replaces sd-datepicker V.0.0.1)

Figma Branch

Components detailed requirements

DoR

DoD

coraliefeil commented 10 months ago

Refine ... look at flatpicker ... sync with dev next week

coraliefeil commented 9 months ago

Datepicker Concept

Pls review @EllaELSA -> only the new stylings for date and range ... the other stuff is not refactored yet

mariohamann commented 9 months ago

Is this a design ticket? Can we mark this with a figma label?

mariohamann commented 9 months ago

@abudd1094 Could you please review the design component? I think you're most into what's possible and what not. It would be nice if you could align some props (if possible) to have flatpickr names stuff. But we shouldn't overforce that here, as we won't provide a component in the end.

karlbaumhauer commented 9 months ago

Is this a design ticket? Can we mark this with a figma label?

@mariohamann from my perspective, this is the design ticket to define the component, which will be build in #273

coraliefeil commented 9 months ago

I think it is too early to review ... presenting design draft to brand on Thursday.

coraliefeil commented 9 months ago

Hi @abudd1094 , could you help me review this, pls? https://www.figma.com/file/9hJu09NkrkaPJKIe6eC5uk/sd-datepicker?type=design&node-id=401-2293&mode=design Thank you

abudd1094 commented 8 months ago

We are mixing up our concepts and language around the Datepicker. It is referred to in the tickets and comments as a “component”. I am seeing words like “slot” and “props”. There is no component, there are no slots, there are no props. This feels like a continuation of the research discussion

What do we provide?

From the previous discussions, we have said we will provide:

What was learned in the research phase?

My thoughts:

Conclusion

It feels to me like we are reaching for a simple solution and overcomplicating it. Flatpickr simply does not seem to promote extensive customization and certainly does not have the supporting documentation to make that process easy. It will be a hack job and the considerations outlined above should be carefully thought over before finalizing any designs.

I would do one of the following:

mariohamann commented 8 months ago

@abudd1094 This ticket here focuses design, and they need some kind props etc. Still thanks for your updated thoughts on Flatpickr...

coraliefeil commented 8 months ago

Handing this one over to you for review. Thanks a lot.

mariohamann commented 8 months ago

I would second @abudd1094 what he said in the Figma file: Remove everything what indicates, that we have a web component for that. It feels more like a "helper component" so that people can build their thing easier. So we shouldn't call it sd-datepicker, maybe it's even more a template or pattern with a helper-component? Or we show it as a sample of the input-component? And there we provide the theme in Storybook as well? In that case, you wuld be pretty free how to name the stuff – but as said, remove things like <slot> etc. and make very clear, that thit is NOT a component.

Does this help you enough, @coraliefeil ?

coraliefeil commented 7 months ago

"Datepicker is no longer a dedicated webcomponent but a sd-input sample offered in Figma as a helper component and in Storybook as a theme developers can add to sd-input and customize as desired."

coraliefeil commented 7 months ago

@mariohamann Please check briefly whether this is sufficient to start coding.

coraliefeil commented 7 months ago

Thanks!

mariohamann commented 7 months ago

I believe we decided to start working on it in development, so I would propose to close this ticket and leave the current state as is. Fine for you @coraliefeil?

coraliefeil commented 7 months ago

Great. Then I would label it with waiting for dev and publish when code is ready.

coraliefeil commented 5 months ago

Handing this one to you @van-nguyen-ht so you can publish when code is ready.