Skip to content

Owner/mod Allocate modal wired to distribute + application id + refresh - #1096

Merged
nicktytarenko merged 8 commits into
rfp-funding-pool-typesfrom
rfp-funding-pool-allocate
Sep 11, 2026
Merged

Owner/mod Allocate modal wired to distribute + application id + refresh#1096
nicktytarenko merged 8 commits into
rfp-funding-pool-typesfrom
rfp-funding-pool-allocate

Conversation

@nicktytarenko

Copy link
Copy Markdown
Member

No description provided.

@nicktytarenko
nicktytarenko requested a review from a team as a code owner September 9, 2026 19:01
@vercel

vercel Bot commented Sep 9, 2026

Copy link
Copy Markdown
Contributor

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
web Ready Ready Preview Sep 11, 2026 7:20am UTC

Request Review

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: 325023217c

ℹ️ About Codex in GitHub

Codex has been enabled to automatically review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

When you sign up for Codex through ChatGPT, Codex can also answer questions or update the PR, like "@codex address that feedback".

Comment on lines +48 to +50
const parseAmount = useCallback((value: string): number => {
const parsed = Number.parseFloat(value);
return Number.isFinite(parsed) ? parsed : NaN;

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Validate the complete allocation amount

When an owner enters a formatted amount such as 1,000—the same comma-separated format shown for the pool holding—Number.parseFloat returns 1, so validation succeeds and the request allocates 1 RSC while the user intended 1,000. Trailing invalid text is similarly ignored; normalize supported separators and reject any input that is not entirely a valid decimal before enabling submission.

Useful? React with 👍 / 👎.

Comment on lines +104 to +105
grantAllocate?.setFundingPool(updatedPool);
void refreshProposals();

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Preserve proposals when the post-allocation refresh fails

If the follow-up funding_feed request fails after a successful allocation, fetchProposals has already cleared entries and its catch block only logs the error, so this fire-and-forget refresh leaves the proposals tab empty until another fetch or a reload. Preserve the existing entries during this refresh, or restore them when the request fails.

Useful? React with 👍 / 👎.

…HeaderGrant components; remove unused grantAmountUsd prop and adjust related calculations for funding pool mode.
…amount validation; remove deprecated parseAmount function. Clean up GrantPageContent by removing unused comments.
…andling; update AllocateFundingPoolModal and ContributeToFundraiseModal for improved amount display and validation. Enhance WorkHeaderGrant and ProposalWorkCard to support RFP funding pool logic.
…te ActivityCardCompact to conditionally hide title links based on the current document ID. Modify ActivitySidebar and ActivitySidebarServer to pass currentDocumentId prop for improved user experience in activity tracking.
@nicktytarenko
nicktytarenko removed this pull request from stack #1097 September 11, 2026 06:44
Base automatically changed from rfp-funding-pool-contribute to rfp-funding-pool-types September 11, 2026 06:59
@sonarqubecloud

Copy link
Copy Markdown

@nicktytarenko
nicktytarenko merged commit 0c8a67b into rfp-funding-pool-types Sep 11, 2026
4 of 5 checks passed
@nicktytarenko
nicktytarenko deleted the rfp-funding-pool-allocate branch September 11, 2026 07:20
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