Skip to content

Conversation

@ruchamahabal
Copy link
Member

@ruchamahabal ruchamahabal commented Mar 31, 2025

Watchers on variables

Watcher on an object/array

This one watches billingItems array and computes total qty & price

watcher.mp4

Watcher on a primitive variable with immediate flag

This one watches searchText (bound to TextInput) and filters the results and sets it in itemsList variable. Run immediately marked for an eager watcher

watcher-immediate.mp4

Other fixes

  • Ported from Builder. Ref: fix(UX): Misc builder#334
  • Variable options not populating in events & prop binding. Moved the computed property to store
  • Fixed primitive variable styles -> font-mono
  • Slots were not working in FormControl & TextInput -> it was flagged under canHaveChildren()

Added Studio Client Script doctype to decouple scripts from events. Currently they are stored in the blocks JSON itself. But this will take some time so will do it after Build

ruchamahabal and others added 5 commits March 31, 2025 22:11
- Since it sometimes used to trigger updateDropTarget after drop event which used leave isDragging: true. This prevented the editor resizer from appearing after the drop.

- Also, refactored code a bit to avoid unnecessary DOM updates
This fixes zoom lag in new chrome browser. Apparently, combination of border-radius + box-shadow + css scale change is computationally very heavy for chrome browser (Although, it works well on Firefox and used to work in old chrome browser)

Co-authored-by: Suraj Shetty <[email protected]>
@ruchamahabal ruchamahabal changed the title feat: Watchers & Scripts feat: Watchers & Misc Fixes Mar 31, 2025
@ruchamahabal ruchamahabal merged commit a0308bb into frappe:develop Apr 1, 2025
1 check passed
@ruchamahabal ruchamahabal moved this to Done in Frappe Studio Apr 1, 2025
@ruchamahabal ruchamahabal mentioned this pull request Apr 1, 2025
5 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant