Skip to content

Update/api - #43

Merged
laithanhhung merged 4 commits into
devfrom
update/API
Aug 15, 2026
Merged

laithanhhung merged 4 commits into
devfrom
update/API

Conversation

@laithanhhung

Copy link
Copy Markdown
Member

No description provided.

laithanhhung and others added 4 commits August 16, 2026 01:37
Regenerate the typed client from the deployed backend — three new
operations, no schema changes — and build this branch's admin work on it.

Dashboard: the admin nav's four entries collapse into one page at /admin
with Phân tích / Tài chính / Khiếu nại / Nhật ký hoạt động tabs. Retired
paths redirect to ?tab=, and only the open panel renders so a tab switch
fires one panel's requests rather than four. Audit logs had a component
but no route or nav entry, so the panel was unreachable until now.

Charts: shared ApexCharts theming in admin/shared/chart-theme.ts, so the
analytics, finance and claims panels follow one look and the Fuse theme
variables rather than repeating ~40 lines of axis options per chart.

Purchase cost: GET /procurement/batches/{id}/overview drives a two-band
area card — revenue above, what the chợ actually cost below, the gap is
the session's margin. Settlement is read off the batch lifecycle, since
the server refuses hand-off until every non-exempt line is settled;
sessions still being shopped are listed with their progress instead of
being counted as an enormous margin.

Also: invoice PDF download for admins and restaurants, and market
session availability wired into the checkout countdown.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
A new Báo cáo sự cố tab, second in the dashboard's bar — before both money
tabs, since a shortage at the chợ or at the hub is what a claim is about.

It carries the two issue streams an admin can read. Procurement exceptions
ride along on GET /admin/order-groups, which maps every batch through
ProcurementBatchDtoMapper and so already carries each batch's exceptions[];
one request covers the window. Hub discrepancies are per hub, so the board
walks the hub list with each read failing on its own, and offers the
acknowledge action — until every discrepancy at a hub is signed off the hub
cannot dispatch (BR-HUB-2).

The other two streams cannot be shown. Restaurants report issues on a
delivered order and drivers on a delivery, but IOrderIssueRepository exposes
AddAsync and nothing else and the driver's endpoint is the same — write-only,
with no query to read them back. The board says so in a footnote rather than
pretending its coverage is complete.

Claims: the summary tiles and the status donut move to the incident tab,
beside the shortages the claims are filed over. What is left is the queue —
filter, inspect, decide.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
@kody-ai

kody-ai Bot commented Aug 15, 2026 •

Copy link
Copy Markdown

Code Review Could Not Complete ⚠️

The review failed before suggestions could be generated.

Reason: The configured API key (google_gemini) is out of credits or has hit its billing limit. Top up the account or adjust the plan.

After fixing the issue, comment @kody review on this PR to re-run the review.

Kody Guide: Usage and Configuration
Interacting with Kody
  • Request a Review: Ask Kody to review your PR manually by adding a comment with the @kody start-review command at the root of your PR.

  • Validate Business Logic: Ask Kody to validate your code against business rules by adding a comment with the @kody -v business-logic command.

  • Provide Feedback: Help Kody learn and improve by reacting to its comments with a 👍 for helpful suggestions or a 👎 if improvements are needed.

Current Kody Configuration
Review Options

The following review options are enabled or disabled:

Options Enabled
Bug ✅
Performance ✅
Security ✅
Business Logic ✅

Access your configuration settings here.

​

@coderabbitai

coderabbitai Bot commented Aug 15, 2026

Copy link
Copy Markdown

Important

Review available on request

  • 🔍 Trigger review

Reviews should be triggered manually for repositories with fewer than 10 stars. Select Trigger review above or comment @coderabbitai review to review the latest changes. For a full review, comment @coderabbitai full review.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro Plus

Run ID: ee245c6c-870a-4ff7-b3eb-9043ad5d04e0


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@laithanhhung
laithanhhung merged commit 40b536e into dev Aug 15, 2026
1 of 3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants