Commit Graph

93 Commits

Author SHA1 Message Date
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
6cc2189921 perf: vastly improve load speed
- delay render non visable device tabs

in the future there are some significant speed gains to be made by
limiting calls into the rust VM for data. serialize it all up front.

Signed-off-by: Rachel Powers <508861+Ryex@users.noreply.github.com>
2024-04-28 12:54:13 -07:00
Rachel Powers
dbb2f71fdc feat:(slots UI): functional slots 2024-04-28 12:53:51 -07:00
Rachel Powers
19c85c1078 properly set occupant hash, max quantity, sorting class 2024-04-28 12:53:47 -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
c1a451ad47 docs: improve help string patches + unwrap translation strings
Signed-off-by: Rachel Powers <508861+Ryex@users.noreply.github.com>
2024-04-28 12:52:16 -07:00
Rachel Powers
a55419394c fix demo preset icslot not having proper prefabhash 2024-04-28 12:52:11 -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
e18698dae0 fix sl-divider
(tailwindcss was clobering it's border display)

Signed-off-by: Rachel Powers <508861+Ryex@users.noreply.github.com>
2024-04-22 16:11:25 -07:00
Rachel Powers
cba4abd34f fix Changelog dialog label
Signed-off-by: Rachel Powers <508861+Ryex@users.noreply.github.com>
2024-04-22 15:55:20 -07:00
Rachel Powers
ed6b12093e fix tailwindcss sheet detection for production 2024-04-21 00:40:31 -07:00
Rachel Powers
55aa3cf4aa changelog dialog 2024-04-21 00:31:44 -07:00
Rachel Powers
cf1f3e15af use full vm state to restore backwards compatable links 2024-04-20 22:15:20 -07:00
Rachel Powers
185449404d save local sessions dialog 2024-04-20 20:56:37 -07:00
Rachel Powers
599ad38adc move content to new domain 2024-04-20 15:03:30 -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
29d7a10f47 ensure all numeric values preserve across session 2024-04-20 10:58:42 -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
c63a1b3a4f pass along more generated types 2024-04-18 15:31:31 -07:00
Rachel Powers
bd5695c415 make non derived readonly fields writable from the ui 2024-04-18 13:18:03 -07:00
Rachel Powers
1c18b8bf18 fix some formatter induced errors 2024-04-17 20:50:53 -07:00
Rachel Powers
c4a11bf696 let devices be removed 2024-04-17 19:22:43 -07:00
Rachel Powers
651a4ad067 inprove device-template header layout 2024-04-17 17:05:57 -07:00
Rachel Powers
a8c8dde9a5 pnpm update + enable symantic tokens
closes #16
2024-04-17 16:06:23 -07:00
Rachel Powers
9957be1b45 default device templates to use the default network 2024-04-17 15:04:41 -07:00
Rachel Powers
1fafed06a2 bump search delay, autoselect search text on open 2024-04-17 14:59:13 -07:00
Rachel Powers
67a0ccbf97 fix filter position and active tab in device list 2024-04-17 14:53:42 -07:00
Rachel Powers
b9f0980cce let user change Read Only fields 2024-04-17 14:47:16 -07:00
Rachel Powers
8ec48c508a fix hex parsing 2024-04-17 14:44:22 -07:00
Rachel Powers
b60cc44580 fix: slotType serial + feaures
- fix slotType serialisation
- show slot images including class if no occupant
- filter/search device list
2024-04-17 14:23:21 -07:00
Rachel Powers
7e2ea652c3 more performant search 2024-04-17 00:41:51 -07:00
Rachel Powers
fdec8c7639 parse hex and binary numbers, allow ids to be entered as hex or binary 2024-04-16 16:35:00 -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
16cff30d7d flesh out dbentry to device templates on frontend 2024-04-15 23:43:34 -07:00
Rachel Powers
4e6ac09c5e device templates exist now 2024-04-15 21:30:05 -07:00
Rachel Powers
a103049616 add reagents to devicedb 2024-04-15 16:01:03 -07:00
Rachel Powers
f29f4d7adc pull even more device data 2024-04-14 22:32:22 -07:00
Rachel Powers
eed4f1f429 Allow the Id of a device to be changed, toast errors 2024-04-14 17:21:57 -07:00
Rachel Powers
9283d9d939 better device database, pins and sorting / slot class + types 2024-04-14 03:14:46 -07:00
Rachel Powers
fb192fbbe6 link error field, enhance networks, improve device update envents 2024-04-13 21:44:59 -07:00
Rachel Powers
d50eabe594 make slots account for having occupents. return logic fields that are deived form the device or slot occupant 2024-04-13 00:45:39 -07:00
Rachel Powers
567d591f42 fix shoelace assets
Signed-off-by: Rachel Powers <508861+Ryex@users.noreply.github.com>
2024-04-12 14:19:44 -07:00
Rachel Powers
fac6616b2c code review + esbuild for faster bundle (1.7x boost) 2024-04-12 12:59:12 -07:00
Rachel Powers
bc51a8d794 final cleanup, template device template cards
Signed-off-by: Rachel Powers <508861+Ryex@users.noreply.github.com>
2024-04-11 19:24:03 -07:00