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

fix(storybook): Accordion item title formatting wrong for Icelandic characters #15564

Merged
merged 2 commits into from
Aug 6, 2024

Conversation

RunarVestmann
Copy link
Member

@RunarVestmann RunarVestmann commented Jul 31, 2024

Accordion item title formatting wrong for Icelandic characters

What

Screenshots / Gifs

Before

image

After

image

Summary by CodeRabbit

  • Style
    • Updated label definitions in <AccordionItem /> and <SidebarAccordion /> components for improved consistency and flexibility.

@RunarVestmann RunarVestmann added the automerge Merge this PR as soon as all checks pass label Jul 31, 2024
@RunarVestmann RunarVestmann requested a review from a team as a code owner July 31, 2024 14:28
Copy link
Contributor

coderabbitai bot commented Jul 31, 2024

Walkthrough

The recent changes focus on updating the label definitions of <AccordionItem /> and <SidebarAccordion /> components in the Accordion.stories.mdx file. String literals used as labels have been modified from double quotes to curly braces with single quotes. This adjustment enhances code flexibility and consistency, allowing for easier future modifications. The functionality of the accordion components remains unchanged.

Changes

Files Change Summary
libs/island-ui/core/src/lib/Accordion/Accordion.stories.mdx Updated label definitions in <AccordionItem /> and <SidebarAccordion /> from double quotes to curly braces with single quotes, improving flexibility without altering content.

Sequence Diagram(s)

sequenceDiagram
    participant User
    participant Accordion
    participant AccordionItem

    User->>Accordion: Open Accordion
    Accordion->>AccordionItem: Show Item Labels
    AccordionItem-->>User: Display Labels
Loading

This diagram illustrates the interaction between the user and the accordion components, showing how the labels are presented without changing the underlying functionality.


Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?

Share
Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>.
    • Generate unit testing code for this file.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai generate unit testing code for this file.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai generate interesting stats about this repository and render them as a table.
    • @coderabbitai show all the console.log statements in this repository.
    • @coderabbitai read src/utils.ts and generate unit testing code.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (invoked as PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Additionally, you can add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 0

Review details

Configuration used: .coderabbit.yaml
Review profile: CHILL

Commits

Files that changed from the base of the PR and between 965382d and a570bb4.

Files selected for processing (1)
  • libs/island-ui/core/src/lib/Accordion/Accordion.stories.mdx (10 hunks)
Files skipped from review due to trivial changes (1)
  • libs/island-ui/core/src/lib/Accordion/Accordion.stories.mdx

@datadog-island-is
Copy link

datadog-island-is bot commented Jul 31, 2024

Datadog Report

All test runs 528218b 🔗

35 Total Test Services: 0 Failed, 34 Passed
🔻 Test Sessions change in coverage: 2 decreased, 1 increased (+0.01%), 144 no change

Test Services
This report shows up to 10 services
Service Name Failed Known Flaky New Flaky Passed Skipped Total Time Code Coverage Change Test Service View
air-discount-scheme-web 0 0 0 2 0 8.68s 1 no change Link
api 0 0 0 4 0 2.69s 1 no change Link
application-api-files 0 0 0 12 0 5.62s 1 no change Link
application-core 0 0 0 90 0 18.23s 1 decreased (-0.21%) Link
application-system-api 0 0 0 111 2 3m 1.02s 1 no change Link
application-template-api-modules 0 0 0 109 0 1m 40.6s 1 increased (+0.01%) Link
application-templates-accident-notification 0 0 0 98 0 17.04s 1 no change Link
application-templates-criminal-record 0 0 0 2 0 10.23s 1 no change Link
application-templates-driving-license 0 0 0 13 0 14.78s 1 no change Link
application-templates-example-payment 0 0 0 2 0 10.4s 1 no change Link

🔻 Code Coverage Decreases vs Default Branch (2)

  • application-core - jest 78.74% (-0.21%) - Details
  • application-templates-parental-leave - jest 33.21% (-0.1%) - Details

Copy link

codecov bot commented Jul 31, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 37.02%. Comparing base (965382d) to head (a570bb4).
Report is 5 commits behind head on main.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main   #15564      +/-   ##
==========================================
- Coverage   37.02%   37.02%   -0.01%     
==========================================
  Files        6556     6556              
  Lines      134022   134024       +2     
  Branches    38359    38360       +1     
==========================================
  Hits        49617    49617              
- Misses      84405    84407       +2     
Flag Coverage Δ
air-discount-scheme-web 0.00% <ø> (ø)
api 3.44% <ø> (ø)
application-api-files 56.99% <ø> (ø)
application-core 71.77% <ø> (ø)
application-system-api 41.84% <ø> (ø)
application-template-api-modules 23.91% <ø> (-0.02%) ⬇️
application-templates-accident-notification 19.88% <ø> (ø)
application-templates-car-recycling 4.23% <ø> (ø)
application-templates-criminal-record 22.23% <ø> (ø)
application-templates-driving-license 16.03% <ø> (ø)
application-templates-estate 11.92% <ø> (ø)
application-templates-example-payment 20.90% <ø> (ø)
application-templates-financial-aid 12.12% <ø> (ø)
application-templates-general-petition 18.96% <ø> (ø)
application-templates-health-insurance 23.36% <ø> (ø)
application-templates-inheritance-report 4.64% <ø> (ø)
application-templates-marriage-conditions 10.52% <ø> (ø)
application-templates-mortgage-certificate 43.76% <ø> (ø)
application-templates-parental-leave 28.43% <ø> (ø)
application-types 7.26% <ø> (ø)
application-ui-components 1.43% <ø> (ø)
application-ui-shell 21.44% <ø> (-0.01%) ⬇️
auth-react 23.02% <ø> (ø)
clients-charge-fjs-v2 27.54% <ø> (ø)
contentful-apps 6.05% <ø> (ø)
financial-aid-backend 56.56% <ø> (ø)
financial-aid-shared 19.03% <ø> (ø)
island-ui-core 28.85% <ø> (ø)
judicial-system-web 28.11% <ø> (ø)
portals-admin-regulations-admin 2.03% <ø> (ø)
portals-core 16.29% <ø> (ø)
services-auth-personal-representative 48.26% <ø> (-0.05%) ⬇️
shared-components 27.87% <ø> (ø)
shared-form-fields 31.83% <ø> (ø)
web 1.89% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

see 1 file with indirect coverage changes


Continue to review full report in Codecov by Sentry.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 965382d...a570bb4. Read the comment docs.

@kodiakhq kodiakhq bot merged commit fb0f705 into main Aug 6, 2024
111 checks passed
@kodiakhq kodiakhq bot deleted the fix/island-ui-accordion-title-formatting branch August 6, 2024 11:28
oskarjs pushed a commit that referenced this pull request Aug 20, 2024
…haracters (#15564)

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
jonnigs pushed a commit that referenced this pull request Sep 2, 2024
…haracters (#15564)

Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
automerge Merge this PR as soon as all checks pass
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants