Skip to content

fix(PM-1470): show applications count in tab#1135

Merged
hentrymartin merged 3 commits intodevfrom
pm-1470
Jul 11, 2025
Merged

fix(PM-1470): show applications count in tab#1135
hentrymartin merged 3 commits intodevfrom
pm-1470

Conversation

@hentrymartin
Copy link
Collaborator

Related JIRA Ticket:

https://topcoder.atlassian.net/browse/PM-1470

What's in this PR?

  • show applications count in tab

defaultActive={activeTab}
onChange={handleTabChange}
tabs={getCopilotDetailsTabsConfig(isAdminOrPM)}
tabs={getCopilotDetailsTabsConfig(isAdminOrPM, copilotApplications?.length || 0)}

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The function getCopilotDetailsTabsConfig now takes an additional parameter. Ensure that this function is updated to handle the new parameter correctly and that all calls to this function throughout the codebase are updated accordingly.

}

export const getCopilotDetailsTabsConfig = (isAdminOrPM: boolean): TabsNavItem[] => (isAdminOrPM ? [
export const getCopilotDetailsTabsConfig = (isAdminOrPM: boolean, count: number): TabsNavItem[] => (isAdminOrPM ? [

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The function getCopilotDetailsTabsConfig now takes an additional parameter count, but it is not used within the function. Ensure that count is utilized appropriately to fulfill the purpose of showing applications count in the tab.

@hentrymartin hentrymartin requested a review from kkartunov July 10, 2025 19:44
@hentrymartin hentrymartin merged commit b546384 into dev Jul 11, 2025
3 checks passed
@hentrymartin hentrymartin deleted the pm-1470 branch July 11, 2025 19:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant