fix(finance): implement scoped product routing export functionality#53
Merged
ilramdhan merged 2 commits intoJun 23, 2026
Merged
Conversation
- BFF route: pass productSysIds to gRPC export request - Service: expose productSysIds param in exportBulkProductRouting() - Detail page: "Export product + routing" button queues async export scoped to that product's closure; toast shows job ID with deep link Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
When a search or product-type filter is active, pass the visible page's product sys IDs to the export so only those products and their routing closure are exported instead of the full dataset. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Pull Request ini memperluas kapabilitas fitur Bulk Product Routing Export dengan menerapkan mekanisme scoping (pembatasan area ekspor data). Pengguna kini dapat mengekspor produk dan susunan rute (routing closure)-nya langsung dari halaman Product Detail untuk satu entitas spesifik. Selain itu, ekspor pada halaman Product List kini dibuat sadar-konteks (context-aware), yang mana data yang diekspor akan secara dinamis dibatasi hanya pada produk yang sedang tampil/terfilter di tabel, bukan lagi seluruh dataset master produk.
Type of Change
Module/Component Affected
Changes Made
1. Scoped Export on Product List (Filtered):
productSysIdsdari baris yang sedang tampil ke service layer dan backend.2. Direct Export on Product Detail Page:
/finance/import-jobs.3. BFF API & Service Binding:
productSysIdspada fungsiexportBulkProductRouting()dicost-import-api.ts.productSysIdsdari Next.js Route Handlers (BFF) hingga ke pemanggilan RPC gRPC.Related Issues
Fixes #
Related to #
Screenshots
Before
After
Testing Performed
Manual Testing
Browser Testing
Build Verification
npm run lintpassesnpx tsc --noEmitpassesnpm run buildsucceedsAccessibility
Performance
Pre-merge Checklist
Reviewer Notes
productSysIdspada halaman daftar (list page) bertumpu pada current page rows yang terlihat atau data terfilter hasil respons query. Proses komputasi closure relasional dari masing-masing produk kini di-handle secara independen dan ringan di backend.