Skip to content

[Documentation]: generate code examples with Claude - #971

Merged
emilyhernandez merged 1 commit into
mainfrom
DS-655-generate-code-examples
Aug 3, 2026
Merged

[Documentation]: generate code examples with Claude#971
emilyhernandez merged 1 commit into
mainfrom
DS-655-generate-code-examples

Conversation

@mfaarni

@mfaarni mfaarni commented Jul 30, 2026

Copy link
Copy Markdown
Contributor

DS-655

Used Claude to generate code examples for Fudis components and directives. Some were already created before, and this PR expands this documentation to all the other components. The code is mainly AI-generated, with some minor fixes applied where necessary. In the future, these code examples should help GenAI-assistants in using Fudis components.

Developer's checklist

  • I wrote necessary unit tests
  • I updated Storybook stories and documentation to reflect the latest changes
  • I included visual regression tests for new UI design
  • I tested my implementation with different browsers
  • I checked accessibility according to Web Content Accessibility Guidelines 2.1
  • Together with the reviewer I can confirm that the implementation supports the following screenreader and browser combinations (NVDA + Firefox, VoiceOver + Chrome)

@mfaarni mfaarni added the chore Maintenance and refactoring related issue label Jul 30, 2026
@github-actions

Copy link
Copy Markdown
Lines Statements Branches Functions
Coverage: 94%
94.97% (14137/14885) 89.28% (1425/1596) 91.08% (531/583)
Coverage Report • (94%)
File% Stmts% Branch% Funcs% LinesUncovered Line #s
All files94.9789.2891.0894.97 
components/alert/alert-group100100100100 
   alert-group.component.ts100100100100 
components/badge100100100100 
   badge.component.ts100100100100 
components/breadcrumbs100100100100 
   breadcrumbs.component.ts100100100100 
components/breadcrumbs/breadcrumbs-item100100100100 
   breadcrumbs-item.component.ts100100100100 
components/button100100100100 
   button.component.ts100100100100 
components/description-list10092.85100100 
   description-list.component.ts10092.85100100131
components/description-list/description-list-item98.6487.510098.64 
   description-list-item.component.ts98.6487.510098.64116–118
components/description-list/description-list-item/description-list-item-details98.9192.310098.91 
   description-list-item-details.component.ts98.9192.310098.91170–171
components/description-list/description-list-item/description-list-item-term100100100100 
   description-list-item-term.component.ts100100100100 
components/dialog97.883.3310097.8 
   dialog-directives.ts100100100100 
   dialog.component.ts96.257510096.2570–72, 79–81, 170
components/dropdown-menu/dropdown-menu-group100100100100 
   dropdown-menu-group.component.ts100100100100 
components/dropdown-menu/dropdown-menu-item87.2804087.2 
   dropdown-menu-item.component.ts87.2804087.288–99, 105–106, 112–113
components/expandable99.279010099.27 
   expandable-content.directive.ts100100100100 
   expandable.component.ts99.1489.2810099.14170–171
components/footer100100100100 
   footer.component.ts100100100100 
components/form/checkbox99.468010099.46 
   checkbox.component.ts99.468010099.46164
components/form/checkbox-group/checkbox-group-option95.5166.6610095.51 
   checkbox-group-option.component.ts95.5166.6610095.5177, 131–134, 153–154
components/form/date/datepicker90.9870.2191.6690.98 
   datepicker.component.ts90.9870.2191.6690.98109–120, 123–128, 258–259, 284–285, 291–292, 302–303, 309–314, 336
components/form/error-message/error-message86.6966.6610086.69 
   error-message.directive.ts86.6966.6610086.6976–89, 174–180, 210–214, 227–231
components/form/fieldset95.6292.187.595.62 
   fieldset-content.directive.ts100100100100 
   fieldset.component.ts94.7991.4284.6194.79173–174, 200–201, 204–214
components/form/form100100100100 
   form-content.directive.ts100100100100 
   form.component.ts100100100100 
components/form/localized-text-group10093.93100100 
   localized-text-group.component.ts10093.93100100231
components/form/radio-button-group/radio-button98.857510098.85 
   radio-button.component.ts98.857510098.8582
components/form/text-area95.0657.1410095.06 
   text-area.component.ts95.0657.1410095.0664–65, 78–79
components/form/text-input98.4478.9410098.44 
   text-input.component.ts98.4478.9410098.44126–127
components/grid/grid100100100100 
   grid.component.ts100100100100 
components/grid/grid-item100100100100 
   grid-item.component.ts100100100100 
components/horizontal-rule100100100100 
   horizontal-rule.component.ts100100100100 
components/icon100100100100 
   icon.component.ts100100100100 
components/icon-button98.6987.510098.69 
   icon-button.component.ts98.6987.510098.69148–149
components/language-badge-group91.9781.2510091.97 
   language-badge-group.component.ts91.9781.2510091.97133–142, 157, 159–160
components/loading-spinner100100100100 
   loading-spinner.component.ts100100100100 
components/notification100100100100 
   notification.component.ts100100100100 
components/pagination92.8579.0684.6192.85 
   pagination.component.ts92.8579.0684.6192.85146–147, 283–294, 339–350, 402–403, 405–406
components/section98.8492.5910098.84 
   section-content.directive.ts100100100100 
   section.component.ts98.619210098.61164–165, 212
components/tab-navigation71.229054.5471.22 
   tab-navigation-bar.component.ts71.9781.8153.8471.9756–57, 91, 107, 111–122, 125–135, 138–153, 156–163
   tab-navigation-panel.component.ts100100100100 
   tab-navigation-tab.component.ts62.410042.8562.457–58, 78–84, 88–124, 128–131
components/typography/body-text98.7683.3310098.76 
   body-text.component.ts98.7683.3310098.7675
components/typography/heading100100100100 
   heading.component.ts100100100100 
directives/form/datepicker100100100100 
   datepicker.directive.ts100100100100 
directives/grid/grid95.0868.9610095.08 
   grid.directive.ts95.0868.9610095.0860, 62–63, 127–128, 197–199, 202–203, 206–207
directives/grid/grid-item88.7564.710088.75 
   grid-item.directive.ts88.7564.710088.7543–44, 46–47, 49–50, 82–89, 99–100, 110–111
directives/link99.6297.6110099.62 
   link.directive.ts99.6297.6110099.62109
directives/popover96.7888.8883.3396.78 
   popover.directive.ts96.4188.2381.8196.41111–112, 153, 155–156, 160–161

@emilyhernandez
emilyhernandez merged commit da219d4 into main Aug 3, 2026
14 checks passed
@emilyhernandez
emilyhernandez deleted the DS-655-generate-code-examples branch August 3, 2026 12:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

chore Maintenance and refactoring related issue

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants