Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

✨ Risk feed #1197

Merged
merged 1 commit into from
Sep 11, 2023
Merged

✨ Risk feed #1197

merged 1 commit into from
Sep 11, 2023

Conversation

jgalat
Copy link
Contributor

@jgalat jgalat commented Sep 5, 2023

closes #1192

  • Adds first draft of risk-feed on /activity. There is no link in the app to it still
  • Still needs translations
  • Multisig is hardcoded

Preview of page

@vercel
Copy link

vercel bot commented Sep 5, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
app ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 11, 2023 2:21pm

@jgalat jgalat marked this pull request as draft September 5, 2023 20:12
@jgalat jgalat temporarily deployed to Preview September 8, 2023 13:52 — with GitHub Actions Inactive
@jgalat jgalat temporarily deployed to Preview September 8, 2023 14:06 — with GitHub Actions Inactive
@jgalat jgalat temporarily deployed to Preview September 8, 2023 15:41 — with GitHub Actions Inactive
@jgalat jgalat temporarily deployed to Preview September 8, 2023 15:49 — with GitHub Actions Inactive
@jgalat jgalat changed the title ✨ risk feed ✨ Risk feed Sep 8, 2023
@jgalat jgalat marked this pull request as ready for review September 8, 2023 15:52
@jgalat jgalat temporarily deployed to Preview September 8, 2023 15:52 — with GitHub Actions Inactive
Copy link
Contributor

@sebipap sebipap left a comment

Choose a reason for hiding this comment

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

lgtm! added some minor comments, feel free to ignore them.
will approve after final design impl.

components/RiskFeed/Decode/index.tsx Outdated Show resolved Hide resolved
components/RiskFeed/Decode/index.tsx Outdated Show resolved Hide resolved
pages/activity.tsx Outdated Show resolved Hide resolved
hooks/useAsyncLoad.ts Show resolved Hide resolved
@jgalat jgalat temporarily deployed to Preview September 8, 2023 17:15 — with GitHub Actions Inactive
i18n/es/translation.json Outdated Show resolved Hide resolved
pages/activity.tsx Outdated Show resolved Hide resolved
hooks/useAsyncLoad.ts Show resolved Hide resolved
Comment on lines +8 to +11
useEffect(() => {
funcRef.current = fn;
}, [fn]);
Copy link
Contributor

Choose a reason for hiding this comment

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

Every time fn changes, the value of funcRef.current also changes because of the useEffect. So funcRef.current always reflects the most recent value of fn. I believe you could use fn directly instead of maintaining and updating a separate reference.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, but that would trigger the effect, on every fn change (even if it's the same func defined inline), this is just a minor thing to avoid having to wrap the call with useCallback

components/RiskFeed/Feed/index.tsx Outdated Show resolved Hide resolved
components/RiskFeed/Events/index.tsx Show resolved Hide resolved
components/RiskFeed/Events/index.tsx Outdated Show resolved Hide resolved
components/RiskFeed/Events/index.tsx Outdated Show resolved Hide resolved
@jgalat jgalat temporarily deployed to Preview September 11, 2023 13:37 — with GitHub Actions Inactive
@jgalat jgalat changed the base branch from main to hub September 11, 2023 14:11
@jgalat jgalat merged commit e4cd4af into hub Sep 11, 2023
1 of 3 checks passed
@jgalat jgalat deleted the feed branch September 11, 2023 14:18
@jgalat jgalat temporarily deployed to Preview September 11, 2023 14:21 — with GitHub Actions Inactive
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.

Risk feed (history of tx changes on the protocol)
3 participants