Skip to content

Commit f9c7479

Browse files
Revert "feat(ui): update rule builder logic" (#268)
1 parent acfcf68 commit f9c7479

70 files changed

Lines changed: 742 additions & 845 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

README.md

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ docker compose --profile dashboard-postgres-ghcr up -d
7575
Open:
7676

7777
- API: `http://localhost:8080`
78-
- Dashboard: `http://localhost:8081/decision-engine/`
78+
- Dashboard: `http://localhost:8081/dashboard/`
7979
- Docs: `http://localhost:8081/introduction`
8080
- API reference: `http://localhost:8081/api-overview`
8181

@@ -115,11 +115,6 @@ For the full local dev environment (API + dashboard on port 5173 + docs), run:
115115

116116
This brings up Postgres, Redis, ClickHouse, and Kafka via Docker Compose, runs migrations, and starts the API server and dashboard locally. See [Local Setup Guide](docs/local-setup.md) for full details and options like `ONECLICK_KEEP_INFRA=1`.
117117

118-
Source-run dashboard routes are mounted at root, for example `http://localhost:5173/routing/rules`.
119-
Hosted builds can be mounted under a configured prefix such as `/decision-engine/`.
120-
Local dev API calls use `/decision-engine-api/*`, which Vite proxies to `http://localhost:8080`.
121-
Override the build prefix with `VITE_DASHBOARD_BASE_PATH=/your-prefix/ npm run build` from `website/`, and override the API base with `VITE_API_BASE_PATH=https://your-host/your-api-prefix`.
122-
123118
### Verify
124119

125120
```bash
@@ -161,6 +156,21 @@ Decision Engine fits into an existing payment stack without replacing your orche
161156

162157
---
163158

159+
## Roadmap
160+
161+
| Status | Feature | Description |
162+
|:------:|---------|-------------|
163+
|| Rule-based routing | Merchant-defined priority rules via Euclid |
164+
|| Dynamic ordering | Success-rate based gateway selection |
165+
|| Downtime detection | Automatic health monitoring |
166+
|| Multi-database | MySQL & PostgreSQL support |
167+
|| Dashboard | Visual rule management and decision audit UI |
168+
|| Team management | Invite members to merchant accounts |
169+
| 🔄 | Enhanced routing models | Better success rate prediction |
170+
| 📋 | Multi-tenant analytics | Per-tenant routing insights |
171+
| 📋 | GraphQL API | Alternative query interface |
172+
173+
---
164174

165175
## Contributing
166176

docker-compose.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ services:
162162
- "8081:80"
163163
volumes:
164164
- ./nginx/nginx.conf:/etc/nginx/nginx.conf:ro
165-
- ./website/dist:/usr/share/nginx/html/decision-engine:ro
165+
- ./website/dist:/usr/share/nginx/html/dashboard:ro
166166
depends_on:
167167
mintlify-docs:
168168
condition: service_healthy

docs/analytics.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,8 @@ RULE_EVALUATIONS=40 bash scripts/generate-routing-traffic.sh
6969
CONNECTORS_CSV=stripe,adyen,checkout,paypal bash scripts/generate-routing-traffic.sh
7070
```
7171

72-
After the script finishes, sign in as `merchant_space` and open `/decision-engine/analytics` or
73-
`/decision-engine/audit`. Analytics reads will resolve the merchant from your authenticated session.
72+
After the script finishes, sign in as `merchant_space` and open `/dashboard/analytics` or
73+
`/dashboard/audit`. Analytics reads will resolve the merchant from your authenticated session.
7474

7575
## ClickHouse Setup
7676

docs/api-overview.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ If the dashboard is hosted under a prefix such as `/decision-engine/`, the docs
7575
| Public | `GET /health`, `GET /health/ready`, `GET /health/diagnostics`, `POST /auth/signup`, `POST /auth/login` | None |
7676
| Admin bootstrap | `POST /merchant-account/create` | Admin secret configured for the deployment |
7777
| Protected | Routing, decision, score update, rule config, API key, merchant read/delete, analytics, audit, config, and authenticated auth routes | `Authorization: Bearer <jwt_token>` or `x-api-key: <api_key>` |
78+
| Sandbox | Same routes through `https://sandbox.hyperswitch.io` | Same auth rules plus `x-feature: decision-engine` |
7879

7980
## Common flows
8081

docs/api-reference.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ If you need rule examples such as AND, OR, nested AND+OR, `volume_split_priority
1919
| Public | `GET /health`, `GET /health/ready`, `GET /health/diagnostics`, `POST /auth/signup`, `POST /auth/login` | None |
2020
| Admin bootstrap | `POST /merchant-account/create` | Admin secret |
2121
| Protected | All routing, decision, score update, rule config, API key, merchant read/delete, analytics, audit, config, and authenticated auth routes | `Authorization: Bearer <jwt_token>` or `x-api-key: <api_key>` |
22+
| Sandbox | Any Decision Engine route served through `https://sandbox.hyperswitch.io` | Same auth rules plus `x-feature: decision-engine` |
2223

2324
## Endpoint Families
2425

@@ -93,4 +94,4 @@ If you need rule examples such as AND, OR, nested AND+OR, `volume_split_priority
9394

9495
## Curl Examples
9596

96-
For local and deployment smoke-test examples, use [API Examples](./api-refs/api-ref.mdx).
97+
For local and sandbox smoke-test examples, use [API Examples](./api-refs/api-ref.mdx).

docs/api-reference/endpoint/activateRoutingRule.mdx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,16 @@ Marks a created routing algorithm as active for the merchant/creator scope.
1212

1313
## Authentication
1414

15-
Protected. Send either `Authorization: Bearer <jwt_token>` or `x-api-key: <api_key>`.
15+
Protected. Send either `Authorization: Bearer <jwt_token>` or `x-api-key: <api_key>`. In sandbox, also send `x-feature: decision-engine`.
1616

1717
For local development, start with:
1818

1919
```bash
2020
export BASE_URL=http://localhost:8080
2121
export AUTH_HEADER="Authorization: Bearer <jwt_token>"
22+
# Sandbox only:
23+
# export BASE_URL=https://sandbox.hyperswitch.io
24+
# export FEATURE_HEADER="x-feature: decision-engine"
2225
```
2326

2427
## Request

docs/api-reference/endpoint/analyticsDecisions.mdx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,16 @@ Returns decision volume time series and routing approach totals for the selected
1212

1313
## Authentication
1414

15-
Protected. Send either `Authorization: Bearer <jwt_token>` or `x-api-key: <api_key>`.
15+
Protected. Send either `Authorization: Bearer <jwt_token>` or `x-api-key: <api_key>`. In sandbox, also send `x-feature: decision-engine`.
1616

1717
For local development, start with:
1818

1919
```bash
2020
export BASE_URL=http://localhost:8080
2121
export AUTH_HEADER="Authorization: Bearer <jwt_token>"
22+
# Sandbox only:
23+
# export BASE_URL=https://sandbox.hyperswitch.io
24+
# export FEATURE_HEADER="x-feature: decision-engine"
2225
```
2326

2427
## Request

docs/api-reference/endpoint/analyticsGatewayScores.mdx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,16 @@ Returns connector success-rate score snapshots and time series for auth-rate bas
1212

1313
## Authentication
1414

15-
Protected. Send either `Authorization: Bearer <jwt_token>` or `x-api-key: <api_key>`.
15+
Protected. Send either `Authorization: Bearer <jwt_token>` or `x-api-key: <api_key>`. In sandbox, also send `x-feature: decision-engine`.
1616

1717
For local development, start with:
1818

1919
```bash
2020
export BASE_URL=http://localhost:8080
2121
export AUTH_HEADER="Authorization: Bearer <jwt_token>"
22+
# Sandbox only:
23+
# export BASE_URL=https://sandbox.hyperswitch.io
24+
# export FEATURE_HEADER="x-feature: decision-engine"
2225
```
2326

2427
## Request

docs/api-reference/endpoint/analyticsLogSummaries.mdx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,16 @@ Returns error aggregates and recent failed event samples for the selected mercha
1212

1313
## Authentication
1414

15-
Protected. Send either `Authorization: Bearer <jwt_token>` or `x-api-key: <api_key>`.
15+
Protected. Send either `Authorization: Bearer <jwt_token>` or `x-api-key: <api_key>`. In sandbox, also send `x-feature: decision-engine`.
1616

1717
For local development, start with:
1818

1919
```bash
2020
export BASE_URL=http://localhost:8080
2121
export AUTH_HEADER="Authorization: Bearer <jwt_token>"
22+
# Sandbox only:
23+
# export BASE_URL=https://sandbox.hyperswitch.io
24+
# export FEATURE_HEADER="x-feature: decision-engine"
2225
```
2326

2427
## Request

docs/api-reference/endpoint/analyticsOverview.mdx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,16 @@ Returns summary metrics for the dashboard overview: request volume, gateway shar
1212

1313
## Authentication
1414

15-
Protected. Send either `Authorization: Bearer <jwt_token>` or `x-api-key: <api_key>`.
15+
Protected. Send either `Authorization: Bearer <jwt_token>` or `x-api-key: <api_key>`. In sandbox, also send `x-feature: decision-engine`.
1616

1717
For local development, start with:
1818

1919
```bash
2020
export BASE_URL=http://localhost:8080
2121
export AUTH_HEADER="Authorization: Bearer <jwt_token>"
22+
# Sandbox only:
23+
# export BASE_URL=https://sandbox.hyperswitch.io
24+
# export FEATURE_HEADER="x-feature: decision-engine"
2225
```
2326

2427
## Request

0 commit comments

Comments
 (0)