Show invoice amount and balance on the account invoices page without losing pagination
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 55/100
Hướng nghiên cứu
Start by reading the account invoices page implementation and its paginated invoice API calls, then trace how Edit Columns controls visibility. Check how invoice details and loading placeholders are handled elsewhere in the UI. Done means the current page still uses pagination, visible Amount and Balance columns load values for only that page, hidden columns trigger no extra calls, and pagination continues to work.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Background
#329 switched the account invoices page to the paginated account invoices API (see killbill/killbill#1272 and killbill/killbill#1792). Some customers have accounts with hundreds or thousands of invoices and subscriptions, and the page wouldn't load for them before this change.
The paginated API returns shallow invoices with no invoice components. Because of that, the Amount and Balance columns are empty or show 0 on the account invoices page. Users only see the real values after opening each invoice.
Problem
We have two groups of users whose needs conflict:
- Accounts with a large invoice history need the page to load quickly. Fetching every invoice with its components isn't an option for them.
- Most other users expect to see the amount and balance in the invoice list, as they could before #329. One customer has now reported the missing values as a regression.
Proposed Solution
Keep pagination as the default, and fetch amount and balance only for the invoices on the current page:
- Load the page as today. Use the paginated API to get the invoices for the current page.
- Fill in amount and balance for that page only. Once the page is shown, fetch the full details of just those invoices (asynchronously) and populate the Amount and Balance columns. The cost then depends on the page size, not on how many invoices the account has. Show a loading placeholder in those cells while the values load.
- Let users choose the columns in Edit Columns. List Amount and Balance there like the other columns. Users who don't need them can hide them, and Kaui skips the extra calls when they're hidden.
References
- killbill/killbill-admin-ui#329
- killbill/killbill#1272
- killbill/killbill#1792
- Ngôn ngữ chính
- HTML
- Star
- 70
- Fork
- 76
- Merge trung bình
- 1 ngày 23 giờ
- Pull request đã merge (30 ngày)
- 5
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của killbill/killbill-admin-ui
-
Cognito token exchange: log into Kill Bill with the Bearer token (no KB password) and move the exchange into KauiCó thể đã có người làm @tungleduyxyz đã nhận 4 ngày trước. Đang mở
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 12/100
killbill/killbill-admin-ui#682 · 1 người được giao ·
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 50/100
killbill/killbill-admin-ui#663 · 1 bình luận ·
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 55/100
killbill/killbill-admin-ui#662 ·
-
Kaui 4.0.1 - viewing catalogCó thể làm lại được @tungleduyxyz đã nhận 367 ngày trước và không có pull request nào đang mở. Đang mởenhancement
killbill/killbill-admin-ui#556 · 5 bình luận · 1 người được giao ·
-
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 15/100
killbill/killbill-admin-ui#86 · 1 bình luận ·
Tất cả issue của killbill/killbill-admin-ui
Issue tương tự
-
bug good first issue Image/PDF Annotation TA Grading / TA UI URGENT / PRIORITY
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 66/100
Maintainer thường phản hồi trong vòng 5 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
zingolabs/zingo-mobile#1951 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
desec-io/desec-stack#1312 ·
Maintainer thường phản hồi trong vòng 14 ngày
-
Unsorted
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
AdguardTeam/AdguardFilters#247699 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Add AbortController cleanup for fetch() requests in orderbook-tool.tsx and soroban-expiration pageĐang mởbug frontend low-priority Stellar Wave
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
Savitura/Savitools#608 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 6 ngày