Skip to content

Fix/project focus order - #42

Closed
matej21 wants to merge 3 commits into
mainfrom
fix/project-focus-order
Closed

Fix/project focus order#42
matej21 wants to merge 3 commits into
mainfrom
fix/project-focus-order

Conversation

@matej21

@matej21 matej21 commented Mar 16, 2026

Copy link
Copy Markdown
Member

No description provided.

matej21 and others added 3 commits March 13, 2026 17:09
Worktrees now live in parent's `worktree_ids` instead of `project_order`,
mirroring how folders use `folder.project_ids`. This gives deterministic
ordering, drag-and-drop reordering in the sidebar, and automatic folder
membership when the parent is in a folder.

Migration in `validate_workspace_data` populates `worktree_ids` from
existing `worktree_info` back-references and removes worktrees from
`project_order`.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
When a project is focused, only that project is shown — not its worktree
children. When a worktree is focused, only that worktree is shown — found
through its parent's worktree_ids.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@matej21 matej21 closed this Mar 17, 2026
matej21 added a commit that referenced this pull request Aug 19, 2026
The width guards cannot decide the narrow case: word-wrapping at width W
produces rows no wider than W, and Claude Code's PR line lands the URL row
exactly on W, making it the widest row in the block.

  ● Hotovo — contember/webmaster#567
  (feat/browser-and-edge-worker-sentry) → main, samostatně
  od #566, nepřekrývají se).

A hard wrap breaks a token mid-way — it never starts a new one, so read the
break lexically instead:

  - an opening paren starts a bracketed token, so it is a parenthetical
    after the URL, not the URL's tail;
  - a wholly numeric last segment (`/pull/567`, `/issues/42`) can only
    continue with more digits, or with a delimiter opening the next segment.

The numeric rule covers GitHub PR and issue links without knowing about
GitHub, and still joins a wrap that falls inside the number (`…/pull/56` +
`7`), which an explicit list of complete URL shapes would have had to
special-case anyway.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01RusYtFivQgiGheLoKVcTaK
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.

1 participant