Repository navigation
feat: implement pane resizing functionality with shared components an… - #644
Merged
pikann merged 1 commit intoOct 27, 2026
Conversation
…d localization support
Contributor
There was a problem hiding this comment.
✅ No new issues found.
Reviewed changes — drag-resize for the app sidebar and the Roadmap "Task" column, on a new shared width module and splitter.
lib/pane-width.ts—PaneWidthConfigwithSIDEBAR_PANE/ROADMAP_TASK_PANE, clamping helpers, localStorage read/store (clears the key at the default), andusePaneWidthbacked by a module-level store keyed bystorageKeyso all consumers of a pane share one width.components/shared/pane-resize-handle.tsx— WAI-ARIA window splitter: pointer drag with pointer capture, arrow-key steps, Home/End, Enter or double-click reset to default, optional grip line.- Sidebar —
app-sidebar.tsxrenders the handle on the right edge only when expanded and desktop;_authenticated.tsxdrives--sidebar-widthfrom the pane width and disables the container/gap width transition while dragging. - Roadmap — the sticky task column's width (header, rows, nested rows) now comes from
ROADMAP_TASK_PANE;LEFT_COL_Wis gone and the header carries the handle. - i18n / tests —
paneResize.sidebar/paneResize.taskColumnadded to all 9 locales;pane-width.test.tscovers clamping, defaults, and the storage round-trip.
ℹ️ A second, parallel width implementation still exists for the activity pane
components/shared/activity-pane-width.ts predates this PR and keeps its width in per-component state rather than the new shared store, so the codebase now has two side-by-side width systems that can drift. Nothing here is broken and migrating the activity pane is a reasonable scope boundary for this PR — worth a follow-up so the new "one width per pane" module becomes the single path.
Technical details
# Parallel pane-width implementations
## Affected sites
- `apps/web/src/lib/pane-width.ts:1` — new shared store + `usePaneWidth` (JSDoc: "every consumer of the same pane sees one width").
- `apps/web/src/components/shared/activity-pane-width.ts:1` — older `clampActivityWidth`/`readStoredActivityWidth`/`storeActivityWidth` plus hook-local `useState` in `activity-pane.tsx`.
- `apps/web/src/components/shared/activity-pane.tsx:139` — width held in component state, not the shared store.
## Open questions for the human
- Is migrating the activity pane onto `PaneWidthConfig`/`usePaneWidth` intended as a follow-up, or should the new module's scope be documented as sidebar/roadmap only?deepseek-v4.1-flash (free via Pullfrog for OSS) | 𝕏
pikann
deleted the
feature/implement-pane-resizing-functionality-for-sidebar-and-roadmap
branch
October 27, 2026 06:49
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Summary
Lets users drag-resize the app sidebar and the Roadmap view's task column, addressing #628.
Changes
lib/pane-width.ts): per-pane config (default, min, max, viewport ratio), clamping, localStorage persistence, and ausePaneWidthhook backed by a shared store so every consumer of a pane sees one width.components/shared/pane-resize-handle.tsx): pointer-drag handle following the WAI-ARIA window splitter pattern. Arrow keys resize, Home/End jump to min/max, Enter or double-click resets to default. Optional always-visible grip line.paneResize.sidebar/paneResize.taskColumnadded to all 9 locales.Behavior notes
Not included
Testing
tsc -bandvitest runinapps/webpass; biome is clean.