GeezerVison is showing github.com — feat(connect): polish sign-in steps, resize large dialogs, add unpaid… · anomalyco/opencode-rune@1b37bcc
File treeExpand file treeCollapse file tree Open diff view settings opencode-i18n/locales/official
Expand file treeCollapse file tree Open diff view settings Collapse file Copy file name to clipboardExpand all lines: AGENTS.md +1-1Lines changed: 1 addition & 1 deletion - Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|
@@ -31,7 +31,7 @@ Application code only. This repo has no automated tests of any kind, and none ge | 31 | 31 | - `scripts/arch-check.sh`: enforces resolved transitive downward crate layers and zero cycles (`cargo metadata`), zero cross-feature deps, core-crate isolation (temporary exceptions in `scripts/arch-check-exceptions.txt`), core/feature `#![forbid(unsafe_code)]` (including `opencode-platform`), `<= 10` root `.rs` files in `apps/desktop/src/`, `struct App` `<= 94` effective fields (counting through `shell/app_state.rs` and any `Tracked` wrappers), `apps/web` depending directly on `opencode-desktop` with zero duplicated `features/*` deps, zero automated tests (`#[test]`, `#[cfg(...test...)]`, `tests.rs`, `*_tests.rs`, `*_test.rs`, `tests/`), hard `<= 800`-line cap in `apps/desktop/`, `features/`, and hand-written workspace `crates/`, zero `use crate::*;` wildcards in `apps/desktop/src/`, `opencode-feature-*` naming, workspace manifest completeness, a single `anomalyco/rune` rev pin, and `--!strict` built-in Luau plugins. | 32 | 32 | - `scripts/file-size.sh`: repo-wide line-count monitor and 1,500-line ratchet across every tracked `.rs` file under `apps/`, `crates/`, and `features/` (including `apps/web/`, `apps/installer/`, `apps/browser-engine/`, `crates/browser-pane/`, and generated files outside `arch-check.sh` Rule 8); warns `> 800`, errors `> 1500` unless ratcheted in `scripts/file-size-exceptions.txt`. | 33 | 33 | - `scripts/folder-shape.sh`: enforces prefix-family subfolders and folder breadth (`> 40` warn, `> 60` error). | 34 | | - - `scripts/dialog-size.sh`: every dialog takes an `opencode_ui::dialog::DialogSize` preset (re-exported as `session_view::dialog::DialogSize`; `Normal` 480 × 368, `Large` 720 × 600, `XLarge` 880 × 680; `opencode_ui::widgets::{sized, sized_modal}`, re-exported as `crate::widgets` in `apps/desktop`), never its own width or height. | | 34 | + - `scripts/dialog-size.sh`: every dialog takes an `opencode_ui::dialog::DialogSize` preset (re-exported as `session_view::dialog::DialogSize`; `Normal` 480 × 368, `Large` 680 × 600, `XLarge` 880 × 680; `opencode_ui::widgets::{sized, sized_modal}`, re-exported as `crate::widgets` in `apps/desktop`), never its own width or height. | 35 | 35 | - `scripts/tables-check.sh`: checks `apps/desktop/src/stories/order.rs` against `STORY_LIST`, `apps/desktop/src/shell/commands/order.rs` against registered built-in commands, `crates/opencode-i18n/locales/rune/*.json` coverage and unknown keys against `en.json`, and `cargo run -q -p opencode-plugin-spec -- --check` against `contract.json`. | 36 | 36 | - **Slow / compile checks (run separately):** | 37 | 37 | - `scripts/clippy.sh`: zero clippy diagnostics (`-D warnings`) across the workspace and each feature set that compiles different code. | |
Collapse file Copy file name to clipboardExpand all lines: ARCHITECTURE.md +1-1Lines changed: 1 addition & 1 deletion - Display the source diff
- Display the rich diff
| Original file line number | Diff line number | Diff line change |
|---|
@@ -293,7 +293,7 @@ pwsh scripts/guardrails.ps1 # Windows PowerShell | 293 | 293 |
| 294 | 294 | - **`scripts/file-size.sh`:** repo-wide line-count monitor and 1,500-line ratchet across every tracked `.rs` file under `apps/`, `crates/`, and `features/` — including files excluded from `scripts/arch-check.sh` Rule 8 (`apps/web/`, `apps/installer/`, `apps/browser-engine/`, `crates/browser-pane/`, and `crates/opencode-plugin-spec/src/generated/`). Warns above `800` lines and errors above `1500` unless listed in `scripts/file-size-exceptions.txt` (ceilings only go down; currently empty). `scripts/arch-check.sh` Rule 8 enforces the stricter `<= 800` hard cap (no exceptions) on `apps/desktop/`, `features/`, and hand-written workspace `crates/`. | 295 | 295 | - **`scripts/folder-shape.sh`:** checks tracked `.rs`, `.ts`, `.tsx`, and `.swift` sources (skipping generated/vendored/test files and Rust `examples/`, `benches/`, `bin/`). Errors on prefix families (`x.rs` or `x/` plus 2+ `x_*.rs` siblings, or 3+ `x_*.rs` alone; move into `x/`) and flags folder breadth (`> 40` files warn, `> 60` error) unless listed in `scripts/folder-shape-exceptions.txt` (currently empty). | 296 | | -- **`scripts/dialog-size.sh`:** scans every tracked `.rs` file under `apps/`, `crates/`, and `features/` containing `role("dialog")` or `role("alertdialog")` (except `crates/opencode-ui/src/dialog.rs`) and errors on dialog-scale literals (`>= 380`) passed to `.w`/`.h`/`.max_w`/`.max_h` or `W`/`H`/`WIDTH`/`HEIGHT` consts, and on window-derived dimensions, unless marked `// dialog-size: ok`. Every dialog must take an `opencode_ui::dialog::DialogSize` preset (`Normal` 480 × 368, `Large` 720 × 600, `XLarge` 880 × 680). | | 296 | +- **`scripts/dialog-size.sh`:** scans every tracked `.rs` file under `apps/`, `crates/`, and `features/` containing `role("dialog")` or `role("alertdialog")` (except `crates/opencode-ui/src/dialog.rs`) and errors on dialog-scale literals (`>= 380`) passed to `.w`/`.h`/`.max_w`/`.max_h` or `W`/`H`/`WIDTH`/`HEIGHT` consts, and on window-derived dimensions, unless marked `// dialog-size: ok`. Every dialog must take an `opencode_ui::dialog::DialogSize` preset (`Normal` 480 × 368, `Large` 680 × 600, `XLarge` 880 × 680). | 297 | 297 | - **`scripts/tables-check.sh`:** verifies hand-maintained tables and generated bindings: | 298 | 298 | - `apps/desktop/src/stories/order.rs` matches every story registered in `STORY_LIST` (no duplicates, stale entries, or unordered stories). | 299 | 299 | - `apps/desktop/src/shell/commands/order.rs` assigns a unique order constant to every registered built-in `CommandEntry` (no raw literals, duplicate values, shared slots, unused constants, or duplicate command IDs). | |
Collapse file Copy file name to clipboardExpand all lines: apps/desktop/src/dialogs/connect.rs +115Lines changed: 115 additions & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -77,6 +77,39 @@ impl ConnectHost for App { | 77 | 77 | self.change_settings(|x| x.chatgpt_welcome_seen = true); | 78 | 78 | } | 79 | 79 |
| | 80 | + fn chatgpt_usage_limit_seen_at(&self) -> Option<i64> { | | 81 | + crate::storage::json("opencode.global.dat", "chatgpt-usage-limit") | | 82 | + .and_then(|v| v["lastSeenAt"].as_i64()) | | 83 | + } | | 84 | + | | 85 | + fn mark_chatgpt_usage_limit_seen(&mut self, at_ms: i64) { | | 86 | + if self.persists() { | | 87 | + crate::storage::set_json( | | 88 | + "opencode.global.dat", | | 89 | + "chatgpt-usage-limit", | | 90 | + &serde_json::json!({ "lastSeenAt": at_ms }), | | 91 | + ); | | 92 | + } | | 93 | + } | | 94 | + | | 95 | + fn current_model_key(&self) -> Option<String> { | | 96 | + let m = self.selection().model; | | 97 | + (!m.id.is_empty()).then(|| format!("{}:{}", m.provider, m.id)) | | 98 | + } | | 99 | + | | 100 | + fn select_free_model(&mut self, provider: &str, id: &str, _tx: &mut Tx) { | | 101 | + let key = format!("{provider}:{id}"); | | 102 | + let scope = crate::pickers::PickerHost::picker_scope(self); | | 103 | + let mut selection = self.selection(); | | 104 | + selection.model = opencode_kit::model::ModelRef { | | 105 | + id: id.to_owned(), | | 106 | + provider: provider.to_owned(), | | 107 | + variant: String::new(), | | 108 | + }; | | 109 | + self.composer_ext.pickers.prefs.picked(&key); | | 110 | + self.composer_ext.pickers.selections.insert(scope, selection); | | 111 | + } | | 112 | + | 80 | 113 | fn models(&self) -> &[Model] { | 81 | 114 | &self.composer_ext.pickers.models | 82 | 115 | } | @@ -190,6 +223,21 @@ impl App { | 190 | 223 | } | 191 | 224 | } | 192 | 225 |
| | 226 | +/// Handles `session.step.failed` ChatGPT usage-limit errors (`usage-exceeded-dialogs.tsx:145-154`, | | 227 | +/// `#64926`): opens the personal dialog for `provider.chatgpt-limit` (including older servers) and | | 228 | +/// the Business workspace-admin variant for `provider.chatgpt-workspace-limit`. | | 229 | +pub(crate) fn on_step_failed(s: &mut App, data: &Value) -> bool { | | 230 | + if s.settings_open() || !s.kernel.overlays.is_empty() { | | 231 | + return false; | | 232 | + } | | 233 | + let workspace = match data["error"]["type"].as_str() { | | 234 | + Some("provider.chatgpt-limit") => false, | | 235 | + Some("provider.chatgpt-workspace-limit") => true, | | 236 | + _ => return false, | | 237 | + }; | | 238 | + usage_limit::open(s, workspace, &mut Tx::default()) | | 239 | +} | | 240 | + | 193 | 241 | /// Kernel feature registration for the Connect provider and ChatGPT plan welcome dialogs. | 194 | 242 | pub struct ConnectFeature; | 195 | 243 |
| @@ -232,6 +280,24 @@ impl Feature<App> for ConnectFeature { | 232 | 280 | .above(OVERLAY_ID) | 233 | 281 | .with_dismiss(|s, tx| welcome::close(s, tx)), | 234 | 282 | ); | | 283 | + builder.register_overlay( | | 284 | + OverlayRegistration::<App>::new(USAGE_LIMIT_OVERLAY_ID) | | 285 | + .with_render(crate::overlays::layer::DIALOG, |s, cx| { | | 286 | + let p = crate::palette::pal(s.dark(cx)); | | 287 | + usage_limit::layer(s, p, cx) | | 288 | + }) | | 289 | + .above(WELCOME_OVERLAY_ID) | | 290 | + .with_dismiss(|s, tx| usage_limit::close(s, tx)), | | 291 | + ); | | 292 | + builder.register_overlay( | | 293 | + OverlayRegistration::<App>::new(UNPAID_OVERLAY_ID) | | 294 | + .with_render(crate::overlays::layer::DIALOG, |s, cx| { | | 295 | + let p = crate::palette::pal(s.dark(cx)); | | 296 | + unpaid::layer(s, p, cx) | | 297 | + }) | | 298 | + .above(USAGE_LIMIT_OVERLAY_ID) | | 299 | + .with_dismiss(|s, tx| unpaid::close(s, tx)), | | 300 | + ); | 235 | 301 | } | 236 | 302 | } | 237 | 303 |
| @@ -310,5 +376,54 @@ mod scenes { | 310 | 376 | connect(State::Waiting(sel(method.clone()), Signin::Browser { method, auth, failed: false, paste: Paste::Unsupported })), | 311 | 377 | ); | 312 | 378 | }), | | 379 | + ("chatgpt-usage-limit", |s| { | | 380 | + crate::scenes::open_scene(s); | | 381 | + super::usage_limit::preview(s, false, super::CopyStatus::Idle); | | 382 | + }), | | 383 | + ("chatgpt-workspace-usage-limit", |s| { | | 384 | + crate::scenes::open_scene(s); | | 385 | + super::usage_limit::preview(s, true, super::CopyStatus::Idle); | | 386 | + }), | | 387 | + ("chatgpt-workspace-usage-limit-copied", |s| { | | 388 | + crate::scenes::open_scene(s); | | 389 | + super::usage_limit::preview(s, true, super::CopyStatus::Copied); | | 390 | + }), | | 391 | + ("chatgpt-workspace-usage-limit-failed", |s| { | | 392 | + crate::scenes::open_scene(s); | | 393 | + super::usage_limit::preview(s, true, super::CopyStatus::Failed); | | 394 | + }), | | 395 | + ("unpaid-models", |s| { | | 396 | + crate::scenes::open_scene(s); | | 397 | + s.composer_ext.pickers.provider_order = vec!["opencode".into()]; | | 398 | + s.composer_ext.pickers.models = vec![ | | 399 | + crate::pickers::Model { | | 400 | + key: "opencode:big-pickle".into(), | | 401 | + id: "big-pickle".into(), | | 402 | + provider: "opencode".into(), | | 403 | + group: "OpenCode".into(), | | 404 | + name: "Big Pickle (free)".into(), | | 405 | + variants: Vec::new(), | | 406 | + hidden: false, | | 407 | + free: true, | | 408 | + latest: true, | | 409 | + inputs: Default::default(), | | 410 | + tools: true, | | 411 | + }, | | 412 | + crate::pickers::Model { | | 413 | + key: "opencode:minimax-free".into(), | | 414 | + id: "minimax-free".into(), | | 415 | + provider: "opencode".into(), | | 416 | + group: "OpenCode".into(), | | 417 | + name: "MiniMax M2.5 Free".into(), | | 418 | + variants: Vec::new(), | | 419 | + hidden: false, | | 420 | + free: true, | | 421 | + latest: false, | | 422 | + inputs: Default::default(), | | 423 | + tools: true, | | 424 | + }, | | 425 | + ]; | | 426 | + super::unpaid::preview(s); | | 427 | + }), | 313 | 428 | ]); | 314 | 429 | } |
Collapse file Copy file name to clipboardExpand all lines: apps/desktop/src/session/composer/pickers/mod.rs +4Lines changed: 4 additions & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -66,6 +66,10 @@ impl PickerHost for App { | 66 | 66 | self.open_connect(None, false, tx); | 67 | 67 | } | 68 | 68 | } | | 69 | + fn picker_open_unpaid(&mut self, tx: &mut Tx) -> bool { | | 70 | + crate::connect::unpaid::open(self, tx); | | 71 | + true | | 72 | + } | 69 | 73 | fn picker_projects(&self) -> Vec<Item> { | 70 | 74 | self.projects.iter().map(|p| Item::new(p.id.clone(), p.name.clone())) | 71 | 75 | .chain(std::iter::once(Item::new(ADD_PROJECT_KEY, opencode_i18n::t!("session.new.project.add")))) | |
Collapse file Copy file name to clipboardExpand all lines: apps/desktop/src/session/events/mod.rs +3Lines changed: 3 additions & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -482,6 +482,9 @@ impl App { | 482 | 482 | changed |= done.transcript && self.shows_transcript(&sid); | 483 | 483 | if ty == "session.step.failed" { | 484 | 484 | changed |= crate::free_limit::on_step_failed(self, data); | | 485 | + if matches!(&*self.route, Route::Session { id, .. } if id == &sid) { | | 486 | + changed |= crate::connect::on_step_failed(self, data); | | 487 | + } | 485 | 488 | } | 486 | 489 | if ty.starts_with("session.") && !sid.is_empty() { | 487 | 490 | // A step started in the open session may follow a prompt we haven't seen. | |
Collapse file Copy file name to clipboardExpand all lines: crates/opencode-i18n/locales/official/en.json +5Lines changed: 5 additions & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
| 840 | 840 | "provider.connect.breadcrumb.label": "Connect steps", | 841 | 841 | "provider.connect.breadcrumb.root": "Connect", | 842 | 842 | "provider.connect.chatgptUsageLimit.close": "Close", | | 843 | + "provider.connect.chatgptUsageLimit.copyRequest": "Copy request for admin", | 843 | 844 | "provider.connect.chatgptUsageLimit.description": "Check your usage and limits in ChatGPT settings.", | 844 | 845 | "provider.connect.chatgptUsageLimit.manage": "Manage usage", | | 846 | + "provider.connect.chatgptUsageLimit.request": "I've reached the limit for using my ChatGPT plan in OpenCode. Could you increase our workspace's usage limits so I can continue?\n\nGo to admin.openai.com → Workspace → Usage limits. Thank you!", | | 847 | + "provider.connect.chatgptUsageLimit.requestCopied": "Request copied. Send it to your workspace admin.", | | 848 | + "provider.connect.chatgptUsageLimit.requestCopyFailed": "Couldn't copy. Send this to your workspace admin:", | 845 | 849 | "provider.connect.chatgptUsageLimit.title": "ChatGPT usage limit reached", | | 850 | + "provider.connect.chatgptUsageLimit.workspaceDescription": "You've reached your workspace's limit for using your ChatGPT plan in other apps. Copy a message below to ask your workspace admin for increased usage limits.", | 846 | 851 | "provider.connect.chatgptWelcome.confirm": "Got it", | 847 | 852 | "provider.connect.chatgptWelcome.description": "Eligible requests in OpenCode can use your ChatGPT plan.", | 848 | 853 | "provider.connect.chatgptWelcome.title": "ChatGPT connected", | |
Collapse file Copy file name to clipboardExpand all lines: crates/opencode-ui/src/dialog.rs +3-3Lines changed: 3 additions & 3 deletions | Original file line number | Diff line number | Diff line change |
|---|
| 1 | 1 | //! Desktop's three dialog sizes (`overlays/dialog/dialog.css`, `dialog.tsx`; anomalyco/opencode | 2 | | -//! #63432, #64206). Every dialog takes one; none sets its own width or height (`scripts/dialog-size.sh`). | | 2 | +//! #63432, #64206, #64882). Every dialog takes one; none sets its own width or height (`scripts/dialog-size.sh`). | 3 | 3 | //! | 4 | 4 | //! - `Normal`: 480 wide, 368 tall, for confirmations, sign-ins and small forms. | 5 | | -//! - `Large`: 720 × 600, for palettes, pickers and lists. | | 5 | +//! - `Large`: 680 × 600, for palettes, pickers and lists. | 6 | 6 | //! - `XLarge`: 880 × 680, for long documents and settings-like panels. | 7 | 7 | //! | 8 | 8 | //! Each clamps to the window. A dialog that fits its content grows up to its size's height; a | @@ -22,7 +22,7 @@ impl DialogSize { | 22 | 22 | pub fn width(self, win_w: f32) -> f32 { | 23 | 23 | let w = match self { | 24 | 24 | DialogSize::Normal => 480.0, | 25 | | - DialogSize::Large => 720.0, | | 25 | + DialogSize::Large => 680.0, | 26 | 26 | DialogSize::XLarge => 880.0, | 27 | 27 | }; | 28 | 28 | (win_w - 32.0).min(w).max(0.0) | |
Collapse file Copy file name to clipboardExpand all lines: crates/session-view/src/pickers/host.rs +12Lines changed: 12 additions & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -54,6 +54,11 @@ pub trait PickerHost: ComposerHost { | 54 | 54 | } | 55 | 55 | /// Connect was pressed; the list has closed. | 56 | 56 | fn picker_model_action(&mut self, _action: ModelAction, _tx: &mut Tx) {} | | 57 | + /// Opens the unpaid free-model dialog (`DialogSelectModelUnpaid`, `#64927`) when no paid | | 58 | + /// provider is connected; returns `true` when the host handled the open. | | 59 | + fn picker_open_unpaid(&mut self, _tx: &mut Tx) -> bool { | | 60 | + false | | 61 | + } | 57 | 62 |
| 58 | 63 | /// A provider's mark beside its name in the narrow window's model drawer. | 59 | 64 | fn picker_provider_mark(&self, _p: &Pal, _provider: &str) -> Option<El> { | @@ -223,6 +228,13 @@ pub trait PickerHost: ComposerHost { | 223 | 228 |
| 224 | 229 | fn open_picker_with(&mut self, kind: Kind, gesture: menu::Gesture, tx: &mut Tx) { | 225 | 230 | let opening_model = kind == Kind::Model && self.pickers().open() != Some(Kind::Model); | | 231 | + if opening_model | | 232 | + && !self.pickers().has_paid_provider() | | 233 | + && self.pickers().models.iter().any(|m| m.free) | | 234 | + && self.picker_open_unpaid(tx) | | 235 | + { | | 236 | + return; | | 237 | + } | 226 | 238 | let item_keys: Vec<String> = self.picker_items_for(kind).into_iter().map(|i| i.key).collect(); | 227 | 239 | let pk = self.pickers_mut(); | 228 | 240 | let eff = menu::step(&mut pk.menu, menu::Event::Open { kind, gesture, items: &item_keys }); | |
Collapse file Copy file name to clipboardExpand all lines: crates/session-view/src/pickers/manage.rs +12-11Lines changed: 12 additions & 11 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -18,10 +18,10 @@ pub struct Manage { | 18 | 18 | pub collapsed: HashSet<String>, | 19 | 19 | } | 20 | 20 |
| 21 | | -/// `dialog-title` and `dialog-description` as the settings dialog sets them: 13 on 20 at 440 | 22 | | -/// in `text-base`, 12 on 20 muted. | | 21 | +/// `dialog-title` and `dialog-description` as `.search-dialog` sets them (`shell/search-list.css`, | | 22 | +/// `#64882`): 13 on 20 at 440 in `text-base`, the description muted. | 23 | 23 | const TITLE: TextStyle = TextStyle::new(13.0, 440.0).lh(20.0).tracking(-0.04); | 24 | | -const DESCRIPTION: TextStyle = TextStyle::new(12.0, 440.0).lh(20.0).tracking(-0.04); | | 24 | +const DESCRIPTION: TextStyle = TextStyle::new(13.0, 440.0).lh(20.0).tracking(-0.04); | 25 | 25 |
| 26 | 26 | impl super::Pickers { | 27 | 27 | /// Opens Manage models with an empty search, its field taking the keys. | @@ -83,13 +83,13 @@ pub fn layer<S: PickerHost>(s: &S, p: &Pal) -> Vec<El> { | 83 | 83 | s.pickers_mut().close_manage(); | 84 | 84 | true | 85 | 85 | }); | 86 | | - // `manage-models-search`: 6 pt in, a 28 pt field with its glass 8 pt in and the query 8 pt | 87 | | - // after it; a hairline across the dialog under it. | 88 | | - let search_row = col().key("manage-models-search").w_full().px(6.0) | 89 | | - .child(row().key("field").h(28.0).w_full().pl(8.0).pr(8.0).gap(8.0).center_y() | | 86 | + // `manage-models-search` (`providers/models/manage.css`, `#64882`): 8 pt in, a 32 pt field | | 87 | + // with its glass 8 pt in and the query 8 pt after it; a full-width hairline 8 pt below. | | 88 | + let search_row = col().key("manage-models-search").w_full().px(8.0) | | 89 | + .child(row().key("field").h(32.0).w_full().pl(8.0).pr(8.0).gap(8.0).center_y() | 90 | 90 | .child(icon(&ic::MAGNIFYING_GLASS, 16.0).color(p.icon_muted)) | 91 | 91 | .child(field)); | 92 | | - let hairline = el().key("manage-models-rule").w_full().h(0.5).mt(6.0).fill(p.border_muted); | | 92 | + let hairline = el().key("manage-models-rule").w_full().h(0.5).mt(8.0).fill(p.border_muted); | 93 | 93 |
| 94 | 94 | let mut body = col().key("manage-models-list").w_full().padding(8.0).gap(8.0); | 95 | 95 | if groups.is_empty() { | @@ -128,9 +128,9 @@ pub fn layer<S: PickerHost>(s: &S, p: &Pal) -> Vec<El> { | 128 | 128 | .transition(Transition::none()) | 129 | 129 | .motion(rune::Spring::NONE) | 130 | 130 | .modal(true, |s: &mut S| s.pickers_mut().close_manage()) | 131 | | - // `dialog-header`: 10 pt above, 14 before, 6 below the title and its description, and | 132 | | - // Connect an integration at its end where the host can connect one. | 133 | | - .child(row().key("manage-models-header").w_full().pt(10.0).pr(10.0).pb(6.0).pl(14.0) | | 131 | + // `.search-dialog`'s `dialog-header` (`#64882`): 14 pt above, 16 at the sides, 8 below the | | 132 | + // title and its description, and Connect an integration at its end. | | 133 | + .child(row().key("manage-models-header").w_full().pt(14.0).px(16.0).pb(8.0) | 134 | 134 | .child(col().grow(1.0).shrink().gap(2.0) | 135 | 135 | .child(text(opencode_i18n::t!("dialog.model.manage")).font(TITLE).color(p.text)) | 136 | 136 | .child(text(opencode_i18n::t!("dialog.model.manage.description")).font(DESCRIPTION).color(p.muted))) | @@ -223,6 +223,7 @@ fn connect<S: PickerHost>(p: &Pal) -> El { | 223 | 223 | }) | 224 | 224 | .build(crate::palette::kit(p)) | 225 | 225 | .key("manage-models-connect") | | 226 | + .mr(-2.0) | 226 | 227 | } | 227 | 228 |
| 228 | 229 | /// `--v2-elevation-overlay` (`theme.css:112-114`, `:230-234`): two drops and a 0.5 pt ring. | |
|