Skip to content

Native iCloud apps for Windows and Linux, built in Rust. Notes, Reminders, Calendar, Contacts, Drive and Photos, offline and in sync with your iPhone.

Notes: tables read-only again — edits made here did not merge cleanly on iPhone

Yashwanth Kamireddi023fed1aae9e
diff --git a/.uiverify/notes-table.mjs b/.uiverify/notes-table.mjs
index a5b5a62..8ced254 100644
--- a/.uiverify/notes-table.mjs
+++ b/.uiverify/notes-table.mjs
@@ -1,7 +1,6 @@
// A table in a note, drawn as its grid, its text colour shown, and copied as its cells. Its
-// cells are edited where they stand, and right-click adds and deletes rows and columns, as
-// Notes does (each made here showed on an iPhone). A table this app cannot read says so where
-// it stands — never a file to open.
+// cells are read-only for now (edits made here did not merge cleanly on an iPhone). A table this
+// app cannot read says so where it stands — never a file to open.
import { engine } from "./engine.mjs";
import { SERVICES, installStub, openScreen } from "./stub.mjs";
const b = await engine.launch();
@@ -19,33 +18,12 @@ await page.waitForSelector(".nf-table");
const grid = await page.locator(".nf-table tr").evaluateAll((rows) => rows.map((r) => [...r.cells].map((c) => c.textContent)));
ok(JSON.stringify(grid) === JSON.stringify([["Item", "Qty"], ["Milk", "2"], ["", ""]]), `the table is drawn as its grid ${JSON.stringify(grid)}`);
-// A cell typed into is saved to Apple, that cell alone.
-const empty = page.locator(".nf-table tr").nth(2).locator(".nf-cell-edit").first();
-ok((await empty.count()) === 1, "a table's cells are offered for typing, an empty one too");
-await empty.click();
-await page.keyboard.type("Eggs");
-await page.keyboard.press("Enter");
-await page.waitForTimeout(500);
-const wrote = await page.evaluate(() => window.__cellWrites ?? []);
-ok(wrote.length === 1 && wrote[0].id === "T1" && wrote[0].row === 2 && wrote[0].column === 0 && wrote[0].text === "Eggs",
- `typed into a cell, that cell is saved ${JSON.stringify(wrote)}`);
-await page.evaluate(() => { window.__table[2] = ["", ""]; });
-const shape = () => page.locator(".nf-table tr").evaluateAll((rows) => [rows.length, rows[0]?.cells.length ?? 0]);
-const menu = async (r, c, name) => {
- await page.locator(".nf-table tr").nth(r).locator("td").nth(c).click({ button: "right" });
- await page.waitForTimeout(100);
- await page.getByRole("menuitem", { name, exact: true }).click();
- await page.waitForTimeout(300);
-};
-await menu(1, 0, "Add Row Below");
-ok(JSON.stringify(await shape()) === "[4,2]" && JSON.stringify(await page.evaluate(() => window.__rowAdds)) === JSON.stringify([{ id: "T1", at: 2, column: false }]),
- `Add Row Below adds a row under that one, at Apple ${JSON.stringify(await page.evaluate(() => window.__rowAdds))}`);
-await menu(0, 1, "Add Column After");
-ok(JSON.stringify(await shape()) === "[4,3]", "Add Column After adds a column beside it");
-await menu(0, 2, "Delete Column");
-await menu(2, 0, "Delete Row");
-ok(JSON.stringify(await shape()) === "[3,2]" && (await page.evaluate(() => window.__removes?.length)) === 2, "Delete Row and Delete Column take them away again");
-await page.evaluate(() => { window.__table = [["Item", "Qty"], ["Milk", "2"], ["", ""]]; });
+// Read-only for now: edits made here reached the iPhone, but Notes there kept conflict copies of
+// the note with the text doubled. No cell is offered for typing and no table menu opens.
+ok((await page.locator(".nf-cell-edit").count()) === 0, "no table cell is offered for typing while table writes are off");
+await page.locator(".nf-table tr").nth(1).locator("td").first().click({ button: "right" });
+ok((await page.getByRole("menuitem", { name: /Add Row|Delete Row/ }).count()) === 0, "and right-click offers no row or column changes");
+await page.keyboard.press("Escape");
const coloured = await page.locator(".note-rich .nf-em-4").evaluateAll((e) => e.map((x) => [x.textContent, getComputedStyle(x).color]));
ok(coloured.length === 1 && coloured[0][0] === "end" && !/rgb\(29, 29, 31\)|rgb\(0, 0, 0\)/.test(coloured[0][1]), `text coloured on a phone shows in its colour ${JSON.stringify(coloured)}`);
// Copying the note puts the table's cells out, never a placeholder word.
diff --git a/probe/examples/notes_list.rs b/probe/examples/notes_list.rs
index 14d8f70..d4bf190 100644
--- a/probe/examples/notes_list.rs
+++ b/probe/examples/notes_list.rs
@@ -42,7 +42,7 @@ async fn main() -> Result<()> {
.unwrap_or_default()
.iter()
.filter_map(|x| x.attachment.clone())
- .map(|a| a.chars().take(4).collect())
+ .map(|a| if std::env::var("FULL").is_ok() { a } else { a.chars().take(4).collect() })
.collect();
println!(
"{} | {:30} | deleted {} | folder {} | atts {} | created {} | {:?} | modified {}",
diff --git a/src-tauri/src/main.rs b/src-tauri/src/main.rs
index 0253263..343813a 100644
--- a/src-tauri/src/main.rs
+++ b/src-tauri/src/main.rs
@@ -1981,15 +1981,14 @@ async fn note_runs(guid: String, data: State<'_, Data>) -> UiResult<serde_json::
}
/// A table's cells, row by row, as the last pass read them — `None` when none are known.
-/// Whether Quince writes a table's cells. On: a cell set here — the table's and the note's
-/// modification dates stamped with it — showed on his iPhone (2026-10-21). Before those stamps
-/// (2026-10-19) Apple stored the write but the phone did not show it.
-const TABLE_CELL_WRITES: bool = true;
-/// Whether Quince adds and removes rows and columns. On: a row and a column added here showed
-/// on his iPhone, and he typed in them there (2026-10-21).
-const TABLE_LINE_WRITES: bool = true;
+/// Whether Quince writes to Notes tables. OFF: a cell and a row and a column written here
+/// showed on his iPhone (2026-10-21), but Notes there then kept two conflict copies of the note,
+/// one with the written cells' text doubled and tripled — it could not merge these edits
+/// cleanly. No table is written until a write is shown to merge on the phone with no copy.
+const TABLE_CELL_WRITES: bool = false;
+const TABLE_LINE_WRITES: bool = false;
const TABLE_WRITES_OFF: &str =
- "Adding and removing rows and columns isn’t on in Quince yet: it waits to be seen working on an iPhone.";
+ "Tables are read-only in Quince for now: edits made here didn’t merge cleanly on iPhone yet.";
/// Add an empty row to a Notes table at `at` (0 is the top), as Notes does, and keep the
/// table as Apple now holds it.
diff --git a/src/screens/notes/NoteEditor.tsx b/src/screens/notes/NoteEditor.tsx
index d4b3d53..172512c 100644
--- a/src/screens/notes/NoteEditor.tsx
+++ b/src/screens/notes/NoteEditor.tsx
@@ -34,10 +34,10 @@ export function refreshTables() {
liveTables.forEach((read) => read());
}
-/** Whether a table's cells can be edited here: on since a cell set here showed on an iPhone. */
-const TABLE_CELL_WRITES = true;
-/** Whether rows and columns can be added and removed: on since ones added here showed there. */
-const TABLE_LINE_WRITES = true;
+/** Whether tables can be edited here. Off: edits made here showed on an iPhone, but Notes there
+ * kept conflict copies of the note with the edited text doubled — they did not merge cleanly. */
+const TABLE_CELL_WRITES = false;
+const TABLE_LINE_WRITES = false;
/** A table's right-click menu: drawn by the editor that holds the table, opened by a cell. */
type CellMenu = { at: { x: number; y: number; alignRight: boolean }; entries: MenuEntry[] };