Migrated from GitHub
Go to file
Jeff Emmett cae367db28 fix: migrate geo shapes with props.text during Automerge load
Geo shapes saved before the tldraw schema change have props.text which is
no longer valid. This causes ValidationError on page reload when shapes are
loaded from Automerge:

  "ValidationError: At shape(type = geo).props.text: Unexpected property"

The migration logic was only in JSON import (CustomMainMenu.tsx), but shapes
loading from Automerge also need migration.

This fix adds the props.text → props.richText migration to the sanitizeRecord
function in AutomergeToTLStore.ts, ensuring geo shapes are properly migrated
when loaded from Automerge, matching the behavior during JSON import.

The original text is preserved in meta.text for backward compatibility with
search and other features that reference it.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-19 16:25:58 -07:00
.github/workflows switch from github action to cloudflare native worker deployment 2025-11-10 19:05:11 -08:00
.wrangler/tmp multiboard 2024-08-30 12:31:52 +02:00
docs refactor: remove OddJS dependency and fix Automerge sync 2025-11-16 20:19:02 -07:00
src fix: migrate geo shapes with props.text during Automerge load 2025-11-19 16:25:58 -07:00
worker fix: implement real-time Automerge sync across clients 2025-11-16 19:45:36 -07:00
.cfignore fix: move wrangler.dev.toml to worker/ directory to fix Pages deployment 2025-11-16 18:43:34 -07:00
.env.example Revert "Update Daily API key in production env" 2025-04-16 13:05:55 -07:00
.gitattributes oriomimicry 2024-08-09 23:14:58 -04:00
.gitignore working video calls 2025-02-13 20:38:01 +01:00
.npmrc npm 2024-12-07 22:48:02 -05:00
.nvmrc fix: preserve coordinates and convert geo shape text during JSON import 2025-11-19 16:14:23 -07:00
.prettierrc.json prettify and cleanup 2024-12-07 22:01:02 -05:00
CLOUDFLARE_PAGES_MIGRATION.md update package.json, remove cloudflare worker deployment 2025-11-10 12:46:49 -08:00
CLOUDFLARE_PAGES_SETUP.md latest update to fix cloudflare 2025-11-10 11:51:57 -08:00
CLOUDFLARE_WORKER_SETUP.md switch from github action to cloudflare native worker deployment 2025-11-10 19:05:11 -08:00
DATA_CONVERSION_GUIDE.md pin object, fix fathom, and a bunch of other things 2025-11-11 22:32:36 -08:00
DATA_CONVERSION_SUMMARY.md everything working in dev 2025-11-10 11:06:13 -08:00
DATA_SAFETY_VERIFICATION.md updates to worker 2025-11-10 13:50:31 -08:00
DEPLOYMENT_GUIDE.md switch from github action to cloudflare native worker deployment 2025-11-10 19:05:11 -08:00
DEPLOYMENT_SUMMARY.md switch from github action to cloudflare native worker deployment 2025-11-10 19:05:11 -08:00
FATHOM_INTEGRATION.md final updates to Automerge conversion 2025-11-10 13:34:55 -08:00
GESTURES.md add in gestures and ctrl+space command tool (TBD add global LLM) 2025-07-29 16:02:51 -04:00
MIGRATION_CHECKLIST.md update package.json, remove cloudflare worker deployment 2025-11-10 12:46:49 -08:00
QUARTZ_SYNC_SETUP.md automerge, obsidian/quartz, transcribe attempt, fix AI APIs 2025-09-21 11:43:06 +02:00
README.md Revert "update website main page and repo readme, add scroll bar to markdown tool" 2025-04-16 13:05:50 -07:00
SANITIZATION_EXPLANATION.md everything working in dev 2025-11-10 11:06:13 -08:00
TLDRW_INTERACTIVE_ELEMENTS.md automerge, obsidian/quartz, transcribe attempt, fix AI APIs 2025-09-21 11:43:06 +02:00
TRANSCRIPTION_SETUP.md everything working in dev 2025-11-10 11:06:13 -08:00
WORKER_ENV_GUIDE.md final updates to Automerge conversion 2025-11-10 13:34:55 -08:00
_redirects update package.json, remove cloudflare worker deployment 2025-11-10 12:46:49 -08:00
github-integration-setup.md automerge, obsidian/quartz, transcribe attempt, fix AI APIs 2025-09-21 11:43:06 +02:00
index.html fixed shared piano 2025-09-04 17:54:39 +02:00
package-lock.json refactor: remove OddJS dependency and fix Automerge sync 2025-11-16 20:19:02 -07:00
package.json fix: preserve coordinates and convert geo shape text during JSON import 2025-11-19 16:14:23 -07:00
quartz-sync.env.example automerge, obsidian/quartz, transcribe attempt, fix AI APIs 2025-09-21 11:43:06 +02:00
start-network-dev.sh automerge, obsidian/quartz, transcribe attempt, fix AI APIs 2025-09-21 11:43:06 +02:00
switch-worker-env.sh final updates to Automerge conversion 2025-11-10 13:34:55 -08:00
switch-worker.sh automerge, obsidian/quartz, transcribe attempt, fix AI APIs 2025-09-21 11:43:06 +02:00
test-change-detection.js automerge, obsidian/quartz, transcribe attempt, fix AI APIs 2025-09-21 11:43:06 +02:00
test-data-conversion.ts everything working in dev 2025-11-10 11:06:13 -08:00
test-holon-data.js everything working in dev 2025-11-10 11:06:13 -08:00
test-r2-conversion.md everything working in dev 2025-11-10 11:06:13 -08:00
test-video-chat-network.js automerge, obsidian/quartz, transcribe attempt, fix AI APIs 2025-09-21 11:43:06 +02:00
tsconfig.json fix stuff 2024-08-31 15:00:06 +02:00
tsconfig.node.json oriomimicry 2024-08-09 23:14:58 -04:00
tsconfig.worker.json multiplayer 2024-08-29 21:15:13 +02:00
vite.config.ts everything working in dev 2025-11-10 11:06:13 -08:00
wrangler.dev.toml refactor: move wrangler config files to root directory 2025-11-16 19:17:54 -07:00
wrangler.toml refactor: move wrangler config files to root directory 2025-11-16 19:17:54 -07:00

README.md

A website.

Do npm i and npm run dev