diff --git a/CHANGELOG.md b/CHANGELOG.md index 47e860a..04d8436 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -17,6 +17,11 @@ click handlers rather than from WalletProvider, so a cross-tab storage sync updates the button without notifying a user who didn't take the action. The button label and the disconnect confirmation dialog are unchanged. +Changed +UX: removed the standalone "← Back to anchors" / "← Back to settlements" +links from the anchor and settlement detail pages; the Breadcrumb +rendered above each detail component is now the single back-navigation +affordance on those pages. Fixed Build: restored declarations lost in an earlier merge that broke next build — AnchorsPanel's URL-backed sort state (sortParam, diff --git a/package-lock.json b/package-lock.json index 1ebcdb3..58d274f 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "anchornet-frontend", - "version": "0.9.0", + "version": "0.9.1", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "anchornet-frontend", - "version": "0.9.0", + "version": "0.9.1", "dependencies": { "next": "16.1.6", "react": "19.2.3", diff --git a/src/components/AnchorDetail.test.tsx b/src/components/AnchorDetail.test.tsx index e5ef022..d61754c 100644 --- a/src/components/AnchorDetail.test.tsx +++ b/src/components/AnchorDetail.test.tsx @@ -71,9 +71,6 @@ describe("AnchorDetail", () => { // Expect the distinct not‑found text expect(await screen.findByText(/anchor not found/i)).toBeInTheDocument(); - const backLink = screen.getByRole("link", { name: /← back to anchors/i }); - expect(backLink).toBeInTheDocument(); - expect(backLink).toHaveAttribute("href", "/anchors"); }); it("hides the deactivate action for an already-inactive anchor", async () => { diff --git a/src/components/AnchorDetail.tsx b/src/components/AnchorDetail.tsx index 8bf10ac..4c6826f 100644 --- a/src/components/AnchorDetail.tsx +++ b/src/components/AnchorDetail.tsx @@ -49,12 +49,6 @@ export function AnchorDetail({ return (
- - ← Back to anchors - {state.status === "loading" ? ( diff --git a/src/components/SettlementDetail.test.tsx b/src/components/SettlementDetail.test.tsx index ead9e35..3ad5307 100644 --- a/src/components/SettlementDetail.test.tsx +++ b/src/components/SettlementDetail.test.tsx @@ -73,9 +73,6 @@ describe("SettlementDetail", () => { // Expect the distinct not‑found text expect(await screen.findByText(/settlement not found/i)).toBeInTheDocument(); - const backLink = screen.getByRole('link', { name: /← back to settlements/i }); - expect(backLink).toBeInTheDocument(); - expect(backLink).toHaveAttribute('href', '/settlements'); }); diff --git a/src/components/SettlementDetail.tsx b/src/components/SettlementDetail.tsx index 7b81755..030bbb3 100644 --- a/src/components/SettlementDetail.tsx +++ b/src/components/SettlementDetail.tsx @@ -62,12 +62,6 @@ export function SettlementDetail({ return (
- - ← Back to settlements - {state.status === "loading" ? (