Commit Graph

19 Commits

Author SHA1 Message Date
Rachel Powers
c1f4cb23d4 refactor(frontend): use new frozen object to fill values for baseObject mixin, proxy vm to webworker to avoid hogging main thread 2024-05-29 00:27:28 -07:00
Rachel Powers
078e2bb05a make sure device pins can be set and fix device update events for device removal 2024-04-28 14:56:49 -07:00
Rachel Powers
4ac823a1bc fix: device id change UI event chain fixed; changing the Active IC's ID no longer breaks the UI 2024-04-28 12:55:02 -07:00
Rachel Powers
cfa240c579 perf: performance improvments
- switch to BTreeMap for consistant ordering of fields (less UI updates)
- cache calls to expensive getters in the vm via witha Proxy on
  DeviceRefs
- have DeviceMixin explicitly subscribe to device property changes to
  limit updates
- split fields into seperate componate to avoid rerender of other
  components
- speedup ic10emu_wasm DeviceRef::get_slots by only calling serde once.

Signed-off-by: Rachel Powers <508861+Ryex@users.noreply.github.com>
2024-04-28 12:54:24 -07:00
Rachel Powers
2480a08ada exchange quantity input for clear button
- slight speed up, prevent unneeded deviceMixin updates

In future need to let Mixin component subscribe to changes they care
about

Signed-off-by: Rachel Powers <508861+Ryex@users.noreply.github.com>
2024-04-28 12:54:21 -07:00
Rachel Powers
c87d3f8bd8 feat(slots UI): better slot UI 2024-04-28 12:53:13 -07:00
Rachel Powers
eb4463c8ab perf: improve slot UI + device search speedup
Signed-off-by: Rachel Powers <508861+Ryex@users.noreply.github.com>
2024-04-28 12:52:43 -07:00
Rachel Powers
17907151b3 feat(slots UI): much better slot occupant card 2024-04-28 12:48:05 -07:00
Rachel Powers
d240095020 refactor device.ts to split up code 2024-04-22 18:28:59 -07:00
Rachel Powers
d7d84fa7e6 move to rsbuild over webpack 2024-04-20 14:56:53 -07:00
Rachel Powers
756a47510f ensure all decorators use accessor 2024-04-20 14:40:31 -07:00
Rachel Powers
e4d42d69a5 persist vm session 2024-04-20 01:39:10 -07:00
Rachel Powers
9a374a4f73 save VM state 2024-04-19 20:06:19 -07:00
Rachel Powers
ad55b65755 stablize device order, fix UI desync when devices are added or removed 2024-04-16 15:54:36 -07:00
Rachel Powers
18095d0136 refine UI events with multiple devices in play 2024-04-16 14:13:41 -07:00
Rachel Powers
4e6ac09c5e device templates exist now 2024-04-15 21:30:05 -07:00
Rachel Powers
4f6d9df665 allow device cards to collapse
Signed-off-by: Rachel Powers <508861+Ryex@users.noreply.github.com>
2024-04-10 02:16:12 -07:00
Rachel Powers
3cdcc742b9 Device Cards
brings the rework inline were last efforts left off

Signed-off-by: Rachel Powers <508861+Ryex@users.noreply.github.com>
2024-04-09 21:01:12 -07:00
Rachel Powers
ef0d2e6327 rename js folder to ts 2024-04-08 12:27:26 -07:00