]> BookStack Code Mirror - bookstack/commit
Improved tag suggestion handling
authorDan Brown <redacted>
Wed, 28 Sep 2022 12:50:40 +0000 (13:50 +0100)
committerDan Brown <redacted>
Wed, 28 Sep 2022 12:50:40 +0000 (13:50 +0100)
commit8f3430d3867ca8880c4f259b2c58647eb2b2c5ea
treead8a95cbbdfcfd584cbb416c3805009530bec7ff
parent1ac1cf0c786b783a17bcc60828e42ca13a683c11
Improved tag suggestion handling

- Aligned prefix-type filtering with back-end.
- Increased suggestion search cut-off from 3 to 4.
- Increased amount of suggestions shown.
- Ordered suggestions to be name asc, as you'd expect on search.
- Updated front-end filtering to use full search query, instead of
  truncated version, for further front-end filtering capability.

Related to #3720
app/Actions/TagRepo.php
app/Http/Controllers/TagController.php
resources/js/components/auto-suggest.js