Repository navigation
Commit 8b30377
authored
feat(web): add workspace guide arrow and matrix thinking spinner (#317)
## Related Issue
N/A
## Problem
Users starting a new session benefit from clear visual guidance showing
the active working directory before sending their initial prompt.
Additionally, the thinking indicator needed a more intentional 4×4
matrix reasoning spinner with configurable animation modes and
responsive sizing.
## What changed
- Added `AgentThinking.vue`: a 4×4 matrix reasoning spinner with five
motion variants (`wave`, `scan`, `orbit`, `twinkle`, `pulse`),
configurable sizes (`sm`, `md`, `lg`), optional label, and
`prefers-reduced-motion` handling.
- Integrated `AgentThinking.vue` into `ThinkingBlock.vue` and
`ActivityRun.vue` for active streaming thinking states.
- Added `WorkspaceGuideArrow.vue`: an SVG curved guide arrow with an
arrowhead and label pointing to the active workspace picker on empty
conversation panes. Centerlines of the arrow stem, tip, and label
precisely match the folder button.
- Added `conversation.workingDirectory` i18n label.
- Added unit tests for `AgentThinking.vue` (11 tests) and
`WorkspaceGuideArrow.vue` (3 tests).
- Added interactive gallery in `DesignSystemView.vue`.
- Rebuilt prebuilt web bundle in `apps/pythinker-code/dist-web` and
verified fingerprint.
- Added changeset for `@pymodel/pythinker-code`.
## Checklist
- [x] I have read the
[CONTRIBUTING](https://github.com/PyModel/pythinker-code/blob/main/CONTRIBUTING.md)
document.
- [ ] I have linked a related issue (external PRs: the issue must have a
maintainer's `/approve`).
- [x] I have added tests that prove my feature works.
- [x] Ran `gen-changesets` skill, or this PR needs no changeset.
- [x] Ran `gen-docs` skill, or this PR needs no doc update.
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit
* **New Features**
* Added a working-directory guide arrow to empty conversations.
* Added animated agent-thinking indicators with multiple motion styles
and sizes.
* Improved thinking visuals during active and streaming responses.
* Added accessibility-friendly reduced-motion behavior.
* **Design**
* Added previews of thinking indicator styles to the design system.
* **Tests**
* Added coverage for thinking indicators and workspace guide arrows.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->1 parent b6f47e0 commit 8b30377
109 files changed
Lines changed: 777 additions & 287 deletions
File tree
- .changeset
- apps
- pythinker-code/dist-web
- assets
- pythinker-web
- scripts
- src
- components
- chat
- ui
- i18n/locales/en
- views
- test
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
3 | | - | |
| 2 | + | |
| 3 | + | |
4 | 4 | | |
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
This file was deleted.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
This file was deleted.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 commit comments