Repository navigation
Fix desktop context menu rendering - #280
krishkalaria12 wants to merge 5 commits into
Conversation
|
@krishkalaria12 is attempting to deploy a commit to the Ping Labs Team on Vercel. A member of the Team first needs to authorize it. |
|
Important Review skippedAuto reviews are disabled on this repository. Please check the settings in the CodeRabbit UI or the ⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Run ID: You can disable this status message by setting the Use the checkbox below for a quick retry:
✨ Finishing Touches🧪 Generate unit tests (beta)
📝 Coding Plan
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment Tip CodeRabbit can generate a title for your PR based on the changes.Add |
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
|
Not sure what happened to the diff but github is now convinced you edited a bunch of stuff you didn't. Rebase on main I guess |
Cleaned it up and dropped the unrelated desktop dev-script change. It was already on top of |
|
@krishkalaria12 pls resolve conflicts / rebase |
917efbc to
424397e
Compare
I have resolved the conflicts,, can you check once ? |
|
it looks mostly out of place on linux window managers, and keeping the styling of the app on the menu would be nice 121859.mp4 |
|
maybe it's just that I'm a sucker for keeping things native but the built in macos picker looks a lot better than the current web one imo. if we're going web only we should use the base-ui one: https://base-ui.com/react/components/context-menu |
Maybe if you want, the changes can be done only for linux and keep the other os as it is ? |
…shimmer, mono font, thumbnails, Tasks, terminal drawer, surface launcher, rail drag, CEF always on Pins #157, pingdotgg#280, pingdotgg#281, pingdotgg#283–pingdotgg#299 from Nick's Annotator, done by the annotations orchestrator's agents: - Conn mark matches neighbouring icon footprint; delegated-task text shows the task title, not node ids. - Message minimap without red ticks, spring tick length, opaque jump pill (pingdotgg#283, pingdotgg#298). - AX labels for markdown blocks; code blocks 13px / 1.625 (pingdotgg#281, pingdotgg#297). - Subagent card: provider mark and model · effort, tighter action row, separator and icon spacing (pingdotgg#296, pingdotgg#295, pingdotgg#280, pingdotgg#290). - Shimmer repaints only the band, at display rate. - JetBrains Mono everywhere (pingdotgg#285; font is OFL). - Image thumbnails in composer and sent messages; timeline behind an opaque composer; composer bottom aligns with the sidebar (pingdotgg#292, pingdotgg#294, pingdotgg#293, pingdotgg#289). - Tasks header stays fixed; AX sweep across panels; no insight top edge (pingdotgg#291, #157). - Thread details card inside the chat card; terminal as a bottom drawer (pingdotgg#284, pingdotgg#287). - Right panel opens on the surface launcher (pingdotgg#299). - Workspace rail drag-to-reorder and right-click Remove workspace (pingdotgg#288). - CEF always on (cef feature removed); DevTools, Inspect, link/image context menu; browser toolbar parity (pingdotgg#286). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…nnotator batch, trimmed to scope (#272) * feat(conn-app): the sidebar takes the keyboard like Conn's: row navigation, menu arrows, ⌘Z undo Every sidebar row (draft rows, thread cards, settled rows, the settled shelf header) is a tab stop with an inset focus ring. ArrowUp/Down, Home/End move between rows without opening them, ArrowRight/Left expand and collapse the shelf or enter and leave it, Enter/Space open, F2 renames, ContextMenu/Shift+F10 open the row's menu (lib/sidebarTree.ts). A row that goes away hands the keyboard to itself, its parent or its place (restoreFocus). The thread and draft menus take the keyboard while open: arrows wrap over enabled actions, Home/End, Right/Enter open Copy, Left/Escape close one level, Enter/Space run, Tab closes and goes on from the row, and the pointer moves the same highlight (contextMenuFallback.ts). Discards stack in one notice ("Discarded, ⌘Z to undo", 5s like Conn) and ⌘Z undoes them, before key bindings so it works in the composer until another key is pressed; terminals, the palette, Settings and the model picker keep their own undo. An undo never overwrites new input. Deleting a thread clears its unsent input once the server took the delete. conn-state adds sidebar_nav (KeyMods, TreeRow, tree_key, tree_step, focused_row, restore_target, row_kind, row_key, is_menu_key, menu_key, menu_step, first_enabled, draft_tree_key, SETTLED_SHELF_ROW) and discard_undo (DiscardUndo, DiscardNotice, is_undo_key, undo_shortcut_applies, UndoShortcutScene and the notice texts). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * feat(conn-app): provider instance editor, project-scoped enablement, provider-unavailable footer and update-required notices Settings > Providers now edits providerInstances the way Conn does: an enable switch, Edit, Delete or Reset, Add provider, display name and accent, the driver's runtime fields and named variables, free-form environment variables, and Enable Antigravity. Each write is one server.updateSettings with a providerInstanceMutation, built in conn-state. The catalog keeps the server's settings: an instance is enabled as providerInstances and the thread's project overrides say, and the Device panel's saved hosts follow settingsUpdated instead of a one-off getConfig. The composer footer offers Open provider settings when no provider is usable, and the picker lists update-required models. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * feat(conn-app): sidebar search takes the arrow keys, ⌘⇧[ / ⌘⇧] walk the threads, and a settle offers Undo Search: while the box has the keyboard, ArrowDown and ArrowUp move a highlight over the results and wrap, Enter opens the highlighted one and ends the search, Escape clears it. The results are one flat list (pinned, active, every settled thread), with a listbox and option roles. The clear button refocuses the box and is named for VoiceOver. Threads: ⌘⇧[ and ⌘⇧] (Conn's thread.previous and thread.next) open the thread above or below in sidebar order, stop at the ends, and skip key repeats. Settle: a settle the server took shows `Settled,` with ⌘Z to undo. The notice groups by kind, and an undo runs thread.unsettle with restoreUnsettledAt, then the pin, active place and snooze the settle cleared. Un-settling, pinning or deleting the thread drops its entry. The logic is in conn-state (search_key, adjacent_thread, traversal_order, plan_settle_undo and the action-aware DiscardUndo); conn-client gains the four command builders the undo needs. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * feat(conn-app): provider models, managed-policy locks, secret references and project scope in Settings Settings → Providers now has Conn's Models section: favorites, the models shown in the picker, their order, and custom models, written with setModelFavorites, setModelsHidden and setProviderModelOrder. The model picker applies them: a Favorites tab, a star per row, favorites first, hidden models left out and the saved order kept. A managed policy locks the config fields and variables it pins and refuses switching on a driver outside allowedDrivers. A variable or secret field can read from a configured 1Password provider through an op:// reference. Turning off the instance text generation runs on resets that selection. The accent is gpui-component's ColorPicker. A new Settings → Projects page opens Providers in a project's scope, where each switch writes that project's override. conn-state gains model_preferences and the policy, secret-reference, text-generation and project-override helpers the iOS app can share. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * feat(conn-state): pure logic for thread jumps, bulk actions, IME-safe search keys and more undo notices Additive, with unit tests: - sidebar_nav: thread_jump_key / jump_target / jump_hint_number / shows_jump_hints (⌘1..⌘9 and their hold hints), search_key_unless_composing, row_click and ThreadSelection (⌘-click, Shift-click), bulk_menu, next_after_settle. - discard_undo: Unpinned, Snoozed and Archived notices, plan_unpin_undo, plan_snooze_undo, plan_archive_undo, undo_failure_text, Unsnooze and Unarchive steps. - shell: ShellState::listed_ancestor (a subagent's row is its parent's). - conn-client: unsnooze_thread and archive_thread command builders. conn-app only learns to send the two new undo steps, so it builds. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * feat(conn-app): sidebar parity with Conn: ⌘1-⌘9 jumps, bulk settle, slim search rows, IME guard, more undo notices - ⌘1..⌘9 open the thread at that place of the ⌘⇧[ / ⌘⇧] walk; holding ⌘ for 200ms shows ⌘N badges on the first nine rows. - ⌘-click and Shift-click pick threads; a right-click on a picked row opens the bulk menu (Unpin, Settle, Regenerate titles, Mark unread, Delete). Bulk settle stacks in one undo notice and moves the open thread to one that is not settling with it. - Search results are Conn's slim, non-tab-stop option rows; the search keys leave a composing input method alone (InputState::marked_text_range). - Unpin offers an Unpinned notice that restores the pin's order key; Snoozed and Archived are ported to the end of the model, with no trigger (Snooze and Archive are dropped from the sidebar). - Search focus ring, project favicon on the filter button, scope widening and scroll on opening a hidden thread, file drop onto rows, a subagent keeps its parent's row. - docs/parity/shell-sidebar.md updated. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * feat(conn-app): Settings → Secrets: add, edit and remove 1Password providers, and Check a saved reference A new Secrets page lists the environment's secret providers with a masked account, and Add, Edit and Remove. Remove names every setting that reads from the provider and will be unset. The form follows Conn's validation: the name (64 characters, id slugged from it and kept on edit) and the 1Password account. A saved secret reference in the provider editor gets Conn's Check button (server.checkSecretSource) where the server advertises secretSourceCheck. conn-state gains secret_providers (classify, draft validation, set and remove requests, uses of a provider, the redacted account stand-in, check request and outcome) and ServerConfigState reads secretProviderSettings, secretReferences, secretSourceCheck and projectOrganization. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * feat(conn-state): pure logic for sidebar drag, order keys, settled paging, delegation and message search Order keys (`pinOrderKey`, `activeOrderKey`): between, spread, reorder plans, and the pinned and active sorts. Drag: drop targets, plans, projection, collision detection, optimistic drops and the action sweep. The shell keeps the snapshot's older-settled cut and the pages read below it, hides tasks shown under their parent, lists forks, resolves a listed ancestor through delegation and rolls a subagent's or side chat's request up to its parent. The settled shelf's paging and saved state, and message search ranking, shown order and snippet highlights. conn-client gets the `thread.pin.reorder` builder. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * feat(conn-app): rename a custom model and set its options in Settings → Providers → Models A custom model's pencil opens Conn's CustomModelEditor under its row: display name, the options the composer shows (a driver's known ids or custom ones, Choices or Toggle, choices with a default), Copy from a built-in model, and Conn's save checks. Save rewrites only that entry of config.customModels. conn-state gains custom_model_editor (the draft, driver presets, validation and the stored entry) and model_preferences::{custom_model_raw, with_custom_model_replaced}. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(conn-app): Conn MCP tool calls show a friendly label and the Conn icon after the conn rename Tool rows titled mcp__conn__conn_thread_send showed the raw name. The name-to-label and name-to-icon table now lives in conn-state (conn_tools), mirrors web's T3_MCP_TOOLS display names and icons, and resolves every provider spelling plus the pre-rename t3-code and t3_ forms, so iOS can share it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * refactor(conn-gpui): drop snooze and archive undo (scope §2 #9) The sidebar keeps settle and unpin. Snooze and archive are cut, so their undo notices, plans and commands go: UndoAction::{Snoozed, Archived}, plan_snooze_undo, plan_archive_undo, SettleUndoStep::{Unsnooze, Unarchive}, and conn-client's unsnooze_thread and archive_thread. An undone settle or unpin still restores a snooze another client set, so snooze_thread and SettleUndoStep::Snooze stay. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * refactor(conn-gpui): drop Settings → Secrets and 1Password references (scope §2 #5) Scope keeps Vaultwarden as Conn's only secret store. This removes the Secrets page from ad6d8d8834, the provider editor's Value / 1Password source picker, its op:// validation and the Check button (server.checkSecretSource). conn-state loses the secret_providers module, the secret-reference helpers in provider_settings, and ServerConfigState's secretProviderSettings, secretReferences, secretSourceCheck and projectOrganization flags. A variable another client saved as a reference keeps it unless the user retypes or removes it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * feat(conn-state): paging counts, held-row layout and a sturdier shown order for the sidebar The Settled shelf can read its rows without starting a scope (count_in). A drop keeps the destination in the order it made (order_by_preferred), the list's extents and the Pinned label's room come from the rows' painted extents (item_extents, boundary_label_extent, min_held_center), a shown order with no limit no longer overflows, the shell lists every settled thread it holds apart from the ones the shelf may list (all_settled_threads), and a shell can be built from its parts for fixtures (from_parts). The jump to a request a subagent makes counts as the thread's own in its activity. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * feat(conn-app): sidebar drag, sweep, shelf paging and saved state, message search and subagent rollup Pressing a row and moving 6px holds it: the list shows where it would land (Pinned and Active labels, dashed placeholders, the Settled header, a verb badge), and a drop pins, unpins, settles, un-settles or reorders it, kept on screen until the shell shows it through. Dragging from a Settle or Un-settle button sweeps the rows between. The Settled shelf shows ten rows, `Show N more` adds a page and reads older settled threads, and its open state is saved. A query with a word of three letters or more searches messages through orchestration.searchThreads, listing the threads it finds under the title matches with the message. A subagent's request shows on its parent's row, and a task shown under its parent has no row. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * refactor(conn-gpui): drop managed-policy locks from Settings → Providers Scope has one user with flat, Orbit-synced settings (§2 #1, #13) and no organization policy, and the Conn Server never sends managedPolicy. The locks from 279d54fb59 only served that enterprise policy, so they go: locked fields and variables, the disallowed-driver switch and the Add provider filter. conn-state loses InstanceLocks, managed_instance_locks, is_managed_driver_allowed, disallowed_provider_message, managed_enable_denial, can_add_provider and ServerConfigState::managed_policy. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix: clippy clones in the sidebar gesture code, and the ffi fixture's child is a real subagent conn-state lists a thread as a subagent by its relationship to its parent, as Conn does, so the iOS snapshot test's child thread now says so. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * refactor(conn-gpui): drop per-project provider switches (scope §2 #13, §5.1) Settings are flat and Orbit owns Projects, so a project no longer turns providers on or off. Settings → Projects loses its Providers hop, the Providers page its project scope (Project / Device line and Use device setting), and the composer reads one catalog for every project. conn-state: resolve_project_instance_enabled becomes settings_instance_enabled (no project), catalog_for_project becomes the private build_catalog, and override_patch, project_override and project_overrides go. The Projects page here is a bare list; the per-project scripts and worktree default land on it separately. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(conn-app): the launch connection loads the provider catalog The composer's provider and model picker stayed empty after launch. #258 moved the catalog onto subscribeServerConfig, but only a server switch subscribed to it; the connection ConnApp opens at launch never did. Both paths now open their connection through one start_connection helper that subscribes to the shell, the server config and panel requests. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * feat(conn-app): Settings → Projects → a project's actions and workspace default docs/scope.md §2 #13 keeps two per-project overrides: scripts and the worktree default. §5.1 gives the rest of Conn's project page (name, icon, pin, archive, checkouts, removal) to Orbit, so none of that is ported. Per-project provider switches are already dropped. Settings → Projects lists each project with what it sets itself and a `Settings of <project>` button. The project's page has: - New threads → Workspace: Current checkout or New worktree, read from the project's `projectSettingsOverrides` entry, else the device setting, with `Use device setting`. - Actions: list, Add action, Edit, Delete action (asks first), `Use device actions`, and `Import scripts` from the checkout's t3.json (read with projects.readFile). The form checks `Name is required.` and `Command is required.`, gives new actions an id from their name, and a setup or settle action takes that role from the others. Every write is one server.updateSettings patch of projectSettingsOverrides, built in conn-state `project_settings` with unit tests. Drift from Conn: the form is a section of the page, has no Keybinding field (GPUI neither shows nor runs the server's keybindings), and the workspace choice is two buttons. Also fixes three clippy findings in the custom model editor (models.rs). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * refactor(conn-gpui): keep only Antigravity's credential check from provider sign-in Providers run through the Orbit AI router (scope §2 #3, #4), so the browser, device-code, callback-URL and credential-form sign-in flows, the method choice, Open docs and Sign out go, along with the Cursor account row. What stays is Antigravity's check of the API key its settings hold (ideally the router key with GOOGLE_GEMINI_BASE_URL on the router): Connect / Retry connection / Check again, Cancel, its progress and its failure, over the Conn Server's provider.auth.start, cancel and subscribe (#266). Open provider setup now shows for Antigravity only. conn-state provider_auth loses AuthInteraction, CredentialField, AuthMethod, is_web_url and plain_terminal_output; AuthFlow keeps instance_id, phase, flow_id and message; AuthPanel becomes the credential-check view (connected, connect_label, connect_enabled) and offers_credential_check is new. ProviderGroup loses documentation_url, auth_email and can_logout, and has_setup is Antigravity only. Also formats two lines from the snooze removal. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * test(conn-app): Settings → Providers offers only Antigravity's credential check Antigravity on an API-key method shows Connect and none of the removed sign-in controls; Codex shows no account row. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(conn-app): sidebar gesture tests pass: Escape lets go, a held row shows over a closed shelf Escape is taken in the keystroke interceptor, where the thread menu and the search box take theirs. The held row sits in the Settled shelf while it would settle there, open or closed. The sidebar's new labels, header and footer show in headless tests, the shelf tests read the sidebar's rows (the list scrolls), a subagent in a test says it is one, and the question banner test presses the open thread's own jump key (the rows are sorted by their order keys now, so the second row is not the open thread). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(conn-app): the pointer-release listener takes the window handle it is the last to use Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * fix(conn-state): reconcile module exports with main Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * feat(conn-app): Annotator batch — icons, minimap, AX, subagent card, shimmer, mono font, thumbnails, Tasks, terminal drawer, surface launcher, rail drag, CEF always on Pins #157, pingdotgg#280, pingdotgg#281, pingdotgg#283–pingdotgg#299 from Nick's Annotator, done by the annotations orchestrator's agents: - Conn mark matches neighbouring icon footprint; delegated-task text shows the task title, not node ids. - Message minimap without red ticks, spring tick length, opaque jump pill (pingdotgg#283, pingdotgg#298). - AX labels for markdown blocks; code blocks 13px / 1.625 (pingdotgg#281, pingdotgg#297). - Subagent card: provider mark and model · effort, tighter action row, separator and icon spacing (pingdotgg#296, pingdotgg#295, pingdotgg#280, pingdotgg#290). - Shimmer repaints only the band, at display rate. - JetBrains Mono everywhere (pingdotgg#285; font is OFL). - Image thumbnails in composer and sent messages; timeline behind an opaque composer; composer bottom aligns with the sidebar (pingdotgg#292, pingdotgg#294, pingdotgg#293, pingdotgg#289). - Tasks header stays fixed; AX sweep across panels; no insight top edge (pingdotgg#291, #157). - Thread details card inside the chat card; terminal as a bottom drawer (pingdotgg#284, pingdotgg#287). - Right panel opens on the surface launcher (pingdotgg#299). - Workspace rail drag-to-reorder and right-click Remove workspace (pingdotgg#288). - CEF always on (cef feature removed); DevTools, Inspect, link/image context menu; browser toolbar parity (pingdotgg#286). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * style(conn-gpui): rustfmt the annotations batch and drop a redundant clone Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>


Deletecontextmenupropagation on sidebar rows and fix the desktop dev script sobun run dev:desktopreliably starts both the bundle watcher and ElectronNote
Replace native Electron context menus with in-app context menus in the desktop sidebar
desktop:context-menuIPC channel, theshowContextMenubridge method, andcontextMenu.showfromNativeApi, replacing all native/Electron menu rendering with a React-based implementation.context-menu.tsxcomponent backed by@base-ui/react/context-menu, used directly inSidebar.tsx.contextMenuFallback.tspreviously used in non-Electron environments.window.desktopBridge.showContextMenuandnativeApi.contextMenu.showno longer exist; any external callers will getundefined.Macroscope summarized dbe4965.