bryntum / support

An issues-only repository for the Bryntum project management component suite which includes powerful Grid, Scheduler, Calendar, Kanban Task Board and Gantt chart components all built in pure JS / CSS / TypeScript
https://www.bryntum.com
53 stars 6 forks source link

Mixins only used by a single target should show that target in search results, not the mixin #10025

Open isglass opened 2 weeks ago

isglass commented 2 weeks ago

For example StoreCRUD is only directly used by Store, it wont be mixed in else where. Need some docs tag to signal that + changed behavior for search. This search should ideally point to Store.add() instead of StoreCRUD.add():

Screenshot 2024-09-12 at 13 27 51

And the mixin itself could get a low rank to appear further down

arcady-zherdev commented 2 weeks ago

I think regardless if a mixin has one target or not we need to sort results by the following principles;

  1. Mixin targets go before the mixins
  2. The product owned entries go first (like SchedulerPro.* goes before 'Scheduler.*`)
  3. Entries are sorted by sub-classing depth ..so first Gantt.foo() then SchedulerPro.foo() then Scheduler.foo()