Skip to content

test: change button border radius for chromatic test#2

Open
serafim-san wants to merge 4 commits intonextfrom
test/chromatic
Open

test: change button border radius for chromatic test#2
serafim-san wants to merge 4 commits intonextfrom
test/chromatic

Conversation

@serafim-san
Copy link
Copy Markdown
Owner

@serafim-san serafim-san commented Apr 8, 2026

Summary

Test

Summary by CodeRabbit

  • Style

    • Increased button corner radius for a more rounded, modern appearance applied consistently across the app.
  • Chores

    • Removed automatic SVG handling from the Storybook build pipeline.
    • Streamlined CI: removed the previous CI job and updated the visual-test workflow to sync app state and pre-generate SVG sprite assets before visual tests.

@coderabbitai
Copy link
Copy Markdown

coderabbitai bot commented Apr 8, 2026

Note

.coderabbit.yaml has unrecognized properties

CodeRabbit is using all valid settings from your configuration. Unrecognized properties (listed below) have been ignored and may indicate typos or deprecated fields that can be removed.

⚠️ Parsing warnings (1)
Validation error: Unrecognized key(s) in object: 'path_instructions'
⚙️ Configuration instructions
  • Please see the configuration documentation for more information.
  • You can also validate your configuration using the online YAML validator.
  • 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

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 6e7b87fe-0664-4d71-b5e5-b05063a62e4f

📥 Commits

Reviewing files that changed from the base of the PR and between 0ec6874 and d4ca61b.

📒 Files selected for processing (1)
  • .github/workflows/ci.yml
🚧 Files skipped from review as they are similar to previous changes (1)
  • .github/workflows/ci.yml

📝 Walkthrough

Walkthrough

Changed Button component default radius from rounded-md to rounded-xl. Removed WebkitSvg() plugin injection from Storybook's Vite config. Removed the CI ci job and updated the chromatic job to run pnpm exec svelte-kit sync and a pnpm exec tsx script that imports ./plugins/vite.ts, instantiates WebkitSvg, and calls buildStart() to generate SVG sprites.

Changes

Cohort / File(s) Summary
Button Component Styling
src/lib/ui/core/Button/Button.svelte
Updated Tailwind-T Variants base border-radius from rounded-md to rounded-xl.
Storybook Vite Config
.storybook/main.ts
Removed injection of WebkitSvg() from the viteFinal hook (plugin no longer added to merged Vite config).
CI Workflow
.github/workflows/ci.yml
Removed the ci job; modified chromatic job to add pnpm exec svelte-kit sync and a pnpm exec tsx inline step that imports ./plugins/vite.ts, creates WebkitSvg, and runs buildStart() to generate SVG sprite assets before Chromatic.

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~20 minutes

🚥 Pre-merge checks | ✅ 2 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Description check ⚠️ Warning The description is severely incomplete, providing only 'Test' instead of following the required template with Summary and optional Screenshots sections. Expand the description to include the Notion ticket link, a detailed summary of changes (button border radius update and CI modifications), and any relevant screenshots or videos.
✅ Passed checks (2 passed)
Check name Status Explanation
Title check ✅ Passed The title refers to a button border radius change for Chromatic testing, which aligns with the main changes (Button component style update and CI workflow adjustments for Chromatic).
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch test/chromatic

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link
Copy Markdown

@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: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In @.storybook/main.ts:
- Line 25: Update the dynamic import in .storybook/main.ts so it points to the
actual TypeScript file: replace the import of '../plugins/vite.js' with the
correct module path to the TypeScript file (plugins/vite.ts) where WebkitSvg is
exported, i.e., update the import that assigns { WebkitSvg } to reference
'../plugins/vite.ts' so the module resolution finds the existing export.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 589a4256-28c5-4bfb-84f3-9e109cf0aba0

📥 Commits

Reviewing files that changed from the base of the PR and between 3a74382 and 26c8b55.

📒 Files selected for processing (1)
  • .storybook/main.ts

},

async viteFinal(config) {
const { WebkitSvg } = await import('../plugins/vite.js')
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

⚠️ Potential issue | 🔴 Critical

🧩 Analysis chain

🏁 Script executed:

#!/bin/bash
# Verify Storybook dynamic import target and actual plugin files (read-only)
set -euo pipefail

echo "== Import line in .storybook/main.ts =="
rg -n "await import\\(" .storybook/main.ts

echo
echo "== Candidate plugin files under plugins/ =="
fd -a "vite\\.(ts|js)$" plugins

echo
echo "== Existence check for expected paths =="
python - <<'PY'
import os
paths = [
    "plugins/vite.ts",
    "plugins/vite.js",
    ".storybook/plugins/vite.ts",
    ".storybook/plugins/vite.js",
]
for p in paths:
    print(f"{p}: {'exists' if os.path.exists(p) else 'missing'}")
PY

Repository: serafim-san/kit

Length of output: 405


Fix the import path to match the actual file extension.

Line 25 imports ../plugins/vite.js, but the file is plugins/vite.ts. This breaks the Storybook build (CI error: ERR_MODULE_NOT_FOUND).

Fix
-    const { WebkitSvg } = await import('../plugins/vite.js')
+    const { WebkitSvg } = await import('../plugins/vite.ts')
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
const { WebkitSvg } = await import('../plugins/vite.js')
const { WebkitSvg } = await import('../plugins/vite.ts')
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In @.storybook/main.ts at line 25, Update the dynamic import in
.storybook/main.ts so it points to the actual TypeScript file: replace the
import of '../plugins/vite.js' with the correct module path to the TypeScript
file (plugins/vite.ts) where WebkitSvg is exported, i.e., update the import that
assigns { WebkitSvg } to reference '../plugins/vite.ts' so the module resolution
finds the existing export.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant