Inventoros 2.8.0
This release reorganises the main menu. The single long sidebar list becomes a two-level sidebar: a narrow rail of sections and a panel that lists only the pages in the section you are in. There are no migrations and no new settings.
A cleaner menu
- Section rail. A navy rail holds one icon per section: Workspace, Catalog, Stock, Insights and, when plugins add pages, Plugins. Admin and your account sit at its foot. Hover or keyboard focus shows each section's name.
- Section panel. Beside the rail, a panel lists the pages of one section, so the menu shows at most eight core links instead of twenty-four. It follows the page you are on; picking another rail icon swaps the panel without leaving the page.
- Account menu. Your initials at the foot of the rail open your name, a link to your account settings and Log Out (Log Out used to sit at the bottom of the sidebar).
- Approvals at a glance. When requests are waiting for you and the Workspace panel is not showing, the Workspace icon carries a dot, and its name says how many are waiting.
Fits every screen
- 1280px and wider: rail and panel sit side by side, 240px in all (the old sidebar was 232px). The panel can be collapsed to the rail with the button next to "Inventoros"; the choice is remembered in that browser. While collapsed, a rail icon opens its section as a panel over the page.
- 768 to 1279px (tablets, small laptops): only the 56px rail is docked, so pages get 176px more room than before. A rail icon opens its section over the page; it closes on Escape, a click elsewhere, or when you go to a page.
- Phones: the menu button opens one drawer with the rail and the panel.
- The Stock by warehouse and Receive pages switch to their card layout below 64rem of page width instead of 52rem, so they keep cards on tablets now that the page is wider there.
Keyboard and screen readers
- Rail buttons are named, mark the current section (
aria-current), and, where they open a panel over the page, report whether it is open (aria-expanded). Arrow keys, Home and End move between them. - Focus rings on the rail are amber, which shows on navy where the usual blue ring would not. Escape hides a rail tooltip.
- Opening a section from the keyboard moves focus into its panel; Escape returns it to the rail. The phone drawer keeps focus inside it.
- The current page's link carries
aria-current="page".
For plugin authors
Menu items registered with register_menu_item() appear in the Plugins
section, which opens on its own while the user is on one of their pages (set
active_routes for pages under the item's route). Nothing changes in the
API.
For anyone with browser tests or scripts against the app
- Only the selected section's links are in the page. To reach a link in
another section, click its rail button first (
#workspace-navigation .workspace-rail button, named after the section). - Log Out is inside the account menu: click
[data-testid="user-menu"], then[data-testid="logout"].
Upgrading
Back up, then update to 2.8.0 the same way as for 2.7.x. Docker installs pull the 2.8.0 image. See UPGRADE.md.
Full list of changes: #479.