iachat/app/javascript/dashboard
Shivam Mishra 6e6c5a2f02
refactor: use css only last item detection (#10363)
The last item in the sidebar top level group has an indicator specified,
the problem in our case is that the structure can be nested and have sub
groups. So selecting the last item correctly can be tricky.

Previous implementation relied on the using DOM queries to find the last
item from a flat list of children, it would trigger on a `watch`. This
was error-prone as well as non idiomatic. The new approach is CSS-only
and reduces the unnecessary compute required.

Codepen for reference: https://codepen.io/scmmishra/pen/yLmKNLW

---------

Co-authored-by: Sivin Varghese <64252451+iamsivin@users.noreply.github.com>
2024-10-31 09:39:18 +05:30
..
api feat(v4): Update the help center portal design (#10296) 2024-10-23 22:09:36 -07:00
assets feat: Update colors (#10365) 2024-10-29 22:20:37 -07:00
components fix: Use addEventListener instead of onmessage to listen to chatwoot-dashboard-app:fetch-info (#10342) 2024-10-28 20:43:47 -07:00
components-next refactor: use css only last item detection (#10363) 2024-10-31 09:39:18 +05:30
composables feat: Add new sidebar for Chatwoot V4 (#10291) 2024-10-23 18:32:37 -07:00
constants feat: Vite + vue 3 💚 (#10047) 2024-10-02 00:36:30 -07:00
helper feat: Update button component (#10362) 2024-10-29 14:00:24 +05:30
i18n feat(v4): Help center portal redesign improvements (#10349) 2024-10-28 21:04:43 -07:00
mixins chore: fix circleci on vite build (#10214) 2024-10-07 15:27:41 +05:30
modules feat(v4): Auto-navigate to first menu item on group menu open(#10350) 2024-10-25 13:01:29 -07:00
routes feat(v4): Help center portal redesign improvements (#10349) 2024-10-28 21:04:43 -07:00
store feat(v4): Update the help center portal design (#10296) 2024-10-23 22:09:36 -07:00
App.vue fix: Resolve accountId from the route, initialize route-sync before the app is loaded (#10245) 2024-10-08 09:25:51 -07:00
featureFlags.js feat: Add new sidebar for Chatwoot V4 (#10291) 2024-10-23 18:32:37 -07:00