feat: add alert, link, divider components#1811
Conversation
WalkthroughThis PR extends the tiny-engine designer with three new Vue components—TinyAlert, TinyLink, and TinyDivider—by adding comprehensive metadata definitions, designer snippets, and schema registrations across mock configuration files. ChangesVue Component Metadata and Schema Registration
Estimated code review effort🎯 2 (Simple) | ⏱️ ~12 minutes Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Actionable comments posted: 2
🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.
Inline comments:
In `@mockServer/src/mock/get/app-center/v1/apps/schema/1.json`:
- Around line 2158-2164: Duplicate registration of componentName "TinyAlert" in
componentsMap causes ambiguous resolution; remove the later entry (the block
with package "`@opentiny/vue`" exportName "TinyAlert" version "3.22.0") and
instead update the existing componentsMap entry for TinyAlert (the earlier
block) to reflect the intended exportName and version so there is only one
canonical TinyAlert definition.
In `@mockServer/src/mock/get/app-center/v1/apps/schema/16.json`:
- Around line 1188-1194: Remove the duplicate TinyAlert entry from componentsMap
(the second block with componentName "TinyAlert") and instead update the
original TinyAlert block (the earlier entry in componentsMap) to use the desired
package/exportName/version values shown in the duplicate; specifically, edit the
existing TinyAlert object to set package "`@opentiny/vue`", exportName
"TinyAlert", destructuring true and version "3.22.0" and delete the later
duplicated object to avoid inconsistent component lookup.
🪄 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: Repository UI
Review profile: CHILL
Plan: Pro
Run ID: baf142cf-6a63-409a-92cf-bfab2cc54fcd
📒 Files selected for processing (3)
designer-demo/public/mock/bundle.jsonmockServer/src/mock/get/app-center/v1/apps/schema/1.jsonmockServer/src/mock/get/app-center/v1/apps/schema/16.json
English | 简体中文
PR
PR Checklist
Please check if your PR fulfills the following requirements:
PR Type
What kind of change does this PR introduce?
Background and solution
What is the current behavior?
Issue Number: N/A
What is the new behavior?
Does this PR introduce a breaking change?
Other information