chatwoot/app/javascript
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
..
dashboard refactor: use css only last item detection (#10363) 2024-10-31 09:39:18 +05:30
design-system feat: Add histoire for component playground (#10256) 2024-10-09 22:10:53 -07:00
entrypoints feat(v4): Auto-navigate to first menu item on group menu open(#10350) 2024-10-25 13:01:29 -07:00
portal style: apply fixes for eslint issues [cw-3590] (#10210) 2024-10-03 15:02:12 +05:30
sdk fix: Avoid overflow caused by the empty span element (#9753) 2024-07-10 19:56:46 -07:00
shared fix: Dropdown menu issues (#10364) 2024-10-29 16:10:35 +05:30
superadmin_pages chore: fix circleci on vite build (#10214) 2024-10-07 15:27:41 +05:30
survey chore: update interpolation syntax for i18n files (#10198) 2024-10-07 11:12:40 -07:00
v3 feat(v4): Auto-navigate to first menu item on group menu open(#10350) 2024-10-25 13:01:29 -07:00
widget chore: fix circleci on vite build (#10214) 2024-10-07 15:27:41 +05:30
histoire.setup.ts feat(v4): Update the help center portal design (#10296) 2024-10-23 22:09:36 -07:00