📌 Description
Similarly to the anchor detail route, src/app/settlements/[id]/loading.tsx likely renders a bare Spinner, while SettlementDetail (src/components/SettlementDetail.tsx) renders a heading with a StatusBadge, a four-field dl grid, and conditional action buttons — a noticeably richer layout than a single spinner.
🧩 Requirements and context
- Update
src/app/settlements/[id]/loading.tsx to render a Card-wrapped skeleton approximating SettlementDetail's heading + four-field dl grid layout.
- Keep the back-link area consistent with
SettlementDetail's actual structure.
🛠️ Suggested execution
- Update
src/app/settlements/[id]/loading.tsx to compose a skeleton resembling SettlementDetail's layout using Card and placeholder bars.
- Cross-check against
src/components/SettlementDetail.tsx's actual JSX structure to keep proportions reasonable.
✅ Acceptance criteria
🔒 Security notes
No new attack surface; a loading-state UI polish task.
📋 Guidelines
- Minimum 95% test coverage
- Clear documentation
- Timeframe: 96 hours
📌 Description
Similarly to the anchor detail route,
src/app/settlements/[id]/loading.tsxlikely renders a bareSpinner, whileSettlementDetail(src/components/SettlementDetail.tsx) renders a heading with aStatusBadge, a four-fielddlgrid, and conditional action buttons — a noticeably richer layout than a single spinner.🧩 Requirements and context
src/app/settlements/[id]/loading.tsxto render aCard-wrapped skeleton approximatingSettlementDetail's heading + four-fielddlgrid layout.SettlementDetail's actual structure.🛠️ Suggested execution
src/app/settlements/[id]/loading.tsxto compose a skeleton resemblingSettlementDetail's layout usingCardand placeholder bars.src/components/SettlementDetail.tsx's actual JSX structure to keep proportions reasonable.✅ Acceptance criteria
🔒 Security notes
No new attack surface; a loading-state UI polish task.
📋 Guidelines