Skip to content

Conversation

@flutistar
Copy link
Contributor

Issue #: /bcgov/entity#20492

Description of changes:

  • Footer component
  • Assign/Unassign functionality
image image

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of the PPR license (Apache 2.0).

@flutistar flutistar self-assigned this Oct 3, 2025
Comment on lines 1125 to 1150
export async function updateQueuedTransfer (
reviewId: string, payload: any
): Promise<QueueDetailIF | any> {
try {
const response = await axios.patch<QueueDetailIF>(
`reviews/${reviewId}`,
payload,
getDefaultConfig()
)
const data: QueueDetailIF = response?.data
if (!data) {
throw new Error('Invalid API response')
}
return data
} catch (error: AxiosError | any) {
if (error.response && error.response.status === 404) {
console.error('Resource not found:', error.message)
// Handle 404 gracefully, returning null
return null
} else {
// Handle other errors differently if needed
console.error('API Error:', error.message)
throw error
}
}
}
Copy link
Collaborator

@cameron-eyds cameron-eyds Oct 3, 2025

Choose a reason for hiding this comment

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

Maybe include a payload IF, even if it's a simple interface inline.
ie payload: { statusType: ReviewStatusTypes }

QQ: The assignee value (ie current user) is captured and applied api side?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yep, I will add type for the payload.
Answer: If the assignee value is empty, the staff user submitting the request is the assignee.

Copy link
Collaborator

@cameron-eyds cameron-eyds left a comment

Choose a reason for hiding this comment

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

Spectacular! Just one comment/question.

Copy link
Collaborator

@doug-lovett doug-lovett left a comment

Choose a reason for hiding this comment

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

Excellent.

@flutistar flutistar merged commit 8939e5d into bcgov:main Oct 3, 2025
6 of 8 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.

3 participants