Repository navigation
feat(frontend): Add persistant filtered detail navigation in the url - #12585
SchrodingersGat merged 23 commits into
Conversation
✅ Deploy Preview for inventree-web-pui-preview canceled.
|
Unit TestsThis will require regression testing via playwright. |
|
@Jr-kenny this is starting to come together nicely I think that the placement is a bit wonky here - perhaps it makes more sense in the "breadcrumb" bar - and please adjust the layout to vertically center the items, larger icons, etc
|
|
An implementation request - putting all of the attributes into the URL gets pretty messy. Perhaps we can instead use a hash of the values, and then store the actual data in sessionStorage - keyed to the hash? So this way all we add is |
|
@SchrodingersGat that makes it not shareable, invalidating most of the usefulness of links |
|
Ok, I was not thinking about sharing, for me I think the main value is the quick navigation within the user's own table context. |
|
Yeah, I see what you mean. The current implementation puts the API URL, filters, index, PK, and field directly in the URL. I’ll switch that to a short |
@SchrodingersGat |
|
The bounty is scoped to be generally useful, not just for one user #12397 (comment) |
|
To be clear, I am not saying that I do not want the links to be shareable - I simply had neglected to consider that in my previous review. With regard to shareable links, there is a consideration we need to make - the API does not always return the same results for each user. For example, there are many API endpoints which filter against "assigned_to_me" (or similar) - which will obviously return different results for each user That being said I am keen to see the links be shareable - but, perhaps there is a way to also make the URLs cleaner? |
URL ShorteningIn terms of URL shortening, let's use this example: Variable NamesThe variable names can be shortened, as an example
Nav FieldMost of the time, the nav field will be Nav APIThe |
|
There is some visual "instability" when clicking through the navigation items - see video below. It would be better if the buttons did not alter the height of the navigation bar. export-1786840143205.mp4 |
|
@Jr-kenny also, can you please add a documentation section into |
matmair
left a comment
There was a problem hiding this comment.
I am happy with merging this and awarding the bounty
@SchrodingersGat agreed?
|
@Jr-kenny please claim your bounty on bounty hub https://www.bountyhub.dev/en/bounty/view/a157ff08-20cf-466a-9ab3-a321f515133f |
|
@matmair thanks again for merging #12585 and pointing me to the bounty. I tried to claim it on BountyHub, but the claim page says: “This bounty is exclusive, you need to be assigned to work on it in order to claim it.” The issue itself currently has no assignee, and BountyHub doesn’t seem to recognize me as assigned. Since you mentioned earlier that whoever’s solution was merged would be assigned, does'nt the bounty need to be assigned to
|
|
One more question on the bounty payment side — I’m new to BountyHub, so I didn’t realize beforehand that the payout setup requires SWIFT/BIC details. My current USD account only supports ACH and gives me an account number + routing number, but no SWIFT/BIC. Is there any alternative way you normally handle bounty payments in cases like this, or does it strictly have to go through BountyHub’s SWIFT-supported payout setup? |
|
I will write their support. All bounties go through bountyhub; they have stripe in the backend so there might be other options |
|
@Jr-kenny try again |
|
Just did I’ve sent the assignment request again. Thanks! |
|
You should now be able to claim the bounty with this pr link |
|
@Jr-kenny have you send your claim? I see that it is now assigned but I can not submit a claim for you, that seems to be only possible from your end |
|
Not yet , the assignment issue is fixed now, thanks. I’ve already contacted BountyHub support to ask whether there’s another supported payout option, but no response |




The detail navigation now follows the review feedback.
The helper is a
.tsxfile, and the navigation actions use the sharednavigateToLinkhandler. Previous and Next use Tabler icons with accessible labels and tooltips. A subtlex of yindicator shows the current position in the filtered result set, using the API count for the full total.I added a Playwright regression that opens a detail page from the table and moves from the first record to the second.
I checked this with
yarn tsc --noEmit,yarn build, Biome on the changed files, and a local Playwright browser flow against the demo dataset.Closes #12397