Skip to content

Conversation

@leodube-aot
Copy link
Collaborator

@leodube-aot leodube-aot commented Feb 9, 2026

Ticket: SUBMIT-700 EAO - View and Manage Onboarded and Eligible Projects/Works

Description

  • Added POST /api/proponent/<int:proponent_id>/projects endpoint to add account_projects for already onboarded proponents.
  • Updated frontend $proponentId.tsx route file:
    • Refactored into smaller components EligibleProjectsTable.tsx and OnboardedProjectsTable.tsx. The complexity of the route file was growing quite a bit as we need to handle different views for different proponent.status values and for the number of eligibleProjects.
    • Created a useProponentStore Zustand store to handle the general state of $proponentId.tsx and it's children components, and to prevent excessive prop drilling.

Screenshots

  1. The view for an ONBOARDED proponent that has 1 onboarded project and 3 eligible projects selected.
onboarded w eligible
  1. Clicking the "Enable in EPIC.submit" button opens the modal.
modal
  1. Clicking "Confirm" calls the new POST /api/proponent/<int:proponent_id>/projects endpoint. 3 new account_project table entries are created, and the page updates to show them in the "Onboarded Projects" section.
onboarded wo eligible

Comment on lines +212 to +213
# Update proponent status
InvitationService._update_proponent_status_by_account(invitation.account_id, ProponentStatus.ONBOARDED)
Copy link
Collaborator Author

@leodube-aot leodube-aot Feb 9, 2026

Choose a reason for hiding this comment

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

I don't think we mark a proponent as "ONBOARDED" anywhere in the invitation process. Do we agree it makes sense that, after accept_invitation is run, we can mark the proponent as ONBOARDED?

@leodube-aot leodube-aot marked this pull request as ready for review February 9, 2026 18:20
@leodube-aot leodube-aot self-assigned this Feb 9, 2026
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