Skip to content

Review prop validation across component library #4651

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

Closed
1 task done
myrta2302 opened this issue Feb 11, 2025 · 1 comment · Fixed by #5469 · May be fixed by #5471 or #5472
Closed
1 task done

Review prop validation across component library #4651

myrta2302 opened this issue Feb 11, 2025 · 1 comment · Fixed by #5469 · May be fixed by #5471 or #5472
Assignees
Labels
📦 components Related to the @swisspost/design-system-components package 🍀 decision Marks conversations where a decision has been made

Comments

@myrta2302
Copy link
Contributor

myrta2302 commented Feb 11, 2025

Following the alignment of prop validation messages (#4638), a review would be desirable as some components may lack prop validation or could benefit from enhancements.

@myrta2302 myrta2302 added the 🚂 PR train PR which follows another one. label Feb 11, 2025
@alizedebray alizedebray added this to the Maintenance III milestone Feb 12, 2025
@alizedebray alizedebray moved this from 👀 Triage to 💻 Ready for development in Design System Production Board Feb 12, 2025
@alizedebray alizedebray added 📦 components Related to the @swisspost/design-system-components package and removed 🚂 PR train PR which follows another one. labels Feb 12, 2025
@myrta2302 myrta2302 self-assigned this Mar 3, 2025
@myrta2302 myrta2302 moved this from 💻 Ready for development to 🕹️ Coding in progress in Design System Production Board Mar 3, 2025
@myrta2302 myrta2302 moved this from 🕹️ Coding in progress to 🤬 Dev in Code Review in Design System Production Board Mar 6, 2025
@gfellerph gfellerph moved this from 🤬 Dev in Code Review to 🧐 In Review in Design System Production Board Mar 13, 2025
@myrta2302 myrta2302 moved this from 🧐 In Review to 💻 In Progress in Design System Production Board Mar 18, 2025
@myrta2302 myrta2302 moved this from 💻 In Progress to 🧐 In Review in Design System Production Board Mar 31, 2025
@myrta2302 myrta2302 added the needs: 🏓 dev roundtable To be discussed at the roundtable of esteemed developers label Apr 3, 2025
@myrta2302
Copy link
Contributor Author

Decisions:

  1. We do not validate Boolean props
  2. We remove default 'null' values from declaration: (e.g. @prop() readonly rotate?: number | null = null; -> @prop() readonly rotate?: number;)
  3. We remove 'throw error' and use only 'console.error' everywhere

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment