Skip to content

Add eCAPRIS funding sync UI and update funding buttons#1730

Merged
chiaberry merged 13 commits into
funding-collectorfrom
chia/23248-update-fund-buttons
Jan 2, 2026
Merged

Add eCAPRIS funding sync UI and update funding buttons#1730
chiaberry merged 13 commits into
funding-collectorfrom
chia/23248-update-fund-buttons

Conversation

@chiaberry
Copy link
Copy Markdown
Member

@chiaberry chiaberry commented Dec 10, 2025

Associated issues

cityofaustin/atd-data-tech#24673
cityofaustin/atd-data-tech#23248

Testing

URL to test:

Test locally since there are metadata changes.

Steps to test:

Using production data, hasura metadata apply
Get your DB client ready

Navigate to a project without an eCAPRIS ID, ex: https://localhost:3000/moped/projects/3645.
Switch to the funding tab. You should see two buttons and a switch, since there is no eCAPRIS ID, the switch and button are disabled. Hover over the switch and see the tooltip informing you why it is disabled.

Screenshot 2025-12-10 at 4 26 32 PM

Now choose a project with an eCAPRIS ID (or add one to a project). The buttons are active and the switch is as well.
Check in the db client the status of should_sync_ecapris_funding

select project_name, project_id, should_sync_ecapris_funding 
from moped_project where project_id = 697

Toggle the switch, and then run the sql again. Confirm that the switch matches the status of should_sync_ecapris_funding


Ship list

@netlify
Copy link
Copy Markdown

netlify Bot commented Dec 10, 2025

Deploy Preview for atd-moped-main ready!

Name Link
🔨 Latest commit 1e2b146
🔍 Latest deploy log https://app.netlify.com/projects/atd-moped-main/deploys/6939d1679e38e90008f0ca3c
😎 Deploy Preview https://deploy-preview-1730--atd-moped-main.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@chiaberry chiaberry changed the base branch from main to funding-collector December 10, 2025 21:11
Copy link
Copy Markdown
Collaborator

@mddilley mddilley left a comment

Choose a reason for hiding this comment

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

So cool to see this come to life! 🙌 I requested one change, but I'd like backup on it since it has to do with accessibility so I'm approving. This works great! 🚀🚀🚀

Comment thread moped-editor/src/views/projects/projectView/ProjectFunding/ProjectFundingTable.js Outdated
})
.then(() => {
handleSnackbar(true, "eCAPRIS sync status updated", "success");
refetchFundingData();
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

awesome, this will work great to get the right combo of Moped & eCAPRIS rows into this table. 🙏 🎉

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I am seeing a bit of jumping/flashing in the UI after I flip the switch. my best guess is that the two queries that are called by refetchFundingData are resolving at different times. Maybe they could be awaited together to fix that?

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

glad this looked yucky to you too! 😆 i'm hoping that cityofaustin/atd-data-tech#26043 will resolve this since DataGridPro has a nicer row loading state prop that we can use to avoid the flashing and shifting caused by the current spinner that blocks the entire table UI.

But, I just added to the feature release testing in #1734 to prevent it from sliding by.

@chiaberry chiaberry changed the title Add eCAPRIS funding sync UI Add eCAPRIS funding sync UI and update funding buttons Dec 15, 2025
Copy link
Copy Markdown
Member

@johnclary johnclary left a comment

Choose a reason for hiding this comment

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

Neat! Works great 🚢

if (loadingProjectFunding || loadingFduOptions || !dataProjectFunding)
return <CircularProgress />;

console.log(dataProjectFunding)
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

can this be removed?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

ooops

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

this snuck back in there after I fixed some merge conflicts I bet

})
.then(() => {
handleSnackbar(true, "eCAPRIS sync status updated", "success");
refetchFundingData();
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

I am seeing a bit of jumping/flashing in the UI after I flip the switch. my best guess is that the two queries that are called by refetchFundingData are resolving at different times. Maybe they could be awaited together to fix that?

@mddilley mddilley mentioned this pull request Dec 18, 2025
37 tasks
Copy link
Copy Markdown
Contributor

@roseeichelmann roseeichelmann left a comment

Choose a reason for hiding this comment

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

this works good! i also noticed the jumpiness that john pointed out when you flip the switch

@chiaberry chiaberry merged commit 2f9da2c into funding-collector Jan 2, 2026
1 check passed
@chiaberry chiaberry deleted the chia/23248-update-fund-buttons branch January 15, 2026 19:37
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.

4 participants