Skip to content

Business Dashboard: should not load all comments until they're needed #25169

Open

Description

@severinbeauvais

Description

The Business Dashboard loads all filing comments when it initializes, even though the comments are not needed until a filing (ledger item) is expanded/opened. This slows the app's initialization and causes a lot of network traffic (and calls that the API has to respond to) unnecessarily.

Steps to reproduce

  1. login with BCREG0020
  2. open DevTools
  3. go to https://dev.business-dashboard.bcregistry.gov.bc.ca/BC0885606?accountid=668
  4. observe in Network tab that the detail comments for all filings are being fetched -- they should only be fetched when the filing is expanded (same as documents)

image.png

Impact

Slower UI initialization and a ton of network traffic and extra API load that is not needed. The comments should be fetched when a filing (ledger item) is expanded/opened.

The additional delay, for the sample business noted above, is only 1-2 seconds (for about 20 comments). (If a business had more ledger items with comments, it would be more delay.)

Activity

  1. added
    Entities Team
    connect
    UX
    on Jan 7, 2025
  2. added
    BTR
    on Jan 7, 2025
  3. removed
    BTR
    on Jan 29, 2025
  4. removed
    connect
    on Feb 4, 2025
  5. added and removed
    UX
    on Mar 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Entities TeamPriority3UX Assurancetechdebt

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions