Skip to content

feat(ui): move fund to the package header - #2170

Merged
MatteoGabriele merged 5 commits into
npmx-dev:mainfrom
MatteoGabriele:feat/make-fund-more-visible
Mar 21, 2026
Merged

feat(ui): move fund to the package header#2170
MatteoGabriele merged 5 commits into
npmx-dev:mainfrom
MatteoGabriele:feat/make-fund-more-visible

Conversation

@MatteoGabriele

@MatteoGabrieleMatteoGabriele commented Mar 20, 2026

Copy link
Copy Markdown
Member

🔗 Linked issue

resolves#1835

🧭 Context

The fund button is too small in a busy section and might not attract enough attention.

📚 Description

The fund link has been relocated to the header, which now has plenty of space to make this important button stand out. To differentiate it from the like button, represented by a heart, I chose a handshake icon. However, this can be changed if needed. I also like the heart-handshake icon, but using two heart-based icons side by side isn't ideal.
I've also added the accent color to the icon to make it stand out more without being too loud.

before
Screenshot 2026-03-20 at 14 43 24

after
Screenshot 2026-03-20 at 14 38 24

@vercel

vercelBot commented Mar 20, 2026

Copy link
Copy Markdown
Contributor

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

ProjectDeploymentActionsUpdated (UTC)
npmx.devReadyReadyPreview, CommentMar 21, 2026 3:20pm
2 Skipped Deployments
ProjectDeploymentActionsUpdated (UTC)
docs.npmx.devIgnoredIgnoredPreviewMar 21, 2026 3:20pm
npmx-lunariaIgnoredIgnoredMar 21, 2026 3:20pm

Request Review

@codecov

codecovBot commented Mar 20, 2026

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 50.00000% with 1 line in your changes missing coverage. Please review.
✅ All tests successful. No failed tests found.

Files with missing linesPatch %Lines
app/components/Package/Header.vue50.00%1 Missing ⚠️

📢 Thoughts on this report? Let us know!

@coderabbitai

coderabbitaiBot commented Mar 20, 2026

Copy link
Copy Markdown
Contributor

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: 7ddc296e-e498-4967-9384-1a723806026a

📥 Commits

Reviewing files that changed from the base of the PR and between b4129e4 and bf65139.

📒 Files selected for processing (1)
  • app/components/Package/Skeleton.vue
🚧 Files skipped from review as they are similar to previous changes (1)
  • app/components/Package/Skeleton.vue

📝 Walkthrough

Walkthrough

Funding link handling was moved out of app/components/Package/ExternalLinks.vue and into app/components/Package/Header.vue. ExternalLinks.vue no longer computes or renders a fund link. Header.vue now defines a fundingUrl computed (normalising array/structured funding entries) and conditionally renders a secondary LinkBase fund button when present. The package header skeleton (app/components/Package/Skeleton.vue) was updated to add a placeholder block for the fund link.

Possibly related PRs

Suggested labels

idea

Suggested reviewers

  • alexdln
  • danielroe
🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check nameStatusExplanation
Description check✅ PassedThe PR description clearly describes moving the fund link to the package header with visual context showing before/after screenshots.
Linked Issues check✅ PassedThe changes successfully address issue #1835 by relocating the fund link to the package header with improved visibility and accent colour styling.
Out of Scope Changes check✅ PassedAll changes are directly related to relocating and enhancing the fund button visibility as specified in issue #1835; skeleton updates align with the feature scope.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@coderabbitaicoderabbitaiBot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Actionable comments posted: 1


ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: c5faf4a8-d247-4d52-8558-19c4bb2493aa

📥 Commits

Reviewing files that changed from the base of the PR and between 4ad0679 and 0785e85.

📒 Files selected for processing (2)
  • app/components/Package/ExternalLinks.vue
  • app/components/Package/Header.vue
💤 Files with no reviewable changes (1)
  • app/components/Package/ExternalLinks.vue

Comment threadapp/components/Package/Header.vue
@nicolo-ribaudo

nicolo-ribaudo commented Mar 20, 2026

Copy link
Copy Markdown
Contributor

🤑💰💸 fund

@ghostdevvghostdevv added the needs review This PR is waiting for a review from a maintainer label Mar 20, 2026
@ShroXd

Copy link
Copy Markdown
Contributor

Nice work! I noticed the skeleton has placeholders for those buttons — maybe we could also update the skeleton for the fund button?

image

@MatteoGabriele

Copy link
Copy Markdown
MemberAuthor

Nice work! I noticed the skeleton has placeholders for those buttons — maybe we could also update the skeleton for the fund button?

image

Oh good catch! I'll make sure to update those too!

@MatteoGabriele

Copy link
Copy Markdown
MemberAuthor

@ShroXd
I've updated the skeleton to match the new button. Also, since I was there, while toggling the skeleton, I noticed that the sidebar had an older design with position sticky and a scrollbar, which doesn't match the current design, causing the UI to jump when switching between states.

@ShroXd

Copy link
Copy Markdown
Contributor

@ShroXd I've updated the skeleton to match the new button. Also, since I was there, while toggling the skeleton, I noticed that the sidebar had an older design with position sticky and a scrollbar, which doesn't match the current design, causing the UI to jump when switching between states.

Maybe we could create another PR to fix the sidebar skeleton issue 🤔

@MatteoGabriele

Copy link
Copy Markdown
MemberAuthor

@ShroXd You know what? Yes, I agree. Scope creep is scope creep.

@ShroXd

Copy link
Copy Markdown
Contributor

@ShroXd You know what? Yes, I agree. Scope creep is scope creep.

New phrase unlocked. 😆

@serhalpserhalp left a comment

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 like it!

@MatteoGabriele
MatteoGabriele added this pull request to the merge queueMar 21, 2026
@github-merge-queue
github-merge-queueBot removed this pull request from the merge queue due to failed status checks Mar 21, 2026
@MatteoGabriele
MatteoGabriele added this pull request to the merge queueMar 21, 2026
Merged via the queue into npmx-dev:main with commit 7c1cea8Mar 21, 2026
19 checks passed
@MatteoGabriele
MatteoGabriele deleted the feat/make-fund-more-visible branch March 21, 2026 15:30
@github-actionsgithub-actionsBot mentioned this pull request Mar 21, 2026
@serhalpserhalp removed the needs review This PR is waiting for a review from a maintainer label Apr 12, 2026
Sign up for freeto 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.

Make the "fund" link more visible

5 participants

@MatteoGabriele@nicolo-ribaudo@ShroXd@serhalp@ghostdevv