Commit Graph
46 Commits
Author SHA1 Message Date
Sidharth VinodandClaude Fable 5 b3c8bd6c28 refactor: Migrate editor state from svelte/store to runes
Replace the writable+derived store pipeline in state.ts with a
state.svelte.ts module: a deep $state inputState mutated only through
the exported update functions, each of which persists the snapshot and
re-validates it asynchronously into validatedState.current (with
urls.current derived from it). Store subscriptions in components become
$effect blocks, and the rough/grid toggles use function bindings.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-06-10 00:34:07 +05:30
Sidharth Vinod 0e0da3b1e9 chore: Reduce Error debounce interval 2026-04-01 20:43:15 +05:30
Sidharth Vinod a85bc09092 fix: Track mermaid.ai outflow 2026-03-04 01:10:12 +05:30
Sidharth Vinod ea6ae3d7e2 feat: debounce error section 2025-10-08 19:57:20 +05:30
Sidharth VinodandAlois Klink 400f3ecf95 fix: Hide AI Repair button in config tab
Co-authored-by: Alois Klink <alois@aloisklink.com>
2025-05-26 23:14:45 +05:30
Sidharth Vinod 4bf6dc0db6 chore: Unify code update logic 2025-04-13 13:12:30 +05:30
Sidharth Vinod 74ad9f44d0 feat: Add mobile support 2025-04-12 20:00:52 +05:30
Sidharth Vinod b17e136225 MC-2931 Add utm params to MC URLs 2025-04-02 23:50:12 +05:30
Sidharth Vinod 501c983b99 test: Fix tests 2025-03-19 19:10:51 -07:00
Sidharth Vinod f166156b86 Merge branch 'develop' into sidv/redesign
* develop:
  chore: Update script name
  chore: Remove cypress
  chore: Ignore cypress
  chore: Update test exclude
  chore: Tweak test config
  chore: Ignore cypress
  chore: Fix pw issues
  chore: Add playwright tests
2025-03-18 12:59:32 -07:00
Sidharth Vinod 3b2c7caf07 fix: New diagram button, add MC links 2025-03-18 11:11:31 -07:00
Sidharth Vinod 324dd0b4b2 chore: Remove cypress 2025-03-17 21:27:33 -07:00
Sidharth Vinod 4dbe52126e chore: Cleanup editor 2025-03-17 12:41:40 -07:00
Sidharth Vinod 8da3cdedd9 fix: Use McWrapper, fix PNG export 2025-03-17 11:18:40 -07:00
Sidharth Vinod 21be4caf82 Merge branch 'develop' into sidv/redesign
* develop:
  chore: Fix coverage dependency
  chore: sort gitignore
  chore: Add redirect to home on 404 error
  chore: Update subdomain
  chore: Update import
  chore: Remove redundant config
  chore: Add CNAME
  chore: Remove lint after build
  chore: Use official action to deploy to pages
  build: update Browserslist db
  fix: use `<output>` and `<pre>` to format errors
  Revert "feat: Sanitize error message"
2025-03-16 17:34:39 -07:00
Sidharth Vinod b2bb5b2bef chore: Minor cleanup 2025-03-14 19:37:25 -07:00
Sidharth Vinod 99255ab693 Merge branch 'develop' into pr/aloisklink/1496
* develop: (101 commits)
  fix: Flickering when rendering, PanZoom & Rough mode combined
  chore: Simplify queueing logic
  fix: Blank screen on initial load
  chore: Add delay for playground toggle
  fix: Record correct diagram type, send playground toggle event immediately.
  chore(deps): update dependency autoprefixer to v10.4.21
  chore(deps): update all non-major dependencies
  chore(deps): update dependency typescript to v5.8.2
  chore(deps): update all non-major dependencies
  build: update Browserslist db
  Use netlify to redirect users
  chore: Add sitemap to robots.txt
  fix: Add redirect for /index.html
  chore: Add sitemap
  fix: Do not index /view page
  chore(deps): update all non-major dependencies
  feat: Pause banner animation when mouse is on the banner
  fix: Layout for banner
  use snippets
  update urls and styling
  ...
2025-03-14 18:08:52 -07:00
Sidharth Vinod 44e44ede97 feat: MermaidChart tooltip 2025-03-13 22:03:16 -07:00
Sidharth Vinod b624ecb859 feat: Error popup 2025-03-13 20:21:38 -07:00
Sidharth Vinod fcc7a03650 feat: Migrate to Material icons with Iconify, partial 2025-03-12 21:17:36 -07:00
Sidharth Vinod f608761fa2 feat: Dark mode 2025-03-10 21:27:50 -07:00
Sidharth Vinod 9934429c4f fix: Cards 2025-03-06 14:30:18 +05:30
Sidharth Vinod 190bac8c70 Svelte 5 migration 2024-10-30 23:38:20 +05:30
Alois Klink b58577b72d fix: use <output> and <pre> to format errors
Use the `<output>` and `<pre>` HTML elements to format mermaid errors,
instead just adding the error message as HTML.

Using `<pre>` avoids the need for sanitizing any HTML (or using a
`monospace` font in CSS, since `<pre>` does this automatically).

Using `<output>` means that users using screenreaders should have a
better experience when using the mermaid live editor.

on-behalf-of: @Mermaid-Chart <hello@mermaidchart.com>
2024-07-26 17:30:39 +09:00
Alois Klink 0671a9b2f1 Revert "feat: Sanitize error message"
This reverts commit 996a20d90e.

A better way to do fix this bug would be to not parse the syntax error
as HTML in the first place.
2024-07-26 17:20:15 +09:00
Sidharth Vinod 996a20d90e feat: Sanitize error message 2024-07-24 11:26:57 +05:30
Sidharth Vinod 49edf2e8e2 Merge branch 'develop' into sidv/errorDialogue
* develop: (139 commits)
  chore(deps): update all non-major dependencies
  chore(deps): update all non-major dependencies
  Remove stalebot
  build: update Browserslist db
  build: update Browserslist db
  chore: Add isRough to stats
  Update snapshots
  feat: Add rough mode
  fix(deps): update dependency mermaid to v10.9.1
  chore(deps): update all non-major dependencies
  build: update Browserslist db
  chore(deps): update dependency svelte to v4.2.16
  chore(deps): update all non-major dependencies
  chore(deps): update all non-major dependencies
  chore(deps): update all non-major dependencies
  build: update Browserslist db
  build: update Browserslist db
  chore(deps): update all non-major dependencies
  chore(deps): update all non-major dependencies
  Update README.md
  ...
2024-06-16 20:18:09 +05:30
Sidharth Vinod e6e2b62e82 test: Verify adaptive auto sync 2024-01-17 22:28:43 +05:30
Sidharth Vinod 8667c6de33 chore: Update eslint plugin and fix errors 2024-01-15 12:13:13 +05:30
Sidharth Vinod 087fb897a0 chore: Auto format and fix warnings 2024-01-11 22:06:29 +05:30
Sidharth Vinod 8cb7bffc28 chore: Fix test without ID 2023-09-26 11:32:40 +05:30
Sidharth Vinod 4fda534c6a chore: Add id to fix test 2023-09-26 10:56:49 +05:30
Sidharth Vinod f64eaaa528 refactor: Remove unnecessary div 2023-09-26 10:54:42 +05:30
Sidharth Vinod 3ce91d9d22 chore: Simplify classes 2023-09-15 11:38:07 +05:30
Sidharth Vinod 182b488552 Increase max height 2023-09-15 11:21:22 +05:30
Sidharth Vinod 17f27de9bd feat: Move error dialogue to bottom of editor. 2023-09-15 11:12:44 +05:30
Sidharth Vinod f209011795 Remove unnecessary completions 2023-04-27 11:31:54 +05:30
Sidharth Vinod 5f99efa611 Remove suggestions 2023-04-25 13:42:27 +05:30
Sidharth Vinod 79fe5a79cd Properly load monaco workers 2023-04-20 12:20:46 +05:30
Sidharth Vinod ab0bdf1780 Properly load monaco workers 2023-04-20 12:20:31 +05:30
Sidharth Vinod b8fe37f782 Fix editor 2023-04-19 18:38:32 +05:30
Sidharth Vinod 38975c9a32 Merge branch 'develop' into fix/monaco
* develop: (356 commits)
  chore(deps): update all non-major dependencies
  build: update Browserslist db
  fix Test
  chore(deps): update all non-major dependencies
  chore(deps): update node.js to v19
  chore(deps): update dependency jsdom to v21
  chore(deps): update actions/stale action to v8
  chore(deps): update all non-major dependencies
  Bump d3-color from 3.0.1 to 3.1.0
  Did it really work??
  Reduce timeouts
  Splitup tests
  cacheBust loadSite
  Reduce timeout & retries
  Update typeInEditor
  Fix commenting test
  Fix commenting test
  Fix loadSite ?
  Fix commenting test
  Fix branch test
  ...
2023-04-19 18:33:09 +05:30
Sidharth Vinod 6ece0a8a94 comment out consoles 2023-02-16 15:55:07 +05:30
Sidharth Vinod 85ad89b915 chore: Cleanup potentially
problematic code.
2022-11-15 18:48:16 +05:30
Sidharth Vinod b0aa0a9cb2 fix: Type errors 2022-11-15 17:03:25 +05:30
Sidharth Vinod 233f1822d1 chore: Rename components 2022-11-15 16:04:36 +05:30