Skip to content

feat: display forum post council note on proposal detail page#212

Open
simonbelingar wants to merge 2 commits intoalgorandfoundation:mainfrom
simonbelingar:feat/proposal-forum-notice
Open

feat: display forum post council note on proposal detail page#212
simonbelingar wants to merge 2 commits intoalgorandfoundation:mainfrom
simonbelingar:feat/proposal-forum-notice

Conversation

@simonbelingar
Copy link
Copy Markdown

ℹ Overview

Fetches the Discourse post notice from the proposal's forum link and displays it above the proposal title on the proposal detail page.

  • Only shown when a notice exists on the forum post
  • Vote counts (yes/no/abstain) are colour-coded green/red/yellow
  • Uses the existing /api/discourse/[id] server-side proxy to avoid CORS issues

Copy link
Copy Markdown
Collaborator

@kylebeee kylebeee left a comment

Choose a reason for hiding this comment

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

love it!

Lets make a small change & include screenshots

}

const [forumNotice, setForumNotice] = useState<string | null>(null);
useEffect(() => {
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.

fetch inside useEffect is generally an anti-pattern.

Lets put this inside a tanstack query

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

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

should be sorted, lmk if any extra changes needed

image image

@simonbelingar simonbelingar requested a review from kylebeee March 18, 2026 16:41
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