You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+17-6Lines changed: 17 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,15 +2,16 @@
2
2
3
3
ReturnHub is a Django 5 application for managing online-retail return cases across customer, merchant, ops, and admin roles. The project combines server-rendered workflow surfaces with DRF APIs, a service-layer workflow core, persisted audit events, and artifact-backed escalation-risk scoring.
4
4
5
-
## Current state
5
+
## Feature-complete state
6
6
7
-
The repository currently includes:
7
+
Core ReturnHub development is complete as of April 23, 2026. The repository now represents a feature-complete portfolio baseline for the returns workflow product, including:
8
8
9
9
- Django 5.1 + Django REST Framework on Python 3.12
10
10
- PostgreSQL-backed local development through Docker Compose
- authenticated console dashboards for admin, ops, customer, and merchant users
14
+
- customer and merchant case-list portals with stable pagination and role-bound access
14
15
- a standalone ops queue at `/ops/` with filtering, ordering, summary cards, and shared pagination
15
16
- an ops case-detail workspace at `/ops/{case_id}/` with inline status changes, follow-up requests, internal notes, timeline, risk panel, and evidence list
16
17
- a shared case detail route at `/cases/{case_id}/` with role-aware document visibility and inline uploads
- ops and admins can update status, set priority, and add internal notes
@@ -159,6 +164,8 @@ The project includes:
159
164
- a committed model registry at `ml/registry/model_registry.json`
160
165
- training, retraining, and dataset-generation management commands
161
166
167
+
The ML layer is production-path ready for this baseline: scoring is artifact-backed when the active model can be loaded, degrades safely to placeholder scoring when artifacts are unavailable, persists `RiskScore`, and emits `risk_scored` audit events.
Copy file name to clipboardExpand all lines: RUNBOOK.md
+21-5Lines changed: 21 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,10 +1,10 @@
1
1
# ReturnHub Runbook
2
2
3
-
This runbook takes the project from clean clone to a verified local environment and checks the routes, workflows, APIs, ML artifacts, and proof commands that currently match the repository.
3
+
This runbook takes the project from clean clone to a verified local environment and checks the routes, workflows, APIs, ML artifacts, and proof commands that match the feature-complete ReturnHub baseline.
4
4
5
-
## Sprint 7 walkthrough intent
5
+
## Feature-complete walkthrough intent
6
6
7
-
This runbook covers the operational commands and checks needed to run, inspect, and verify ReturnHub after Sprint 7. It is intentionally practical. It assumes a working development or production-like environment and focuses on the tasks an operator, reviewer, or hiring manager might perform during a walkthrough.
7
+
This runbook covers the operational commands and checks needed to run, inspect, and verify the completed core ReturnHub product as of April 23, 2026. It is intentionally practical. It assumes a working development or production-like environment and focuses on the tasks an operator, reviewer, or hiring manager might perform during a walkthrough.
8
8
9
9
Common operator commands:
10
10
@@ -40,6 +40,7 @@ This runbook verifies:
40
40
- Docker-based local setup with PostgreSQL
41
41
- Django migrations and deterministic demo data
42
42
- public and authenticated UI routes
43
+
- customer and merchant case-list portals
43
44
- ops queue and ops case-detail workflows
44
45
- shared case-detail document upload flow
45
46
- returns, documents, queue, risk, audit-export, and analytics APIs
Copy file name to clipboardExpand all lines: docs/DEMO_SCRIPT.md
+8-2Lines changed: 8 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,7 +3,7 @@
3
3
4
4
## Goal
5
5
6
-
This script provides a deterministic walkthrough of the current multi-surface ReturnHub product after Sprint 7. It is designed for a five to eight minute demo and follows the repo's current Docker-based workflow, seeded data, and live routes.
6
+
This script provides a deterministic walkthrough of the feature-complete multi-surface ReturnHub product as of April 23, 2026. It is designed for a five to eight minute demo and follows the repo's Docker-based workflow, seeded data, and live routes.
7
7
8
8
## Pre-demo preparation
9
9
@@ -102,6 +102,12 @@ Narration:
102
102
- Ops sees queue-oriented operational context.
103
103
- Customer and merchant consoles show role-specific linked case views.
104
104
105
+
Optional route callout:
106
+
107
+
-`customer.one` can also open `http://127.0.0.1:8000/customer/`
108
+
-`merchant.one` can also open `http://127.0.0.1:8000/merchant/`
109
+
- these list portals provide role-bound case browsing with stable pagination
110
+
105
111
### 4. Walk through the ops queue
106
112
107
113
Open:
@@ -237,7 +243,7 @@ Suggested pacing for a five to eight minute walkthrough:
237
243
238
244
## Optional proof commands
239
245
240
-
For a more evidence-driven walkthrough, use the current runbook:
246
+
For a more evidence-driven walkthrough, use the runbook:
Copy file name to clipboardExpand all lines: docs/api/ops-queue-contract.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
1
<!-- path: docs/api/ops-queue-contract.md -->
2
2
# Ops Queue Contract
3
3
4
-
This document describes the queue contract currently shared by the server-rendered ops surface at `/ops/` and the DRF queue endpoint at `/api/returns/queue/`.
4
+
This document describes the queue contract shared by the feature-complete server-rendered ops surface at `/ops/` and the DRF queue endpoint at `/api/returns/queue/`.
5
5
6
6
## Supported query parameters
7
7
@@ -88,7 +88,7 @@ Pagination links preserve active filters except for `page`.
Copy file name to clipboardExpand all lines: docs/api/returns-workflow.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,7 @@
1
1
<!-- path: docs/api/returns-workflow.md -->
2
2
# Returns Workflow API
3
3
4
-
This document describes the return-case API behavior implemented in the current repository.
4
+
This document describes the return-case API behavior implemented for the feature-complete ReturnHub baseline.
5
5
6
6
## Runtime routes
7
7
@@ -17,7 +17,7 @@ The live application exposes these routes:
17
17
-`GET /api/returns/{case_id}/risk/`
18
18
-`GET /api/returns/{case_id}/audit-export/`
19
19
20
-
The repository also contains compatibility wrappers in `api/` and canonical route modules in `returns/api/`; both are aligned around the same workflow services.
20
+
The repository also contains compatibility wrappers in `api/` and canonical route modules in `returns/api/`; both are aligned around the same workflow services. The server-rendered customer, merchant, ops, and shared case-detail pages use the same service-layer behavior where applicable.
0 commit comments