https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=43576

--- Comment #207 from Martin Renvoize (ashimema) 
<[email protected]> ---
Created attachment 211865
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=211865&action=edit
Bug 43576: (QA follow-up) Make the collapsed sidebar work on the Vue pages

Three problems on the pages where the sidebar is rendered by Vue
(Acquisitions > Vendors, Administration > SIP2, ERM, ILL, Preservation,
Circulation triggers):

- The content did not widen when the sidebar was collapsed. The rule
  that lets the main column fill the space is attached to the
  .sidebar-main class the templates give their main column, which the
  Vue Main components did not have. Add it.

- After a reload with the sidebar collapsed, the first click on the
  toggle did nothing. The toggle decided what to do from the .collapsed
  class of #sidebar-container, but the Vue sidebar is not rendered yet
  when the saved state is restored, so it never got that class while the
  page was already collapsed by the class set on <html> before first
  paint. Decide from the class on <html> instead.

- The collapsed icons had no label on hover, unlike those of the vendor
  and acquisitions menus, because NavigationItem did not set a title on
  its links. Set it to the item's title.

Add Cypress tests for the three.

To test:
1. Apply the patches, yarn js:build
2. Go to Acquisitions > Vendors and click "Toggle sidebar"
   => The sidebar shrinks to icons and the content fills the width, as
      on Circulation > Check in
3. Reload the page, then click "Toggle sidebar" once
   => The sidebar expands
4. Go to Administration > SIP2, click "Toggle sidebar" and hover over
   the icons
   => Each shows its label
5. Run the Cypress spec t/cypress/integration/Sidebar_spec.ts
   => All tests pass

Co-Authored-By: Claude Sonnet 5.5 <[email protected]>

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list -- [email protected]
To unsubscribe send an email to [email protected]
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to