GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — feat(sidebar): configurable project grouping (port upstream #2055) by tyulyukov · Pull Request #49 · tyulyukov/marcode

Conversation

@tyulyukov

@tyulyukov tyulyukov commented Apr 20, 2026

Copy link
Copy Markdown
Owner

Summary

  • Port upstream feat: configurable project grouping pingdotgg/t3code#2055: adds configurable project grouping modes to the sidebar
    • repository: Group all projects from the same git repository together
    • repository_path: Group only when both repository and repo-relative path match (default)
    • separate: Keep every project path as its own sidebar row
    • Per-project overrides allow fine-grained control over grouping behavior
  • Add projectPaths utility module with path normalization helpers (prerequisite)
  • Extend RepositoryIdentityResolver to track git root paths for each project
  • Support context menu submenus in desktop app for multi-member project actions (rename, grouping, delete)
  • Add UI dialogs for renaming projects and managing grouping overrides
  • Map Claude SDK effort level xhigh → max (SDK compatibility fix)

Testing

  • Unit tests cover path normalization, logical project key derivation, and grouping snapshots
  • Nested workspace resolution tested—correctly resolves to git root from subdirectories
  • Sidebar grouping logic tested with mixed environments and multiple grouping modes
  • Desktop context menu recursion tested with nested submenu structure
  • Browser integration test verifies logical project key persistence across UI state
  • All existing tests updated to use logical project keys

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
tyulyukov and others added 2 commits April 21, 2026 01:36
@tyulyukov @claude
chore(web): port path normalization helpers (prereq for project group…
3dae9e6
…ing)

Extracts normalizeProjectPathForComparison and path regex helpers from
upstream pingdotgg#2024 in isolation, so they're available as a dependency for
the configurable project grouping port (pingdotgg#2055). Adds @marcode/shared/path
subpath export.

Co-Authored-By: Claude Opus 4.7 <[email protected]>
@tlh38 @claude @tyulyukov
feat(sidebar): configurable project grouping (port upstream pingdotgg…
6673ca8
…#2055)

Port upstream t3code pingdotgg#2055 (188a40c) to add three sidebar project
grouping modes (repository, repository_path, separate) plus per-project
overrides via nested context-menu submenus.

MarCode reconciliation:
- Preserved skeleton loading (SidebarProjectsSkeleton) in Sidebar.tsx
- Preserved cross-environment thread fetching via memberProjectRefs
- Kept ThreadStatusIndicators import (from pingdotgg#2107 GitLab MR port)
- Kept Opus 4.7 default effort = "high" in ClaudeProvider
- Kept turn notification wiring, Jira embedded defaults, windowState
  persistence, custom draft-thread system in ChatView

Co-Authored-By: Claude Opus 4.7 <[email protected]>
@github-actions github-actions Bot added the size:XXL label Apr 20, 2026
tyulyukov and others added 3 commits April 21, 2026 13:50
@tyulyukov @claude
fix(sidebar): handle undefined sidebarProjectGroupingOverrides on sta…
c5f4c91
…le settings

readClientSettings() loads client-settings.json as a raw JSON blob without
running the schema decoder, so users with pre-upgrade settings files have no
sidebarProjectGroupingOverrides key. Dereferencing it with bracket access
threw "Cannot read properties of undefined (reading '\${envId}:\${path}')"
and blocked the app from opening.

- resolveProjectGroupingMode: optional-chain the overrides record and fall
  back to DEFAULT_SIDEBAR_PROJECT_GROUPING_MODE when the mode itself is
  missing
- openProjectGroupingDialog: optional-chain the overrides lookup
- Grouping-rule Select "global default" label falls back to the default
  mode when settings.sidebarProjectGroupingMode is missing

Co-Authored-By: Claude Opus 4.7 <[email protected]>
@tyulyukov @claude
fix(sidebar): prefer origin remote and deep-merge persisted client se…
51d1004
…ttings

Forks with both origin and upstream were surfacing the upstream repo name
because pickPrimaryRemote prioritized upstream. Flip the order so a user's
own fork wins, making the canonicalKey consistent with their working tree.

Client settings hydration replaced the default snapshot with raw persisted
JSON, so fields added in later versions (e.g. sidebarProjectGroupingMode)
stayed undefined on upgrade. Deep-merge with DEFAULT_CLIENT_SETTINGS so
missing keys inherit defaults.

Co-Authored-By: Claude Opus 4.7 <[email protected]>
@tyulyukov @claude
fix(orchestration): resolve repositoryIdentity in listing snapshot
fe26093
Pre-existing projects never got grouped in the sidebar because
getListingSnapshot (the Phase 1 bootstrap used to paint the sidebar)
omitted repositoryIdentity. New projects happened to work because
project.created events carry the resolved identity, but rows read at
startup only had whatever the listing snapshot populated — which was
nothing. Mirror the resolver call from getSnapshot so every listed
project has identity and logical-project grouping can key off it.

Co-Authored-By: Claude Opus 4.7 <[email protected]>
@tyulyukov
tyulyukov merged commit fbbfa24 into main Apr 21, 2026
4 of 5 checks passed

Uh oh!

There was an error while loading. Please reload this page.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

size:XXL

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

2 participants

@tyulyukov @tlh38
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.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.