invent-framework / invent

Express yourself with code.
https://invent-framework.github.io/
Apache License 2.0
108 stars 12 forks source link

Address tech debt: better (more meaningful and human friendly) auto-generated ids. #86

Open ntoll opened 1 month ago

ntoll commented 1 month ago

Currently DOM ids are something like invent-62h3kdg21k. They could be more meaningful like: invent-button-click-me (taking invent + the component type [button] and a slugged button label [click me]). The heuristics for such names probably live in the class defining the component to be given an ID (i.e. the Button knows how to create human friendly unique button ids).