Commit afd313c
authored
fix: refine desktop sidebar and prompt anchor (#212)
## Related Issue
Related to #210
## Problem
The desktop sidebar uses a full update card, the prompt anchor can stay
expanded after navigation, and fixed macOS header spacing can overlap
native window controls. The sidebar also carries obsolete banner assets.
## What changed
- Replaced the sidebar update card with the supplied green update button
between the banner and collapse control
- Added hover and keyboard-focus release notes while keeping the
existing update dialog for download and restart controls
- Redesigned the prompt anchor as compact lines with synchronized hover
previews, exact prompt navigation, and immediate collapse after
selection or pointer exit
- Derived collapsed macOS header spacing from Electron's native
title-bar safe area
- Updated sidebar banner assets, user documentation, changesets, tests,
and the committed web bundle
## Verification
- `pnpm --filter @pymodel/pythinker-web exec vitest run` — 1,002 tests
passed
- `pnpm exec vitest run apps/desktop/tests/window-appearance.spec.ts` —
4 tests passed
- `pnpm lint` — 0 errors
- `pnpm typecheck`
- `npm run build` in `docs/`
- `node apps/pythinker-code/scripts/check-web-assets.mjs`
- Electron development build reviewed with available-update and
prompt-anchor states
## Checklist
- [x] I have read the
[CONTRIBUTING](https://github.com/PyModel/pythinker-code/blob/main/CONTRIBUTING.md)
document.
- [x] 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**
* Conversation navigation now shows compact prompt markers with hover or
focus previews of prompts and responses.
* Available desktop updates appear as a sidebar button with release
notes and update controls.
* macOS desktop window controls and sidebar spacing adapt more
accurately to the title bar.
* **Bug Fixes**
* Improved update-button accessibility, positioning, and release-notes
behavior.
* Added support for additional Python syntax keywords.
* **Documentation**
* Updated desktop update guidance to reflect the new sidebar experience.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->1 parent e4ed37f commit afd313c
112 files changed
Lines changed: 1110 additions & 688 deletions
File tree
- .changeset
- apps
- desktop
- src
- tests
- pythinker-code/dist-web
- assets
- pythinker-web
- src
- components
- chat
- i18n/locales/en
- icons/pythinker
- lib
- test
- docs/guides
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 | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
| 8 | + | |
8 | 9 | | |
9 | 10 | | |
10 | 11 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| 14 | + | |
14 | 15 | | |
15 | 16 | | |
16 | 17 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
3 | | - | |
| 2 | + | |
| 3 | + | |
4 | 4 | | |
Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
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