Skip to content

Edit UI: add support for FF targeting by org #31607

Closed

Description

@severinbeauvais

(See #31791 for similar Create UI work and #31792 for similar Filings UI work.)

Currently, Edit UI only supports FF targeting by user. As was done in BRD and Business Dashboard, we need to add support for FF targeting by org.

Once this is done and released to Prod, the following LaunchDarkly config can be simplified (by replacing the Early Adopter users with their orgs):
https://app.launchdarkly.com/projects/entity-ui/flags/supported-change-of-officers-entities/targeting?env=dev&env=test&env=production&selected-env=production

Sample FF configured with Early Adopter orgs:
https://app.launchdarkly.com/projects/entity-ui/flags/enabled-business-summary-entities/targeting?env=dev&env=test&env=production&selected-env=production

Activity

  1. added
    Entities Team
    on Dec 9, 2025
  2. severinbeauvais commented on Dec 19, 2025

    @severinbeauvais
    CollaboratorAuthor

    Analysis

    BRD:

    • gets user context info from Keycloak token
      • provides key = KC GUID (eg, "6a0520fe-7683-42b2-b193-0c1e13d7d512")
      • also provides firstName
      • also provides lastName
      • also provides email
      • also provides roles
      • also provides loginSource (eg, "IDIR" or "BCSC")
      • also provides app source (eg, "bcros-business-dashboard")
    • gets org context info from current account (ie, get /users/<keycloak_guid>/settings)
      • provides key = currentAccount.id
      • provides accountType
      • provides accountStatus
      • provides account type
      • provides account label
      • provides appSource

    Business Dashboard UI:

    • gets user context info from Keycloak token -- key is KC GUID
      • same as BRD
    • gets org context info from current account (ie, get /users/<keycloak_guid>/settings)
      • same as BRD

    Business Filings UI:

    • gets user info from Auth API (get /users/@me) -- key is username (eg, "s2beauva@idir")
      • provides key = username (eg, "s2beauva@idir)
      • provides email
      • provides firstName
      • provides lastName
      • provides roles
    • does not fetch and report org info

    Business Create UI:

    • gets user info from Auth API (get /users/@me) -- key is username (eg, "s2beauva@idir")
      • same as Filings UI
    • does not fetch and report org info

    Business Edit UI:

    • gets user info from Auth API (get /users/@me) -- key is username (eg, "s2beauva@idir")
      • same as Filings UI
    • does not fetch and report org info
  3. severinbeauvais commented on Dec 23, 2025

    @severinbeauvais
    CollaboratorAuthor

    Test Notes

    1. login
    2. manage a business
    3. go to Edit UI (eg, Alteration or Correction, etc)
    4. go to LaunchDarkly
    5. go to entity-ui project
    6. go to Contexts page (eg, https://app.launchdarkly.com/projects/entity-ui/contexts)
    7. observe your recent user and org contexts -- should have your info in there, including the app source (Business Edit UI)
    8. compare with contexts generated by Business Dashboard UI

    Alternately, open the DevTools Network tab, look for the latest context call, and open the Payload tab. You should see something like this (ie, multi context with org and user objects):

    image.png

  4. riyazuddinsyed commented on Jan 19, 2026

    @riyazuddinsyed
    Contributor

    Verified in test Env.Working as expected.Few observations will be raised as concerns and addressed in a separate ticket.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

Entities TeamPriority2techdebt

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions