8 Commits
Author SHA1 Message Date
Israr 7e88b62f6c Add vite-bundle-analyzer for bundle size checking (#1679)
* Add vite-bundle-analyzer for bundle size checking

* make bundle-analyzer optional
2026-04-28 22:33:22 +12:00
Israr e7e39f042a Improve editor load and keep Monaco features stable. (#1658)
* Improve editor load and keep Monaco features stable.

Load important Monaco parts first, move heavy parts to background loading, and fix local dev service worker behavior so editor features stay reliable.

* update esbuild.wsm

* fix editor syntax color and highliting

* correct minor nits

* correct minor nits (2)
2026-04-21 23:02:48 +12:00
Israr d96c6ff26c editor script icons UX (#1621)
* Improve script icons in editor

Show edit icon only for the current user script and keep delete behavior safe for user scripts.

* Polish script rename and icon layout

Keep rename inline, show typed text while renaming, and keep icons clean for long script names.

* removed edit icon from dropdown and the dropdown width was full in less then 820px screen width so i solved it

* i have made some changes
2026-04-08 08:48:00 +12:00
Israr 98c317fff8 Feature/editor-draggable-pane-dividers (#1599)
* fix(editor): stabilize refresh handling and offline behavior

Fix editor state transitions during auto-typing refreshes and reduce noisy logging from worker/bundler paths.

Improve PWA/dev offline reliability by updating service worker registration, cache versioning, app-shell precache, and local font asset usage for the Godel example.

Use same-origin manifest/favicon assets and move model-viewer import out of inline HTML to avoid Vite html-proxy issues.

* added comments

* added draggable pane dividers

* added changes to wrap the monaco editor content to its window and hide horizontal scrollbar

* fix(editor): replace pane clamp magic numbers with constants
2026-03-20 13:38:55 +13:00
Israr a8f28ab6a8 fix(editor): stabilize refresh handling and offline behavior (#1593)
* fix(editor): stabilize refresh handling and offline behavior

Fix editor state transitions during auto-typing refreshes and reduce noisy logging from worker/bundler paths.

Improve PWA/dev offline reliability by updating service worker registration, cache versioning, app-shell precache, and local font asset usage for the Godel example.

Use same-origin manifest/favicon assets and move model-viewer import out of inline HTML to avoid Vite html-proxy issues.

* added comments

* fix(editor): remove thi.ng skip and sw url version
2026-03-18 11:41:39 +13:00
Israr 91d700b639 refactor(editor): restore minimal fetching types hint (#1587)
* refactor(editor): remove fetching-types indicator UI

* refactor(editor): restore minimal fetching types hint

* style(editor): apply clang-format
2026-03-16 16:12:07 +13:00
Israr 4a56b0f9f2 Follow-up fix for deployed PWA service-worker path and type-fetch 404 noise (#1583)
* Fix ManifoldCAD PWA paths and manifest metadata

* fix(editor): handle service worker registration failures and stabilize PWA path resolution

* fix(editor): handle service worker registration failures and stabilize PWA path resolution

* style(editor): align editor.js with clang-format

* fix(editor): clear type fetch indicator after resolution

* fix(editor): improve type indicator visibility and harden service worker

- Declare autoTypings with let before AutoTypings.create() to avoid
  TDZ issues when callbacks fire during creation
- Enforce a minimum 350ms display window for the type-fetch indicator
  so it is visible even when resolution completes very quickly
- Track resolveEventUntil timestamp so a ResolveNewImports event alone
  is enough to keep the indicator on even if isResolving clears early
- Use console.log (not console.debug) for indicator ON/OFF transitions
  so they appear without enabling Verbose in DevTools

service-worker.js:
- Guard fetch handler to only intercept GET requests so POST/PUT etc.
  pass through without error
- Wrap network fetch in try/catch; fall back to cached response on
  network failure instead of propagating an uncaught rejection
- Add skipWaiting() on install and clients.claim() on activate for
  immediate worker takeover on update

* style(editor): apply clang-format to editor.js and service-worker.js

* refactor(editor): simplify type indicator for review split
2026-03-15 22:41:51 +13:00
Israr 5a1fcb9963 Restore ManifoldCAD PWA paths and manifest metadata (#1580)
Fix ManifoldCAD PWA paths and manifest metadata
2026-03-14 09:20:23 +13:00