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

Contributions drawer in dashboard #10315

Merged
merged 35 commits into from
May 22, 2024
Merged

Contributions drawer in dashboard #10315

merged 35 commits into from
May 22, 2024

Conversation

hdiniz
Copy link
Contributor

@hdiniz hdiniz commented Apr 17, 2024

⚠️ Requires opencollective/opencollective-api#10048
Related opencollective/opencollective#7345

Description

Adds a preview feature of the new contribution management in dashboard. A rough draft of the contribution drawer details, previous charges and timeline.

Screenshots

image
image
image

@hdiniz hdiniz requested a review from kewitz April 17, 2024 12:04
@hdiniz hdiniz self-assigned this Apr 17, 2024
Copy link

vercel bot commented Apr 17, 2024

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

Name Status Preview Comments Updated (UTC)
opencollective-frontend ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 21, 2024 4:49pm
opencollective-styleguide ✅ Ready (Inspect) Visit Preview 💬 Add feedback May 21, 2024 4:49pm

* @typedef {{ target?: string, href?: string | Record<string, any>, animate?: any, className?: string, title?: string, onClick?: () => void, openInNewTab?: boolean, className?: string, children?: any, 'data-cy'?: string } & React.HTMLAnchorElement} LinkProps
* @type React.ForwardRefRenderFunction<HTMLAnchorElement, LinkProps>
*/
export default React.forwardRef((props, ref) => <Link innerRef={ref} {...props} />);
Copy link
Contributor

Choose a reason for hiding this comment

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

Why implement innerRef and not use the default forwardRef param in the base component?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Can you give me an example of what you mean? If you are refering to the name of the variable, the linter complains if I call it ref

Copy link
Contributor

Choose a reason for hiding this comment

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

I meant implementing forwardRef in the component itself and not like a wrapper.

components/dashboard/sections/contributions/filters.tsx Outdated Show resolved Hide resolved
components/dashboard/sections/contributions/filters.tsx Outdated Show resolved Hide resolved
lib/hooks/useClipboard.js Outdated Show resolved Hide resolved
Copy link
Contributor

@kewitz kewitz left a comment

Choose a reason for hiding this comment

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

This is awesome! Great work! Feel free to ship this.

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.

None yet

2 participants