Sidharth Vinod and Claude Opus 4.8
e6333e9d7f
refactor: Convert history state to Svelte 5 runes + add svelte-check
...
Migrate the Timeline/Saved history state module to idiomatic Svelte 5
runes and wire up type-checking.
- Rename history.ts -> historyState.svelte.ts and replace the Svelte
stores with $state-backed reactive values, removing the get() calls
(the only remaining one reads the external inputStateStore). A small
localStorage-backed `persisted()` helper keeps the same keys, so user
data is preserved. Consumers read via the reactive `historyState`
getter object instead of store auto-subscriptions.
- The gist loader now replaces the in-memory revisions in one call
(setLoaderEntries) instead of appending, so loading a new gist no
longer accumulates stale revisions.
- Add svelte-check: new `check` script, a "Type check" step in the
unit-tests CI workflow, and skipLibCheck so the check passes on the
dependency .d.ts files. svelte-check reports 0 errors / 0 warnings.
- Add accessible labels to the History toggle and the per-item
Restore/Delete buttons (a11y + testability).
- Unskip tests/history.spec.ts and rewrite it against the new UI:
load-from-localStorage + restore, tab-highlight follows the mode,
save/dedupe, auto-vs-manual isolation, and delete/clear. All pass.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com >
2026-06-08 19:28:38 +05:30
Sidharth Vinod and Claude Opus 4.8
3628acec02
fix: Rewrite Timeline/Saved history state and UI handling
...
The auto (Timeline) and manual (Saved) history handling had several bugs.
This rewrites the state module into a small, tested source-of-truth API and
turns History.svelte into a thin view.
Bugs fixed:
- Auto-saves no longer leak into the Saved list. addEntry now writes only to
the store for its own type (previously every entry was also pushed to the
manual store).
- Dedup is keyed on code + config via stateKey() instead of the whole input
state, so volatile/view-only fields (renderCount, updateDiagram, pan/zoom)
no longer cause spurious saves or hide real edits.
- The active-tab highlight tracks the history mode. History binds
activeTabID={$historyModeStore} and Tabs derives the highlight reactively
instead of mutating its prop once, which had frozen it on the first tab.
- Auto-save runs for the whole edit session via startAutoSave() in +page,
with proper cleanup. Previously the interval lived in History.svelte, only
ran while the panel was open, and was never cleared (leaking a new interval
on every open).
- restoreEntries() routes each uploaded entry to the store matching its own
type instead of dumping everything into one store by the first entry's type.
The persisted localStorage keys (autoHistoryStore, manualHistoryStore,
autoHistoryMode) are unchanged, so existing user data is preserved.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com >
2026-06-08 19:27:23 +05:30
Sidharth Vinod and Cursor
1f0812496e
fix: prevent state feedback loop when updating Monaco via executeEdits
...
Guard programmatic editor updates so sample diagrams and URL loads do not re-trigger onUpdate, which caused infinite state/URL churn and failing e2e tests.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-06-08 18:40:07 +05:30
Sidharth Vinod
c62ebf6d09
fix : #1753 Undo in Monaco
2026-06-08 18:14:56 +05:30
Sidharth Vinod and GitHub
6438d0074d
Merge pull request #1719 from mermaid-js/renovate/all-minor-patch
...
chore(deps): update all non-major dependencies to v10.34.1
2026-06-08 18:02:54 +05:30
Sidharth Vinod and GitHub
130711a9d0
Merge pull request #1718 from mermaid-js/renovate/patch-all-minor-patch
...
chore(deps): update all non-major dependencies to ^24.12.4
2026-06-08 18:02:07 +05:30
Sidharth Vinod and Cursor
c25675d418
chore: update all dependencies to latest versions
...
Bump the full dependency tree (Vite 8, Vitest 4, ESLint 10, Svelte 5.56,
mode-watcher 1.x, etc.) and adapt code for breaking API changes. Upgrade
Playwright CI image to v1.60 for Node 24 compatibility.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-06-08 17:47:38 +05:30
Sidharth Vinod and Cursor
ccf5a13018
fix: upgrade Playwright to 1.60 for Node 24.16 compatibility
...
Playwright <1.60 hangs on browser extraction under Node 24.16.0; bump
the test dependency and CI container image to unblock e2e.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-06-08 17:08:27 +05:30
Sidharth Vinod and GitHub
4ab4e022a0
Merge branch 'develop' into chore/node-24-lts
2026-06-08 16:19:46 +05:30
Sidharth Vinod and Cursor
d040d8d84a
chore: bump mermaid and related packages to latest
...
Upgrade mermaid 11.15.0, layout-elk 0.2.1, and layout-tidy-tree 0.2.2.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-06-04 01:07:52 +05:30
Sidharth Vinod and Cursor
c2cd0c0bfc
chore: upgrade Node.js to 24.16.0 LTS
...
Pin CI, Docker, and engines to the current Active LTS and bump @types/node.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-06-03 20:44:47 +05:30
Sidharth Vinod and GitHub
2ff56f67bc
Merge pull request #1965 from mermaid-js/sidv/editor-chooser-live-2026
...
Ship editor chooser testB with live_2026 UTM campaign
2026-05-29 16:02:47 +05:30
Sidharth Vinod and Cursor
55d9bd043f
refactor: Inline editor chooser modal content
...
Remove the separate testB component now that the A/B test is over.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-05-29 15:49:44 +05:30
Sidharth Vinod and Cursor
adf3ddf015
feat: Ship editor chooser testB and use live_2026 UTM campaign
...
End the A/B test by always showing the testB modal, remove unused variant
components and assignment logic, and route CTA links with utm_campaign=live_2026.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-05-29 15:45:04 +05:30
Sidharth Vinod and GitHub
bfea7dd4db
Merge pull request #1964 from mermaid-js/sidv/close-broken-link-issues
...
chore: Auto-close issues with only "Broken link" in title
2026-05-28 00:42:19 +05:30
Sidharth Vinod and Cursor
7cd24ddcb3
chore: Clarify live editor vs Mermaid syntax issues in auto-close comment
...
Direct syntax error reports to mermaid-js/mermaid and limit this repo to live editor bugs.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-05-28 00:41:27 +05:30
Sidharth Vinod and Cursor
241f99bacf
chore: Auto-close issues with only "Broken link" in title
...
Add a GitHub Action that closes low-effort issues using the default pre-filled title and prompts reporters to include the failing URL and details.
Co-authored-by: Cursor <cursoragent@cursor.com >
2026-05-28 00:38:52 +05:30
Sidharth Vinod and GitHub
7b43e33971
Merge pull request #1951 from ZenUml/chore/mermaid-zenuml-0.2.3
...
[codex] bump mermaid-zenuml to 0.2.3
2026-05-18 20:17:21 +05:30
Sidharth Vinod
1fabea49cf
chore: Update mermaid-examples
2026-04-23 14:40:49 +05:30
Sidharth Vinod and GitHub
1bd6355ea8
Merge pull request #1938 from mermaid-js/sidv/editorChooserExperiments
...
feat(MC-4486): Add variations to editor picker
2026-04-23 14:32:44 +05:30
Sidharth Vinod and GitHub
29eb7b01fc
Merge pull request #1939 from mermaid-js/sidv/EnhancedEditButton
...
chore(MC-4489): Add enhanced edit button
2026-04-23 14:16:34 +05:30
Sidharth Vinod
b446c37315
chore: Add enhanced edit button
2026-04-23 13:31:19 +05:30
Sidharth Vinod
031477cda9
fix: Update tagline and layout
2026-04-23 13:05:45 +05:30
Sidharth Vinod
a9becf5509
fix: copy
2026-04-22 22:37:01 +05:30
Sidharth Vinod
79c4b3bf55
chore: Add noopener
2026-04-22 21:04:00 +05:30
Sidharth Vinod
a61a69e477
fix: Show picker on netlify
2026-04-22 18:58:31 +05:30
Sidharth Vinod
1daac45c87
feat(MC-4486): Add variations to editor picker
2026-04-22 18:52:02 +05:30
Sidharth Vinod
679e444bf1
chore: Remove canonical
2026-04-02 17:34:24 +05:30
Sidharth Vinod and GitHub
f9f1e27bc3
Merge pull request #1923 from mermaid-js/sidv/visualEditor
...
feat: Add visual editor button
2026-04-01 22:20:22 +05:30
Sidharth Vinod
62699769d5
fix: Use {} instead of undefined
2026-04-01 22:19:02 +05:30
Sidharth Vinod
5608dc5661
feat: Add visual editor button
2026-04-01 21:50:18 +05:30
Sidharth Vinod
0e0da3b1e9
chore: Reduce Error debounce interval
2026-04-01 20:43:15 +05:30
Sidharth Vinod
d273e1d722
fix: Asset links
2026-03-30 21:30:13 +05:30
Sidharth Vinod
c799dff042
fix( #1914 ): Resolve redirectURL considering base path
2026-03-30 21:24:33 +05:30
Sidharth Vinod
c675dc02e9
fix: Avoid double popups
2026-03-25 17:03:04 +09:00
Sidharth Vinod
ab760f35fa
feat: Retain search query in URL to get insights into traffic flow
2026-03-18 22:05:07 +09:00
Sidharth Vinod and GitHub
8a436791de
Merge pull request #1908 from mermaid-js/renovate/mermaid-packages
...
fix(deps): update dependency mermaid to ^11.13.0
2026-03-16 07:41:08 -07:00
Sidharth Vinod and GitHub
d16a1776e6
Merge pull request #1909 from mermaid-js/sidv/correctPrivacyPolicy
...
feat: Configure Privacy Policy
2026-03-16 07:40:41 -07:00
Sidharth Vinod
ab720e0267
fix: local test change
2026-03-16 23:33:20 +09:00
Sidharth Vinod
d7db71e38a
chore: Add new mermaid home button
2026-03-16 23:29:49 +09:00
Sidharth Vinod
b466e8430e
feat: Show mermaid.live privacy policy only on mermaid.live
...
As the OSS project only controls the mermaid.live domain, we're adding an env variable to let anyone who is self hosting live editor to set their own privacy policy, or to hide the button if they want to.
2026-03-16 23:29:13 +09:00
Sidharth Vinod
15cdb7b64a
chore: Show editor picker once to existing users as well
2026-03-12 13:35:42 +09:00
Sidharth Vinod
340911f271
chore: Remove panZoom event
2026-03-05 23:28:34 +05:30
Sidharth Vinod and GitHub
44d15c0f5e
Merge pull request #1901 from mermaid-js/claude/hide-editor-picker-mobile-2h7p0
...
Hide editor picker on mobile
2026-03-03 14:09:58 -08:00
Sidharth Vinod
82f7371fed
fix: Do not show editor selector to users coming from docs site, as they have seen one already
2026-03-04 01:50:29 +05:30
Sidharth Vinod
e56451e027
chore: Update coupon code
2026-03-04 01:43:34 +05:30
Sidharth Vinod and GitHub
1ed126e684
Merge pull request #1898 from mermaid-js/sidv/fixTests
...
tests: Tweak failing tests
2026-03-03 11:41:35 -08:00
Sidharth Vinod
a85bc09092
fix: Track mermaid.ai outflow
2026-03-04 01:10:12 +05:30
Sidharth Vinod
5cc29dfebe
tests: Tweak failing tests
2026-03-04 00:32:16 +05:30
Sidharth Vinod and GitHub
6079e5e1ba
Merge pull request #1896 from mermaid-js/sidv/popup
...
Editor Chooser popup
2026-03-03 10:33:43 -08:00
Sidharth Vinod
dabbf5700a
test: Disable popup in tests
2026-03-03 23:45:51 +05:30
Sidharth Vinod
13e5e834a2
fix: Respect MERMAID_IS_ENABLED_MERMAID_CHART_LINKS for popup
2026-03-03 15:56:47 +05:30
Sidharth Vinod
bf1a7581e8
chore: Add editor chooser dialog for first time users
2026-03-03 15:54:37 +05:30
Sidharth Vinod
d092480cf3
chore: Auto redirect to new domain
2026-03-03 13:22:36 +05:30
Sidharth Vinod and GitHub
94f7dafc72
Merge pull request #1886 from chouheiwa/fix/cjk-text-visibility-in-svg-export
...
fix: ensure CJK text visibility in SVG export
2026-02-16 21:11:50 +05:30
Sidharth Vinod and GitHub
8d7db5501a
Merge pull request #1883 from saurabhg772244/saurabh/add-mermaid-inline-ai
...
add mermaid inline AI
2026-02-16 20:44:51 +05:30
Sidharth Vinod and GitHub
4bfe42458e
Merge pull request #1887 from mermaid-js/sidv/promo
...
chore: Update promo URL
2026-02-16 16:46:25 +05:30
Sidharth Vinod
f6f9668044
fix: Update couponID
2026-02-16 16:13:33 +05:30
Sidharth Vinod
2b13fde292
chore: Update promo URL
2026-02-16 15:55:21 +05:30
Sidharth Vinod and GitHub
629d9639d2
Merge pull request #1882 from mermaid-js/sidv/promo
...
feat: Add new year promo
2026-02-02 15:33:56 +05:30
Sidharth Vinod
1a529f598f
feat: Add new year promo
2026-02-02 15:33:02 +05:30
Sidharth Vinod
f3d580b8eb
fix: Update tiny tree
2026-01-29 14:22:08 +05:30
Sidharth Vinod and GitHub
7414ac0926
Merge pull request #1878 from mermaid-js/sidv/updateMcDomain
...
feat: Hide tooltip based on domain
2026-01-28 12:02:01 +05:30
Sidharth Vinod and GitHub
c05fa21dcc
Merge pull request #1877 from mermaid-js/sidv/updateDocsURL
...
chore: Make docs URL configurable during build
2026-01-28 12:01:52 +05:30
Sidharth Vinod and GitHub
61e194517d
Merge pull request #1875 from mermaid-js/sidv/removePlayground
...
chore: Remove playground toggle
2026-01-28 12:01:29 +05:30
Sidharth Vinod
9946dff29d
feat: Hide tooltip based on domain
2026-01-28 11:52:30 +05:30
Sidharth Vinod
d72e91a7b8
chore: Make docs URL configurable during build
2026-01-28 11:37:12 +05:30
Sidharth Vinod
832cf7d4e7
fix: lint errors
2026-01-28 00:35:02 +05:30
Sidharth Vinod
b92fda6279
Merge branch 'develop' into sidv/removePlayground
...
* develop:
fix: lint errors
chore: update dependencies
2026-01-28 00:33:21 +05:30
Sidharth Vinod
7f551dbbe6
fix: lint errors
2026-01-28 00:32:44 +05:30
Sidharth Vinod
5dd2fe4bd0
chore: update dependencies
2026-01-28 00:32:32 +05:30
Sidharth Vinod
d9e70427af
chore: Remove playground toggle
2026-01-28 00:25:17 +05:30
Sidharth Vinod
739ef6dfe2
chore: remove trackOnLocalhost
2025-10-15 15:59:05 +05:30
Sidharth Vinod
48c560c979
fix: Catch panZoom errors
2025-10-15 15:58:04 +05:30
Sidharth Vinod
b1367c2178
fix( #1791 ): Disable plausible init when analytics url is empty
2025-10-15 15:57:41 +05:30
Sidharth Vinod
ef6aa4b09d
feat: Add layout-tidy-tree
2025-10-15 15:25:43 +05:30
Sidharth Vinod
ea6ae3d7e2
feat: debounce error section
2025-10-08 19:57:20 +05:30
Sidharth Vinod and GitHub
01cd13c712
Merge pull request #1798 from junqwoopark/bug/1797_fix_export_background_color
...
fix(export): Remove redundant hsl() from background color
2025-09-18 20:21:25 +05:30
Sidharth Vinod and GitHub
e41499eda3
Merge pull request #1799 from mermaid-js/renovate/mermaid-packages
...
fix(deps): update dependency mermaid to ^11.12.0
2025-09-18 20:08:22 +05:30
Sidharth Vinod
c532b06b1a
fix: Hover
2025-09-03 17:23:19 +05:30
Sidharth Vinod
7d709fecc5
fix: Add hamburger icon
2025-09-03 17:22:09 +05:30
Sidharth Vinod and GitHub
b87538cfe4
Merge branch 'develop' into sidv/mainMenu
2025-09-03 17:14:09 +05:30
Sidharth Vinod and GitHub
7172054b91
Merge pull request #1793 from mermaid-js/sidv/updateDeps2
...
Update Deps
2025-09-03 17:13:43 +05:30
Sidharth Vinod
c70bfe8cfa
chore: Upgrade vitest
2025-09-03 16:59:41 +05:30
Sidharth Vinod
fe7d04457a
chore: lint fix
2025-09-03 16:49:35 +05:30
Sidharth Vinod
2c717b670e
chore: Update menu
2025-09-03 16:47:14 +05:30
Sidharth Vinod
cb062d49b1
chore: Update utils
2025-09-03 16:42:08 +05:30
Sidharth Vinod
def809f6bd
chore: Remove postcss
2025-09-03 16:38:03 +05:30
Sidharth Vinod
7da0081ace
Update tailwind and shadcn
2025-09-03 16:36:09 +05:30
Sidharth Vinod
ee6f595880
chore: Remove .eslintrc.cjs configuration file
2025-09-03 01:43:25 +05:30
Sidharth Vinod
d991139b0a
chore: Update eslint
2025-09-03 01:41:51 +05:30
Sidharth Vinod
eb9121de12
chore: Update deps
2025-09-02 22:57:16 +05:30
Sidharth Vinod and GitHub
6f26aec073
Merge pull request #1786 from aschaber1/develop
...
ci(docker-publish): :contruction_worker: fix quotes
2025-08-20 12:29:32 +05:30
Sidharth Vinod and GitHub
6b7a4803a4
Merge pull request #1761 from aschaber1/develop
...
ci(docker-publish): add arm64 builds and attestations
2025-08-20 12:06:34 +05:30
Sidharth Vinod
5817555d91
chore: Update browserlist
2025-08-20 11:59:49 +05:30
Sidharth Vinod and GitHub
5a7ee057c3
Merge pull request #1783 from mermaid-js/sidv/updateMermaid
...
chore: Update mermaid version
2025-08-20 11:51:41 +05:30
Sidharth Vinod
75126f180d
test: Update svg size
2025-08-20 11:47:59 +05:30
Sidharth Vinod
74777b3791
chore: Update mermaid version
2025-08-20 11:42:39 +05:30
Sidharth Vinod and GitHub
ce50b65cde
Merge pull request #1775 from mermaid-js/sidv/privacy
...
chore: Highlight external services
2025-08-11 19:49:24 +05:30
Sidharth Vinod
ceaeb1eb23
chore: Organize imports
2025-08-05 01:08:14 +05:30