Skip to content

feat(PM-580): added assign action to applications list #1086

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
May 27, 2025
Merged

Conversation

hentrymartin
Copy link
Collaborator

@hentrymartin hentrymartin commented May 26, 2025

Related JIRA Ticket:

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

What's in this PR?

  • Added assign action to applications list
  • Integrated with the project service API

Screenshots

Screenshot 2025-05-26 at 22 37 43

@@ -105,6 +105,21 @@ export const applyCopilotOpportunity = async (opportunityId: number, request?: {
return xhrPostAsync(url, request, {})
}

/**

Choose a reason for hiding this comment

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

The function name assignCopilotOpportunity is similar to applyCopilotOpportunity. Consider renaming for clarity, especially if both functions are used in similar contexts.

export interface CopilotApplication {
id: number,
notes?: string,
createdAt: Date,
opportunityId: string,
handle?: string,
userId: number,
status: CopilotApplicationStatus,

Choose a reason for hiding this comment

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

Consider ensuring that CopilotApplicationStatus is properly defined and imported in this file to avoid any potential issues with type resolution.

/**
* apply copilot opportunity
* @param opportunityId
* @param applicationId

Choose a reason for hiding this comment

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

The parameter name in the function signature should be updated to match the JSDoc comment. If the parameter is indeed applicationId, ensure the function signature reflects this change.

@hentrymartin hentrymartin requested a review from kkartunov May 26, 2025 20:39
Copy link
Collaborator

@kkartunov kkartunov left a comment

Choose a reason for hiding this comment

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

Looks good.

@kkartunov kkartunov merged commit b9cf19e into dev May 27, 2025
3 checks passed
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.

2 participants