27 lines
1.9 KiB
Markdown
27 lines
1.9 KiB
Markdown
# Iteration Log - 2026-07-27 16:58
|
|
|
|
* **Request**: Deploy MAC address custom labeling feature to production domain (`demoplace.my.id`).
|
|
* **Trigger**: `n` (Feature Extension & Deployment)
|
|
|
|
## Changes Implemented
|
|
1. **Flows Integration**:
|
|
- Modified [backend/routes/dashboard/flows.js](file:///c:/Users/demo/Downloads/Deep%20Package%20Inspection/backend/routes/dashboard/flows.js) to resolve client MACs via `DeviceStat` fallback and map them to custom labels.
|
|
- Modified [src/app/(dashboard)/flows/page.tsx](file:///c:/Users/demo/Downloads/Deep%20Package%20Inspection/src/app/(dashboard)/flows/page.tsx) to render the resolved `src_label` as a cyan subtext below the IP in the Src IP column.
|
|
2. **Device List Merging**:
|
|
- Updated [backend/routes/dashboard/devices.js](file:///c:/Users/demo/Downloads/Deep%20Package%20Inspection/backend/routes/dashboard/devices.js) to query both `DeviceStat` and `Flow` collections in parallel and merge results based on unique MAC Address.
|
|
3. **Frontend Time Filtering**:
|
|
- Integrated `useTimeFilter()` React Context in [src/app/(dashboard)/device-labeling/page.tsx](file:///c:/Users/demo/Downloads/Deep%20Package%20Inspection/src/app/(dashboard)/device-labeling/page.tsx) to reload device listing dynamically on global time-range selection.
|
|
|
|
## Deployment Progress & Outcome
|
|
- **Action**: Ran `npm run deploy`.
|
|
- **Steps Executed**:
|
|
- Locally compiled using `next build` successfully.
|
|
- Uploaded 34 modified source items via SFTP.
|
|
- Executed remote database migrations to sync configuration schema records.
|
|
- Executed NODE_ENV=production PM2 reload for `backone-backend`, `backone-proxy`, and `backone-frontend`.
|
|
- Tested health endpoint: returned `{"ok":true,"message":"BackOne Backend berjalan (MongoDB read-only mode)"...}`.
|
|
- **Outcome**: **SUCCESSFUL** deployment.
|
|
|
|
## Considerations for Next Time
|
|
- All routes and components compiled cleanly with no TypeScript compiler errors.
|