Skip to content

Release/v0.2.x#159

Merged
hexqi merged 12 commits intodevelopfrom
release/v0.2.x
Jul 17, 2025
Merged

Release/v0.2.x#159
hexqi merged 12 commits intodevelopfrom
release/v0.2.x

Conversation

@hexqi
Copy link
Contributor

@hexqi hexqi commented Jul 17, 2025

Summary by CodeRabbit

  • New Features

    • Introduced a new pill-based suggestion interface with categorized popover suggestions and improved template handling.
    • Added a dedicated suggestion dropdown component with highlight and selection capabilities.
    • Enhanced theme customization with new CSS variables for buttons, popovers, and layout elements.
  • Improvements

    • Replaced hardcoded styles with CSS variables for easier theming.
    • Refactored sender and action button UIs to use custom-styled divs instead of button components.
    • Updated API endpoint configuration to use environment-based base URLs.
  • Bug Fixes

    • Fixed width calculation errors in suggestion pills when no buttons are present.
    • Addressed layout and header width issues in documentation.
  • Removals

    • Removed deprecated Question and Suggestion components and their documentation.
    • Deleted related demo files and test data.
  • Documentation

    • Updated release notes and component documentation to reflect new features and removals.
    • Adjusted API docs for updated prop types.
  • Chores

    • Updated package versions to 0.2.15.
    • Improved CI/CD workflows for automated publishing and documentation deployment.
  • Refactor

    • Centralized slot and ref management into reusable composables.
    • Streamlined popover logic using a base popper component and composable utilities.
  • Style

    • Improved consistency and maintainability of styles across components using CSS variables.

@coderabbitai
Copy link

coderabbitai bot commented Jul 17, 2025

Caution

Review failed

The pull request is closed.

Walkthrough

This update removes the deprecated Question and Suggestion components and their documentation, refactors sender and suggestion UI to use new pill-based and popover interfaces, and centralizes theming via CSS variables. Several composables and internal APIs are improved, new workflow steps for publishing and documentation deployment are added, and version numbers are incremented across packages.

Changes

Files/Group Change Summary
.github/workflows/auto-publish.yml, .github/workflows/dispatch-publish.yml Enhanced workflows for tag-based publishing, doc building, and deployment to GitHub Pages.
docs/.vitepress/config.mts, docs/.vitepress/theme/index.ts, docs/.vitepress/theme/style.css Updated sidebar, removed dynamic imports, improved service worker registration, and adjusted navigation styles.
docs/demos/examples/Assistant.vue Refactored chat input suggestion UI to use pills, popover, and structured template data.
docs/demos/question/Base.vue, docs/demos/suggestion/All.vue, docs/demos/suggestion/templateData.ts, docs/src/components/question.md, docs/src/components/suggestion.md Deleted deprecated Question and Suggestion demo components, test data, and documentation.
docs/demos/sender/All.vue, docs/demos/sender/DeepThink.vue Replaced button components with styled divs for footer actions; updated icons and styles.
docs/demos/sender/CompactMode.vue Removed compact mode CSS variable override demo and related styles.
docs/demos/suggestion/pills-popper-config.vue Restricted overflowMode type to 'expand' or 'scroll'.
docs/demos/tools/client/Basic.vue, docs/demos/tools/client/Stream.vue, docs/demos/tools/conversation/Basic.vue, docs/demos/tools/message/Basic.vue Replaced hardcoded API paths with environment-based base URLs.
docs/src/components/suggestion-popover.md Updated SuggestionPopover docs: removed popoverWidth/Height props, changed topOffset type.
docs/src/releases/update-log.md Added entries for versions 0.2.14 and 0.2.15 with component and CI/CD updates.
packages/components/package.json, packages/kit/package.json, packages/svgs/package.json Bumped package versions to 0.2.15.
packages/components/src/base-popper/index.vue, packages/components/src/shared/composables/useSlotRefs.ts, packages/components/src/shared/composables/index.ts Refactored slot VNode/ref handling via new useSlotRefs composable.
packages/components/src/flow-layout-buttons/index.vue, packages/components/src/icon-button/index.vue, packages/components/src/suggestion-pills/components/PillButton.vue, packages/components/src/suggestion-pills/index.vue, packages/components/src/suggestion-popover/components/Header.vue, packages/components/src/suggestion-popover/components/Loading.vue, packages/components/src/suggestion-popover/components/NoData.vue, packages/components/src/suggestion-popover/components/Tooltip.vue Centralized colors, font sizes, and shadows using new CSS variables in global styles.
packages/components/src/index.ts Removed Question and Suggestion from exports and registration; reordered remaining exports.
packages/components/src/sender/components/ActionButtons.vue Replaced TinyButton with styled divs for actions; added CSS variables and compact variant styles.
packages/components/src/sender/components/Block.vue, packages/components/src/sender/components/TemplateEditor.vue Switched hardcoded colors and font sizes to CSS variables.
packages/components/src/sender/components/SuggestionList.vue Added new SuggestionList component for suggestion dropdown rendering.
packages/components/src/sender/composables/useKeyboardHandler.ts Replaced submission validation with canSubmit computed property.
packages/components/src/sender/composables/useSuggestionHandler.ts Added showTemplateEditor param to control suggestion filtering/display.
packages/components/src/sender/index.less Replaced/renamed CSS variables, removed suggestion and error styles, cleaned up slot paddings.
packages/components/src/sender/index.type.ts Added SuggestionTextPart interface; removed template and hasContent from SenderProps.
packages/components/src/sender/index.vue Refactored to use SuggestionList, unified canSubmit logic, removed error message handling, added theme variables and compact styles.
packages/components/src/sender/vars.less Deleted sender component CSS variables file (vars.less).
packages/components/src/suggestion-popover/index.type.ts Added appendTo prop, removed popoverWidth/Height, changed topOffset type.
packages/components/src/suggestion-popover/index.vue Refactored to use TrBasePopper, removed manual positioning, updated to use CSS variables and new slot structure.

Sequence Diagram(s)

sequenceDiagram
    participant User
    participant Sender
    participant SuggestionList
    participant SuggestionPopover
    participant SuggestionPills

    User->>Sender: Focuses or types in input
    Sender->>SuggestionList: Provides filtered suggestions (unless template editor active)
    User->>SuggestionList: Hovers/selects suggestion
    SuggestionList->>Sender: Emits selection
    Sender->>SuggestionPopover: (If pill/popover UI) Opens categorized suggestions
    User->>SuggestionPills: Clicks pill for quick command
    SuggestionPills->>Sender: Fills template data
    User->>Sender: Submits input (if canSubmit)
Loading

Possibly related PRs

  • opentiny/tiny-robot#157: Also modifies docs/.vitepress/theme/index.ts to remove dynamic imports, directly related to changes in this PR.

Suggested reviewers

  • gene9831

Poem

A hop, a skip, a code refactor,
Old questions gone, new pills react faster!
CSS variables bloom in the sun,
Suggestions pop and styles are fun.
With workflows tuned and docs anew,
This rabbit’s proud of what you do! 🐇✨

Warning

There were issues while running some tools. Please review the errors and either fix the tool's configuration or disable the tool if it's a critical failure.

🔧 ESLint

If the error stems from missing dependencies, add them to the package.json file. For unrecoverable errors (e.g., due to private dependencies), disable the tool in the CodeRabbit configuration.

docs/.vitepress/theme/index.ts

Oops! Something went wrong! :(

ESLint: 9.31.0

Error: The 'jiti' library is required for loading TypeScript configuration files. Make sure to install it.
at /node_modules/.pnpm/eslint@9.31.0/node_modules/eslint/lib/config/config-loader.js:145:10
at async loadTypeScriptConfigFileWithJiti (/node_modules/.pnpm/eslint@9.31.0/node_modules/eslint/lib/config/config-loader.js:144:3)
at async loadConfigFile (/node_modules/.pnpm/eslint@9.31.0/node_modules/eslint/lib/config/config-loader.js:266:11)
at async ConfigLoader.calculateConfigArray (/node_modules/.pnpm/eslint@9.31.0/node_modules/eslint/lib/config/config-loader.js:589:23)
at async #calculateConfigArray (/node_modules/.pnpm/eslint@9.31.0/node_modules/eslint/lib/config/config-loader.js:743:23)
at async /node_modules/.pnpm/eslint@9.31.0/node_modules/eslint/lib/eslint/eslint.js:767:6
at async Promise.all (index 0)
at async ESLint.lintFiles (/node_modules/.pnpm/eslint@9.31.0/node_modules/eslint/lib/eslint/eslint.js:764:19)
at async Object.execute (/node_modules/.pnpm/eslint@9.31.0/node_modules/eslint/lib/cli.js:632:14)
at async main (/node_modules/.pnpm/eslint@9.31.0/node_modules/eslint/bin/eslint.js:175:19)

docs/.vitepress/theme/style.css

Oops! Something went wrong! :(

ESLint: 9.31.0

Error: The 'jiti' library is required for loading TypeScript configuration files. Make sure to install it.
at /node_modules/.pnpm/eslint@9.31.0/node_modules/eslint/lib/config/config-loader.js:145:10
at async loadTypeScriptConfigFileWithJiti (/node_modules/.pnpm/eslint@9.31.0/node_modules/eslint/lib/config/config-loader.js:144:3)
at async loadConfigFile (/node_modules/.pnpm/eslint@9.31.0/node_modules/eslint/lib/config/config-loader.js:266:11)
at async ConfigLoader.calculateConfigArray (/node_modules/.pnpm/eslint@9.31.0/node_modules/eslint/lib/config/config-loader.js:589:23)
at async #calculateConfigArray (/node_modules/.pnpm/eslint@9.31.0/node_modules/eslint/lib/config/config-loader.js:743:23)
at async /node_modules/.pnpm/eslint@9.31.0/node_modules/eslint/lib/eslint/eslint.js:767:6
at async Promise.all (index 0)
at async ESLint.lintFiles (/node_modules/.pnpm/eslint@9.31.0/node_modules/eslint/lib/eslint/eslint.js:764:19)
at async Object.execute (/node_modules/.pnpm/eslint@9.31.0/node_modules/eslint/lib/cli.js:632:14)
at async main (/node_modules/.pnpm/eslint@9.31.0/node_modules/eslint/bin/eslint.js:175:19)

docs/demos/sender/All.vue

Oops! Something went wrong! :(

ESLint: 9.31.0

Error: The 'jiti' library is required for loading TypeScript configuration files. Make sure to install it.
at /node_modules/.pnpm/eslint@9.31.0/node_modules/eslint/lib/config/config-loader.js:145:10
at async loadTypeScriptConfigFileWithJiti (/node_modules/.pnpm/eslint@9.31.0/node_modules/eslint/lib/config/config-loader.js:144:3)
at async loadConfigFile (/node_modules/.pnpm/eslint@9.31.0/node_modules/eslint/lib/config/config-loader.js:266:11)
at async ConfigLoader.calculateConfigArray (/node_modules/.pnpm/eslint@9.31.0/node_modules/eslint/lib/config/config-loader.js:589:23)
at async #calculateConfigArray (/node_modules/.pnpm/eslint@9.31.0/node_modules/eslint/lib/config/config-loader.js:743:23)
at async /node_modules/.pnpm/eslint@9.31.0/node_modules/eslint/lib/eslint/eslint.js:767:6
at async Promise.all (index 0)
at async ESLint.lintFiles (/node_modules/.pnpm/eslint@9.31.0/node_modules/eslint/lib/eslint/eslint.js:764:19)
at async Object.execute (/node_modules/.pnpm/eslint@9.31.0/node_modules/eslint/lib/cli.js:632:14)
at async main (/node_modules/.pnpm/eslint@9.31.0/node_modules/eslint/bin/eslint.js:175:19)

  • 29 others

📜 Recent review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 6876820 and c658fcf.

⛔ Files ignored due to path filters (2)
  • packages/svgs/src/assets/close.svg is excluded by !**/*.svg
  • packages/svgs/src/assets/stop.svg is excluded by !**/*.svg
📒 Files selected for processing (48)
  • .github/workflows/auto-publish.yml (1 hunks)
  • .github/workflows/dispatch-publish.yml (2 hunks)
  • docs/.vitepress/config.mts (0 hunks)
  • docs/.vitepress/theme/index.ts (1 hunks)
  • docs/.vitepress/theme/style.css (1 hunks)
  • docs/demos/examples/Assistant.vue (5 hunks)
  • docs/demos/question/Base.vue (0 hunks)
  • docs/demos/sender/All.vue (2 hunks)
  • docs/demos/sender/CompactMode.vue (0 hunks)
  • docs/demos/sender/DeepThink.vue (3 hunks)
  • docs/demos/suggestion/All.vue (0 hunks)
  • docs/demos/suggestion/pills-popper-config.vue (1 hunks)
  • docs/demos/suggestion/templateData.ts (0 hunks)
  • docs/demos/tools/client/Basic.vue (1 hunks)
  • docs/demos/tools/client/Stream.vue (1 hunks)
  • docs/demos/tools/conversation/Basic.vue (1 hunks)
  • docs/demos/tools/message/Basic.vue (1 hunks)
  • docs/src/components/question.md (0 hunks)
  • docs/src/components/suggestion-popover.md (1 hunks)
  • docs/src/components/suggestion.md (0 hunks)
  • docs/src/releases/update-log.md (1 hunks)
  • packages/components/package.json (1 hunks)
  • packages/components/src/base-popper/index.vue (5 hunks)
  • packages/components/src/flow-layout-buttons/index.vue (4 hunks)
  • packages/components/src/icon-button/index.vue (1 hunks)
  • packages/components/src/index.ts (4 hunks)
  • packages/components/src/sender/components/ActionButtons.vue (2 hunks)
  • packages/components/src/sender/components/Block.vue (1 hunks)
  • packages/components/src/sender/components/SuggestionList.vue (1 hunks)
  • packages/components/src/sender/components/TemplateEditor.vue (1 hunks)
  • packages/components/src/sender/composables/useKeyboardHandler.ts (3 hunks)
  • packages/components/src/sender/composables/useSuggestionHandler.ts (4 hunks)
  • packages/components/src/sender/index.less (10 hunks)
  • packages/components/src/sender/index.type.ts (1 hunks)
  • packages/components/src/sender/index.vue (6 hunks)
  • packages/components/src/sender/vars.less (0 hunks)
  • packages/components/src/shared/composables/index.ts (1 hunks)
  • packages/components/src/shared/composables/useSlotRefs.ts (1 hunks)
  • packages/components/src/suggestion-pills/components/PillButton.vue (1 hunks)
  • packages/components/src/suggestion-pills/index.vue (3 hunks)
  • packages/components/src/suggestion-popover/components/Header.vue (2 hunks)
  • packages/components/src/suggestion-popover/components/Loading.vue (2 hunks)
  • packages/components/src/suggestion-popover/components/NoData.vue (2 hunks)
  • packages/components/src/suggestion-popover/components/Tooltip.vue (4 hunks)
  • packages/components/src/suggestion-popover/index.type.ts (2 hunks)
  • packages/components/src/suggestion-popover/index.vue (7 hunks)
  • packages/kit/package.json (1 hunks)
  • packages/svgs/package.json (1 hunks)
✨ Finishing Touches
  • 📝 Generate Docstrings

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.

❤️ 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>, please review it.
    • Explain this complex logic.
    • 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 explain this code block.
    • @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 gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and explain its main purpose.
    • @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.

Support

Need help? Create a ticket on our support page for assistance with any issues or questions.

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 using 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 generate docstrings to generate docstrings for this PR.
  • @coderabbitai generate sequence diagram to generate a sequence diagram of the changes in this 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.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

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.

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.

3 participants