Show invoice amount and balance on the account invoices page without losing pagination

Đang mở
#678 1 bình luận 0 reaction 1 người được giao Xem trên GitHub

@tungleduyxyz đang làm issue này rồi.

Từ ngày 5/11/2026.

  • #681 của @tungleduyxyz — đang mở

Đá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
Loại issue
Tính năng
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
html
Lĩnh vực
frontend, payments

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:

  1. Accounts with a large invoice history need the page to load quickly. Fetching every invoice with its components isn't an option for them.
  2. 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:

  1. Load the page as today. Use the paginated API to get the invoices for the current page.
  2. 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.
  3. 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

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. 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.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của killbill/killbill-admin-ui

Tất cả issue của killbill/killbill-admin-ui

Issue tương tự

Thêm issue về Web Dev

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.