Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/PHONE-DATA.md
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ One shared layout per (device, thread): the hub stores the TREE (never a fit), e

## Diff and Review (features `diff`, `review`; `native/host/src/data/ext.rs`)
- `viewer.diff {thread, from?, to?}` → `{diff, nogit?}`: the hub's `git.diff` as unified text, by default the thread's checkpoint (made when its first turn started) against the work tree now; `nogit` names the folder when it is not a repository.
- `review.page {thread, page: bom|checks, a?, b?, commit?}` → `{report:{md, err, gate, line, tasks:[{text, done, group}]}}` (`review.bom` / `review.checks`: Markdown the hub writes, the design checks' gate line and the checklist's boxes); `review.tick {thread, index}` → `{ticked:{tasks}}`.
- `review.page {thread, page: bom|checks|release, a?, b?, commit?}` → `{report:{md, err, gate, line, tasks:[{text, done, group}]}}` (`review.bom` / `review.checks`: Markdown the hub writes, the design checks' gate line and the checklist's boxes; `release` is `review.released`: the newest release already made, its drawing package (fabrication, drill and assembly drawings, by path) and files, read back from `.backplane/releases/<tag>/manifest.json`, nothing run); `review.tick {thread, index}` → `{ticked:{tasks}}`.
- `review.comment {thread, op: add|edit|resolve|reopen|drop, text?, id?, parent?, file?, layer?, x?, y?, item?}` → `{}`; `review.list {thread}` → `{comments:[{id, text, by, at, parent, resolved, file, layer, x, y, item}]}`: the thread's review acts folded, oldest first (the agent reads the open ones with its next message).
- Layers and Compare (feature `layers`): the phone keeps `off` and `focus` and holds no rule. `viewer.layers {kind: board|schematic|gerbers, present, off, focus, action?: toggle|pick|mode|cycle|reset, value?}` → `{own, focus, off, dim, lift, layerList, layerMarks, layerHead, layerMode, layerModes, layerReset, layerBits}`: `present` is the layers the plot on show has (a bit each), `own`/`focus` what to send next, `off`/`dim`/`lift` what to draw, `layerMarks` a comparison's rows (show the rows the plot has). `kind: "gerbers"` answers with the Gerber layer names (`F.Mask`, `B.Mask`, `F.Paste`, `B.Paste`, `Drills`, `F.Courtyard`, `F.Fab`, …); `kind: "board"` keeps working for existing phones that send it today. `viewer.refs {thread}` → `{refs:[{kind, label, commit}]}`; `viewer.compare {thread, kind, commit, bits?, path?}` → `{root}` watches the Diff of the file against that version, its marks kept to `bits` (`layerBits`: send it again when that changes); `viewer.watch` puts it away.
- Split needs no request of its own: `viewer.watch {kind: "split"}` sends the schematic (`1|root|`), the board (`0|root|`) and the 3D model (`2|root|`) plots on the one socket.
Expand Down
2 changes: 1 addition & 1 deletion i18n/en.msg
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@ review.comments.open = Comments · {count} open
review.tag = Tag {tag}
review.reading = Reading the design…
review.comments.none = No comments yet. Right-click a place on the board or schematic (long-press on a phone) to comment there.
review.release.note = Tag this design and make its fabrication outputs: Gerbers, drill, CPL, BOM, PDFs and STEP, in .backplane/releases.
review.release.note = Tag this design and make its fabrication outputs: Gerbers, drill, CPL, BOM, PDFs, STEP and the fabrication, drill and assembly drawings, in .backplane/releases.
review.empty = Nothing yet.

# antigravity and google sign-in
Expand Down
2 changes: 1 addition & 1 deletion i18n/es.msg
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@ review.comments.open = Comentarios · {count} abiertos
review.tag = Etiqueta {tag}
review.reading = Leyendo el diseño…
review.comments.none = Sin comentarios aún. Haz clic derecho en un lugar de la placa o esquemático (mantén pulsado en un teléfono) para comentar ahí.
review.release.note = Etiqueta este diseño y genera sus salidas de fabricación: Gerbers, taladros, CPL, BOM, PDFs y STEP, en .backplane/releases.
review.release.note = Etiqueta este diseño y genera sus salidas de fabricación: Gerbers, taladros, CPL, BOM, PDFs, STEP y los planos de fabricación, taladrado y montaje, en .backplane/releases.
review.empty = Nada aún.

# antigravity and google sign-in
Expand Down
2 changes: 1 addition & 1 deletion i18n/ja.msg
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,7 @@ review.comments.open = コメント · 未解決{count}件
review.tag = タグ{tag}
review.reading = 設計を読み込み中…
review.comments.none = コメントはまだありません。基板や回路図の場所を右クリック(スマートフォンでは長押し)すると、そこにコメントできます。
review.release.note = この設計にタグを付け、製造データ(ガーバー、ドリル、CPL、BOM、PDF、STEP)を.backplane/releasesに作成します。
review.release.note = この設計にタグを付け、製造データ(ガーバー、ドリル、CPL、BOM、PDF、STEP、製造図・ドリル図・実装図)を.backplane/releasesに作成します。
review.empty = まだ何もありません。

# antigravity and google sign-in
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -856,16 +856,16 @@ private fun DiffTab(thread: DThread) {
}
}

// ---- Review: the BOM, the design checks (with the checklist's boxes) and the thread's comments
// ---- Review: the BOM, the design checks (with the checklist's boxes), the thread's comments and the newest release made (its drawings and files)
@Composable
private fun ReviewTab(thread: DThread) {
var page by remember { mutableStateOf("Checks") }
Column(Modifier.fillMaxSize()) {
Row(Modifier.fillMaxWidth().background(dcs.surfaceVariant).padding(horizontal = 8.dp, vertical = 6.dp), horizontalArrangement = Arrangement.spacedBy(8.dp)) {
listOf("Checks" to Msg.review_checks, "BOM" to Msg.review_bom, "Comments" to Msg.review_comments).forEach { (p, l) -> DBtn(l, page == p, modifier = Modifier.testTag("review.page.$p")) { page = p } }
listOf("Checks" to Msg.review_checks, "BOM" to Msg.review_bom, "Comments" to Msg.review_comments, "Release" to Msg.review_release).forEach { (p, l) -> DBtn(l, page == p, modifier = Modifier.testTag("review.page.$p")) { page = p } }
}
DLine()
when (page) { "BOM" -> ReportPage(thread, "bom", false); "Comments" -> CommentsPage(thread); else -> ReportPage(thread, "checks", true) }
when (page) { "BOM" -> ReportPage(thread, "bom", false); "Comments" -> CommentsPage(thread); "Release" -> ReportPage(thread, "release", false); else -> ReportPage(thread, "checks", true) }
}
}
@Composable
Expand Down
8 changes: 4 additions & 4 deletions mobile/android/app/src/main/java/dev/backplane/mobile/Msg.kt
Original file line number Diff line number Diff line change
Expand Up @@ -5258,7 +5258,7 @@ object Msg {
"Tag {tag}",
"Reading the design…",
"No comments yet. Right-click a place on the board or schematic (long-press on a phone) to comment there.",
"Tag this design and make its fabrication outputs: Gerbers, drill, CPL, BOM, PDFs and STEP, in .backplane/releases.",
"Tag this design and make its fabrication outputs: Gerbers, drill, CPL, BOM, PDFs, STEP and the fabrication, drill and assembly drawings, in .backplane/releases.",
"Nothing yet.",
"Google's own agent, Antigravity {version}, installed. Backplane runs it; it signs in by itself.",
"Antigravity {old} is installed; Backplane now pins {version}.",
Expand Down Expand Up @@ -10229,7 +10229,7 @@ object Msg {
"タグ{tag}",
"設計を読み込み中…",
"コメントはまだありません。基板や回路図の場所を右クリック(スマートフォンでは長押し)すると、そこにコメントできます。",
"この設計にタグを付け、製造データ(ガーバー、ドリル、CPL、BOM、PDF、STEP)を.backplane/releasesに作成します。",
"この設計にタグを付け、製造データ(ガーバー、ドリル、CPL、BOM、PDF、STEP、製造図・ドリル図・実装図)を.backplane/releasesに作成します。",
"まだ何もありません。",
"Google純正のエージェント、Antigravity {version}をインストール済みです。Backplaneが実行し、サインインはエージェント自身が行います。",
"Antigravity {old}がインストールされています。Backplaneは現在{version}に固定しています。",
Expand Down Expand Up @@ -15200,7 +15200,7 @@ object Msg {
"Etiqueta {tag}",
"Leyendo el diseño…",
"Sin comentarios aún. Haz clic derecho en un lugar de la placa o esquemático (mantén pulsado en un teléfono) para comentar ahí.",
"Etiqueta este diseño y genera sus salidas de fabricación: Gerbers, taladros, CPL, BOM, PDFs y STEP, en .backplane/releases.",
"Etiqueta este diseño y genera sus salidas de fabricación: Gerbers, taladros, CPL, BOM, PDFs, STEP y los planos de fabricación, taladrado y montaje, en .backplane/releases.",
"Nada aún.",
"El propio agente de Google, Antigravity {version}, instalado. Backplane lo ejecuta; inicia sesión por sí mismo.",
"Antigravity {old} está instalado; Backplane ahora fija {version}.",
Expand Down Expand Up @@ -20108,7 +20108,7 @@ object Msg {
"BOM · Working copy",
"Reading the design…",
"No comments yet. Right-click a place on the board or schematic (long-press on a phone) to comment there.",
"Tag this design and make its fabrication outputs: Gerbers, drill, CPL, BOM, PDFs and STEP, in .backplane/releases.",
"Tag this design and make its fabrication outputs: Gerbers, drill, CPL, BOM, PDFs, STEP and the fabrication, drill and assembly drawings, in .backplane/releases.",
"Nothing yet.",
"Google has no Antigravity build for this machine.",
"Install",
Expand Down
3 changes: 2 additions & 1 deletion mobile/ios/Backplane/DataViewer.swift
Original file line number Diff line number Diff line change
Expand Up @@ -978,13 +978,14 @@ struct DataReviewTab: View {
@State private var page = "Checks"
var body: some View {
VStack(spacing: 0) {
HStack(spacing: 8) { ForEach(["Checks", "BOM", "Comments"], id: \.self) { p in
HStack(spacing: 8) { ForEach(["Checks", "BOM", "Comments", "Release"], id: \.self) { p in
Button(Tr.t(p)) { page = p }.buttonStyle(.bordered).tint(p == page ? BackplaneDesign.accent : .secondary).accessibilityIdentifier("data.review.page." + p) } ; Spacer() }
.padding(8).background(BackplaneDesign.panel)
Divider()
switch page {
case "BOM": DataReportPage(client: client, thread: thread, kind: "bom", ticks: false)
case "Comments": DataCommentsPage(client: client, thread: thread)
case "Release": DataReportPage(client: client, thread: thread, kind: "release", ticks: false)
default: DataReportPage(client: client, thread: thread, kind: "checks", ticks: true)
}
}
Expand Down
2 changes: 1 addition & 1 deletion mobile/ios/Shared/TrCatalog.swift
Original file line number Diff line number Diff line change
Expand Up @@ -780,7 +780,7 @@ review.comments.open Comments · {count} open コメント · 未解決{count}
review.tag Tag {tag} タグ{tag} Etiqueta {tag}
review.reading Reading the design… 設計を読み込み中… Leyendo el diseño…
review.comments.none No comments yet. Right-click a place on the board or schematic (long-press on a phone) to comment there. コメントはまだありません。基板や回路図の場所を右クリック(スマートフォンでは長押し)すると、そこにコメントできます。 Sin comentarios aún. Haz clic derecho en un lugar de la placa o esquemático (mantén pulsado en un teléfono) para comentar ahí.
review.release.note Tag this design and make its fabrication outputs: Gerbers, drill, CPL, BOM, PDFs and STEP, in .backplane/releases. この設計にタグを付け、製造データ(ガーバー、ドリル、CPL、BOM、PDF、STEP)を.backplane/releasesに作成します。 Etiqueta este diseño y genera sus salidas de fabricación: Gerbers, taladros, CPL, BOM, PDFs y STEP, en .backplane/releases.
review.release.note Tag this design and make its fabrication outputs: Gerbers, drill, CPL, BOM, PDFs, STEP and the fabrication, drill and assembly drawings, in .backplane/releases. この設計にタグを付け、製造データ(ガーバー、ドリル、CPL、BOM、PDF、STEP、製造図・ドリル図・実装図)を.backplane/releasesに作成します。 Etiqueta este diseño y genera sus salidas de fabricación: Gerbers, taladros, CPL, BOM, PDFs, STEP y los planos de fabricación, taladrado y montaje, en .backplane/releases.
review.empty Nothing yet. まだ何もありません。 Nada aún.
agy.installed Google's own agent, Antigravity {version}, installed. Backplane runs it; it signs in by itself. Google純正のエージェント、Antigravity {version}をインストール済みです。Backplaneが実行し、サインインはエージェント自身が行います。 El propio agente de Google, Antigravity {version}, instalado. Backplane lo ejecuta; inicia sesión por sí mismo.
agy.old Antigravity {old} is installed; Backplane now pins {version}. Antigravity {old}がインストールされています。Backplaneは現在{version}に固定しています。 Antigravity {old} está instalado; Backplane ahora fija {version}.
Expand Down
4 changes: 3 additions & 1 deletion native/host/src/data/ext.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
//! `viewer.probe {key,name,value}` → `{matches}`, `viewer.info {key,at,idx}` → `{info}` · `files.entries {thread, path?}` → `{dir, entries:[{dir,size,name}]}` ·
//! `mech.list {thread}` → the hub's listing · bytes of a file: GET /files/get?thread=&path=&token= · `browser {thread, op, ...}` → `{}` (bots.browser for the thread's page: takeover, handback, click {x,y 0..1000},
//! type, press, scroll, navigate, toolbar) · the page's newest frame: GET /bots/<thread>/screen.jpg, a new one announced by `{"t":"shot","bot":<thread>,"n":N}` (JSON, to every client that connected for viewers).
//! Diff and Review (features "diff", "review"): `viewer.diff {thread, from?, to?}` → `{diff, nogit?}` (the hub's git.diff: unified text) · `review.page {thread, page: bom|checks, a?, b?, commit?}` → `{report:{md, err, gate, line, tasks:[…]}}`
//! Diff and Review (features "diff", "review"): `viewer.diff {thread, from?, to?}` → `{diff, nogit?}` (the hub's git.diff: unified text) · `review.page {thread, page: bom|checks|release, a?, b?, commit?}` → `{report:{md, err, gate, line, tasks:[…]}}`
//! (review.bom / review.checks: Markdown the hub writes) · `review.tick {thread, index}` → `{ticked:{tasks}}` · `review.comment {thread, op: add|edit|resolve|reopen|drop, text?, id?, parent?, file?, layer?, x?, y?, item?}` → `{}` ·
//! `review.list {thread}` → `{comments:[{id, text, by, at, parent, resolved, file, layer, x, y, item}]}` (the thread's review acts folded, oldest first).
//! Picker (feature "picker"): `thread.picker {thread?, provider?, model?, effort?, runtime?}` → `{picker:{chip, sections:[{title, action, choices:[{label, value, on, ok, why}]}]}}` (a thread's own, or a new thread's from what is given) ·
Expand Down Expand Up @@ -743,6 +743,8 @@ async fn review(hub: &Arc<Hub>, c: &mut Conn, m: &str, p: &Value) -> Option<Resu
match page {
"bom" => { for k in ["a", "b"] { if !s(p, k).is_empty() { q[k] = p[k].clone() } } rpc(hub, c, "review.bom", q).await.map(result) }
"checks" => { if !s(p, "commit").is_empty() { q["commit"] = p["commit"].clone() } q["trigger"] = json!("manual"); rpc(hub, c, "review.checks", q).await.map(result) }
// the newest release already made: its drawing package and files (a read; nothing is released from here)
"release" => rpc(hub, c, "review.released", q).await.map(result),
_ => Err(err("page: bom or checks")),
}
}
Expand Down
2 changes: 1 addition & 1 deletion native/host/src/files/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ mod boundary_tests {
(crate::hub::TestHub { hub, _tmp: home }, proj)
}
const ROUTES: &[&str] = &["files.dir", "files.op", "files.read", "files.list", "git.status", "git.diff", "git.act", "git.revert", "history.refs", "history.resolve", "kicad.components", "boards.list", "mech.list", "mech.render",
"review.bom", "review.checks", "review.tick", "review.comment", "review.release", "kicad.export10", "pdf.page", "file.open"];
"review.bom", "review.checks", "review.tick", "review.comment", "review.release", "review.released", "kicad.export10", "pdf.page", "file.open"];
#[tokio::test] async fn every_folder_route_refuses_what_does_not_resolve() {
let (hub, _proj) = world().await;
let who = Caller { gen: "g".into(), client: 1 };
Expand Down
Loading
Loading