Skip to content

feat(ui): update contribute banner links to GitHub issues#2038

Merged
ComputelessComputer merged 1 commit intomainfrom
feat/update-contribute-banner-links
Dec 1, 2025
Merged

feat(ui): update contribute banner links to GitHub issues#2038
ComputelessComputer merged 1 commit intomainfrom
feat/update-contribute-banner-links

Conversation

@ComputelessComputer
Copy link
Collaborator

No description provided.

@netlify
Copy link

netlify bot commented Dec 1, 2025

Deploy Preview for hyprnote ready!

Name Link
🔨 Latest commit 3682f71
🔍 Latest deploy log https://app.netlify.com/projects/hyprnote/deploys/692d3be8a3346b0008fbb29a
😎 Deploy Preview https://deploy-preview-2038--hyprnote.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@netlify
Copy link

netlify bot commented Dec 1, 2025

Deploy Preview for hyprnote-storybook ready!

Name Link
🔨 Latest commit 3682f71
🔍 Latest deploy log https://app.netlify.com/projects/hyprnote-storybook/deploys/692d3be867540c00089b14be
😎 Deploy Preview https://deploy-preview-2038--hyprnote-storybook.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Dec 1, 2025

📝 Walkthrough

Walkthrough

Three route components are updated to redirect contribution links from local content paths to prefilled GitHub issues URLs, with accompanying anchor text updates from "Open on GitHub" to "Submit your idea" across gallery, shortcuts, and templates pages.

Changes

Cohort / File(s) Change Summary
Contribution link redirects
apps/web/src/routes/_view/gallery/index.tsx, apps/web/src/routes/_view/shortcuts/index.tsx, apps/web/src/routes/_view/templates/index.tsx
Updated ContributeBanner and ContributeCard anchor href targets from local content tree/repository paths to prefilled GitHub issues URLs; updated ContributeCard anchor text from "Open on GitHub" to "Submit your idea"

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~3 minutes

  • Simple, repetitive link and text replacements across three identical route components with no logic changes or branching

Possibly related PRs

Suggested reviewers

  • yujonglee

Pre-merge checks and finishing touches

❌ Failed checks (1 warning, 1 inconclusive)
Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. You can run @coderabbitai generate docstrings to improve docstring coverage.
Description check ❓ Inconclusive No pull request description was provided by the author. Add a description explaining the motivation for updating the contribute links and how it affects user experience.
✅ Passed checks (1 passed)
Check name Status Explanation
Title check ✅ Passed The title accurately describes the main change: updating contribute banner links to GitHub issues URLs across three route files.
✨ Finishing touches
  • 📝 Generate docstrings
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch feat/update-contribute-banner-links

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

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 0

Caution

Some comments are outside the diff and can’t be posted inline due to platform limitations.

⚠️ Outside diff range comments (3)
apps/web/src/routes/_view/templates/index.tsx (1)

432-455: Card copy still mentions PRs while link now opens an issue

The card text says “Submit a PR and help the community”, but the CTA now opens a prefilled GitHub issue and the button label is “Submit your idea”. To avoid confusing users, I’d align the body copy with the issue-based flow, e.g.:

-      <p className="text-sm text-neutral-500 mb-4">
-        Have a template idea? Submit a PR and help the community.
-      </p>
+      <p className="text-sm text-neutral-500 mb-4">
+        Have a template idea? Submit your idea and help the community.
+      </p>
apps/web/src/routes/_view/gallery/index.tsx (1)

538-559: Update gallery card copy to match the new issue-based contribution flow

Here the description still says “Submit a PR and help the community” while the link opens a prefilled issue and the button text is “Submit your idea”. Suggest aligning the wording with the actual flow, e.g.:

-      <p className="text-sm text-neutral-500 mb-4">
-        Have an idea? Submit a PR and help the community.
-      </p>
+      <p className="text-sm text-neutral-500 mb-4">
+        Have an idea? Submit your idea and help the community.
+      </p>
apps/web/src/routes/_view/shortcuts/index.tsx (1)

421-443: Shortcut card text should not reference PRs now that it opens an issue

Similar to the templates and gallery cards, this copy still tells users to “Submit a PR” even though the CTA opens a new issue and the button label is “Submit your idea”. Recommend updating the sentence to reflect the issue-based contribution flow, for example:

-      <p className="text-sm text-neutral-500 mb-4">
-        Have a shortcut idea? Submit a PR and help the community.
-      </p>
+      <p className="text-sm text-neutral-500 mb-4">
+        Have a shortcut idea? Submit your idea and help the community.
+      </p>
🧹 Nitpick comments (2)
apps/web/src/routes/_view/templates/index.tsx (1)

154-175: Contribute banner URL and behavior look correct; consider centralizing the template

The updated banner now goes straight to a prefilled “Suggest New Template” issue with proper target="_blank" and rel="noopener noreferrer", which matches the PR goal. If you plan to adjust this template again or reuse variants elsewhere, consider extracting a small helper/constant for the issue URL/body instead of duplicating the long encoded string in multiple components.

apps/web/src/routes/_view/gallery/index.tsx (1)

198-219: Gallery banner GitHub issue link is fine; minor optional tweak to default type

The new banner correctly links to a prefilled “Suggest New Template/Shortcut” issue and keeps the external-link attributes consistent. Note that the body currently defaults to Type: template even though the copy invites both template and shortcut ideas; if you want to avoid biasing suggestions, you could change the stub to something like Type: template or shortcut or leave it blank for the user to fill.

📜 Review details

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between dcbdd51 and 3682f71.

📒 Files selected for processing (3)
  • apps/web/src/routes/_view/gallery/index.tsx (3 hunks)
  • apps/web/src/routes/_view/shortcuts/index.tsx (3 hunks)
  • apps/web/src/routes/_view/templates/index.tsx (3 hunks)
🧰 Additional context used
📓 Path-based instructions (1)
**/*.{ts,tsx}

📄 CodeRabbit inference engine (AGENTS.md)

**/*.{ts,tsx}: Avoid creating a bunch of types/interfaces if they are not shared. Especially for function props, just inline them instead.
Never do manual state management for form/mutation. Use useForm (from tanstack-form) and useQuery/useMutation (from tanstack-query) instead for 99% of cases. Avoid patterns like setError.
If there are many classNames with conditional logic, use cn (import from @hypr/utils). It is similar to clsx. Always pass an array and split by logical grouping.
Use motion/react instead of framer-motion.

Files:

  • apps/web/src/routes/_view/gallery/index.tsx
  • apps/web/src/routes/_view/shortcuts/index.tsx
  • apps/web/src/routes/_view/templates/index.tsx
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (5)
  • GitHub Check: Redirect rules - hyprnote
  • GitHub Check: Header rules - hyprnote
  • GitHub Check: Pages changed - hyprnote
  • GitHub Check: fmt
  • GitHub Check: ci
🔇 Additional comments (1)
apps/web/src/routes/_view/shortcuts/index.tsx (1)

151-173: Shortcut contribute banner URL matches the intended issue template

The banner now opens a prefilled “Suggest New Shortcut” issue with correctly encoded body and safe external-link attributes. This is consistent with the shortcuts context and the other routes; no further changes needed here.

@ComputelessComputer ComputelessComputer merged commit 3e7f714 into main Dec 1, 2025
14 checks passed
@ComputelessComputer ComputelessComputer deleted the feat/update-contribute-banner-links branch December 1, 2025 07:07
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