Skip to content

Commit 8b30377

Browse files
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

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@pymodel/pythinker-code": patch
3+
---
4+
5+
Add a working directory guide arrow to empty conversations and update the agent thinking indicator to a matrix spinner.
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
2-
"sourceHash": "60e31323838a7481743f77ddfb9d3e4ed318a1f3b46e1ebf55cb27305899b535",
3-
"sourceFileCount": 493
2+
"sourceHash": "abf0701dc0d2ab5643a8c9f1150e686a79751dd03233eeb36c3b0a9374a804ab",
3+
"sourceFileCount": 495
44
}

apps/pythinker-code/dist-web/assets/CodeBlockNode-D2UjVO2g.js renamed to apps/pythinker-code/dist-web/assets/CodeBlockNode-hVhvoXzh.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎apps/pythinker-code/dist-web/assets/DesignSystemView-09S55tFy.js‎

Lines changed: 13 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎apps/pythinker-code/dist-web/assets/DesignSystemView-C4wgpNm1.css‎

Lines changed: 0 additions & 1 deletion
This file was deleted.

‎apps/pythinker-code/dist-web/assets/DesignSystemView-Cu4_CkLZ.css‎

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎apps/pythinker-code/dist-web/assets/DesignSystemView-DFqtQ2t2.js‎

Lines changed: 0 additions & 13 deletions
This file was deleted.

apps/pythinker-code/dist-web/assets/Tooltip-UdRZ-hNm.js renamed to apps/pythinker-code/dist-web/assets/Tooltip-B4jZtIDu.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

apps/pythinker-code/dist-web/assets/abnfDiagram-VCTEODGH-C4T3zV4Z.js renamed to apps/pythinker-code/dist-web/assets/abnfDiagram-VCTEODGH-BiFz5hla.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

apps/pythinker-code/dist-web/assets/arc-CIwOoNCK.js renamed to apps/pythinker-code/dist-web/assets/arc-B6XO5_3X.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)