Skip to content

Add previous/next navigation to detail pages - #12655

Closed
Lescure1004 wants to merge 1 commit into
inventree:masterfrom
Lescure1004:master
Closed

Lescure1004 wants to merge 1 commit into
inventree:masterfrom
Lescure1004:master

Conversation

@Lescure1004

Copy link
Copy Markdown

What

Adds previous/next navigation to detail pages so a user can move between
the filtered records they came from, without having to return to the list.

Closes #12397

How

  • A small zustand store (TableNavigationState) records the ordered list of
    primary keys and the current record when a table row is clicked.
  • PageDetail reads that context and renders previous/next buttons in the
    header, disabled at the first/last record, navigating via getDetailUrl().
  • When no list context exists (e.g. opening a detail URL directly), the
    buttons are not rendered.

Screenshots / GIF

Checklist

  • Frontend change only
  • i18n keys added (Previous, Next)
  • Playwright test added

@netlify

netlify Bot commented Aug 18, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for inventree-web-pui-preview ready!

Name Link
🔨 Latest commit ef216ab
🔍 Latest deploy log https://app.netlify.com/projects/inventree-web-pui-preview/deploys/6a844861bcd1c60008250f31
😎 Deploy Preview https://deploy-preview-12655--inventree-web-pui-preview.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
Lighthouse
Lighthouse
1 paths audited
Performance: 97 (no change from production)
Accessibility: 81 (no change from production)
Best Practices: 100 (no change from production)
SEO: 78 (no change from production)
PWA: -
View the detailed breakdown and full score reports
🤖 Make changes Run an agent on this branch

To edit notification comments on pull requests, go to your Netlify project configuration.

@matmair

matmair commented Aug 18, 2026

Copy link
Copy Markdown
Member

closing in favor of #12585

@matmair matmair closed this Aug 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[FR] Add Next and Previous Icon to switch easily between 2 objects

2 participants