Skip to content

fix(website): point Install via GitHub buttons to install docs anchor#11852

Merged
christian-byrne merged 2 commits intomainfrom
glary/website-install-link
May 4, 2026
Merged

fix(website): point Install via GitHub buttons to install docs anchor#11852
christian-byrne merged 2 commits intomainfrom
glary/website-install-link

Conversation

@guill
Copy link
Copy Markdown
Member

@guill guill commented May 2, 2026

PR Created by the Glary-Bot Agent


Summary

Updates the "Install via GitHub" CTA buttons on the /download page to deep-link to the install instructions section of the ComfyUI README (#installing) instead of the repo root, so users land directly on setup steps.

Changes

  • apps/website/src/config/routes.ts: add externalLinks.githubInstall = 'https://github.com/Comfy-Org/ComfyUI#installing' (separate from externalLinks.github, which is still used by the navbar/footer/star badge for the generic repo link).
  • apps/website/src/components/product/local/HeroSection.vue: switch the secondary CTA next to "Download Local" from externalLinks.github to externalLinks.githubInstall.
  • apps/website/src/components/product/local/EcoSystemSection.vue: same swap on the ecosystem-section CTA.

The platform-aware Download Local button (Windows/macOS installers via useDownloadUrl) and the generic GitHub social/repo links elsewhere on the site are unchanged.

Verification

  • pnpm --filter @comfyorg/website typecheck — 0 errors
  • pnpm --filter @comfyorg/website test:unit — 23/23 passing
  • pnpm exec eslint on changed files — clean
  • pnpm exec oxfmt --check — clean
  • Manual via pnpm dev + Playwright DOM assertion on /download:
    • Hero "INSTALL FROM GITHUB" → https://github.com/Comfy-Org/ComfyUI#installing
    • EcoSystem "INSTALL FROM GITHUB" → https://github.com/Comfy-Org/ComfyUI#installing
    • Other "GitHub" links (nav, footer, star badge) → unchanged at https://github.com/Comfy-Org/ComfyUI

Per request from #website-and-docs: the local download surfaces should at least link to the ComfyUI install instructions on GitHub. Companion change to comfy-org/website#227.

Screenshots

Download page hero with INSTALL FROM GITHUB button now linking to install docs anchor

┆Issue is synchronized with this Notion page by Unito

@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented May 2, 2026

📝 Walkthrough

Walkthrough

A new githubInstall external link was added pointing to ComfyUI's installation section. Two product-site CTA buttons were updated to use externalLinks.githubInstall instead of externalLinks.github; one component's props were reformatted for readability.

Changes

GitHub Install Link Configuration

Layer / File(s) Summary
Configuration
apps/website/src/config/routes.ts
Adds externalLinks.githubInstall set to https://github.com/Comfy-Org/ComfyUI#installing.
Component Update — Hero
apps/website/src/components/product/local/HeroSection.vue
BrandButton/download CTA :href changed from externalLinks.github to externalLinks.githubInstall.
Component Update — Ecosystem
apps/website/src/components/product/local/EcoSystemSection.vue
Ecosystem GitHub CTA :href changed to externalLinks.githubInstall; variant and size props reformatted to multi-line.
Tests
apps/website/e2e/download.spec.ts
Playwright assertion updated to expect https://github.com/Comfy-Org/ComfyUI#installing for the "INSTALL FROM GITHUB" link.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Poem

🐰 A little hop to tidy a link,
Pointing installers to the right rink,
Buttons updated, tests align,
Click and install—everything's fine! 🥕✨


Caution

Pre-merge checks failed

Please resolve all errors before merging. Addressing warnings is optional.

  • Ignore (reviewers only)

❌ Failed checks (1 error)

Check name Status Explanation Resolution
End-To-End Regression Coverage For Fixes ❌ Error PR uses bug-fix language in title, changed test file is in e2e/ not browser_tests/, and PR description lacks concrete explanation for missing regression test. Add or update a Playwright regression test under browser_tests/ directory, or provide concrete technical reasons in PR description for why regression test is not required.
✅ Passed checks (6 passed)
Check name Status Explanation
Title check ✅ Passed The title accurately describes the main change: updating Install via GitHub buttons to point to the install docs anchor instead of the repo root.
Description check ✅ Passed The description covers all key sections from the template with comprehensive details about changes, verification steps, and context for the update.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.
Adr Compliance For Entity/Litegraph Changes ✅ Passed No modified files are in src/lib/litegraph/, src/ecs/, or related to graph entities. All changes are in apps/website/.
✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch glary/website-install-link

Tip

💬 Introducing Slack Agent: Turn conversations into code.

Slack Agent is built on CodeRabbit's deep understanding of your code, so your team can collaborate across the entire SDLC without losing context.

  • Generate code and open pull requests
  • Plan features and break down work
  • Investigate incidents and troubleshoot customer tickets together
  • Automate recurring tasks and respond to alerts with triggers
  • Summarize progress and report instantly

Built for teams:

  • Shared memory across your entire org—no repeating context
  • Per-thread sandboxes to safely plan and execute work
  • Governance built-in—scoped access, auditability, and budget controls

One agent for your entire SDLC. Right inside Slack.

👉 Get your free trial and get 200 agent minutes per Slack user (a $50 value).


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.

@github-actions
Copy link
Copy Markdown

github-actions Bot commented May 2, 2026

🌐 Website E2E

Tip

All tests passed.

Status ✅ Passed
Report View Report

🔗 Website Preview

Website Preview: https://comfy-website-preview-pr-11852.vercel.app

This commit: https://website-frontend-6i27wum4y-comfyui.vercel.app

Last updated: 2026-05-03T07:56:53Z for 7830006

Copy link
Copy Markdown
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: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Inline comments:
In `@apps/website/src/config/routes.ts`:
- Line 37: The githubInstall route value (githubInstall) points to a
non-existent README anchor "#installing"; update the URL to a valid anchor or to
the README root: inspect the ComfyUI README to find the correct section anchor
(e.g., the actual heading slug such as "#manual-install-windows-linux" if
present) and replace 'https://github.com/Comfy-Org/ComfyUI#installing' with the
verified URL, or remove the fragment to link to the top-level README until the
upstream adds an "Installing" heading.
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 42f2dd91-b37e-43c7-93c9-637454114ad6

📥 Commits

Reviewing files that changed from the base of the PR and between 7abd9d1 and b0ccb69.

📒 Files selected for processing (3)
  • apps/website/src/components/product/local/EcoSystemSection.vue
  • apps/website/src/components/product/local/HeroSection.vue
  • apps/website/src/config/routes.ts

docs: 'https://docs.comfy.org/',
docsApi: 'https://docs.comfy.org/api-reference/cloud',
github: 'https://github.com/Comfy-Org/ComfyUI',
githubInstall: 'https://github.com/Comfy-Org/ComfyUI#installing',
Copy link
Copy Markdown
Contributor

@coderabbitai coderabbitai Bot May 2, 2026

Choose a reason for hiding this comment

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

⚠️ Potential issue | 🟠 Major

🧩 Analysis chain

🌐 Web query:

Does the ComfyUI README at https://github.com/Comfy-Org/ComfyUI currently have a heading that generates the anchor #installing?

💡 Result:

No. The current ComfyUI README at https://github.com/Comfy-Org/ComfyUI/blob/master/README.md does not have a heading whose generated anchor would be #installing. In the README’s installation section headings, the visible subheading is “Manual Install (Windows, Linux)” (and then “Instructions:” / platform-specific subheadings), rather than a heading named “Installing”, which would be required for an anchor like #installing.

Citations:


Fix the GitHub URL: the #installing anchor does not exist in the ComfyUI README

The ComfyUI README does not have a heading that generates the #installing anchor. The installation section uses headings like "Manual Install (Windows, Linux)" instead. This link will direct users to the top of the README rather than the installation section, defeating its purpose.

Either update the URL to point to an existing section (e.g., by checking the actual README structure), or coordinate with the ComfyUI team to add an "Installing" heading to their README before merging this change.

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@apps/website/src/config/routes.ts` at line 37, The githubInstall route value
(githubInstall) points to a non-existent README anchor "#installing"; update the
URL to a valid anchor or to the README root: inspect the ComfyUI README to find
the correct section anchor (e.g., the actual heading slug such as
"#manual-install-windows-linux" if present) and replace
'https://github.com/Comfy-Org/ComfyUI#installing' with the verified URL, or
remove the fragment to link to the top-level README until the upstream adds an
"Installing" heading.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pushing back on this — the #installing anchor does exist in the upstream ComfyUI README.

Fetching the raw README right now (https://raw.githubusercontent.com/comfyanonymous/ComfyUI/master/README.md), there's a top-level heading:

# Installing

…which GitHub renders with id="installing" per its slug algorithm (lowercase, spaces→hyphens). The README itself relies on this anchor — its own "Get Started" section links there:

#### [Windows Portable Package](#installing)

So the link https://github.com/Comfy-Org/ComfyUI#installing jumps to the Installing section as intended. (Comfy-Org/ComfyUI redirects to comfyanonymous/ComfyUI, which serves this README.)

CodeRabbit's web search appears to have missed the # Installing H1 between the Shortcuts table and the Windows Portable subsection. No change needed.

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.

Skipped: comment is from another GitHub bot.

christian-byrne
christian-byrne previously approved these changes May 3, 2026
@christian-byrne christian-byrne marked this pull request as ready for review May 3, 2026 07:51
@christian-byrne christian-byrne requested a review from a team May 3, 2026 07:51
@dosubot dosubot Bot added the size:XS This PR changes 0-9 lines, ignoring generated files. label May 3, 2026
Copy link
Copy Markdown
Contributor

@christian-byrne christian-byrne left a comment

Choose a reason for hiding this comment

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

Need to fix this test:

1) [desktop] › e2e/download.spec.ts:30:3 › Download page @smoke › HeroSection has download and GitHub buttons 

    Error: expect(locator).toHaveAttribute(expected) failed

    Locator:  locator('section').filter({ has: getByRole('heading', { name: /Run on your hardware/i, level: 1 }) }).getByRole('link', { name: /INSTALL FROM GITHUB/i })
    Expected: "https://github.com/Comfy-Org/ComfyUI"
    Received: "https://github.com/Comfy-Org/ComfyUI#installing"
    Timeout:  5000ms

    Call log:
      - Expect "toHaveAttribute" with timeout 5000ms
      - waiting for locator('section').filter({ has: getByRole('heading', { name: /Run on your hardware/i, level: 1 }) }).getByRole('link', { name: /INSTALL FROM GITHUB/i })
        9 × locator resolved to <a href="https://github.com/Comfy-Org/ComfyUI#installing" class="inline-flex flex-nowrap items-center justify-center cursor-pointer font-bold tracking-wider transition-colors gap-2 text-nowrap border-primary-comfy-yellow text-primary-comfy-yellow hover:bg-primary-comfy-yellow hover:text-primary-comfy-ink border rounded-2xl px-4 py-2 text-sm lg:min-w-60 lg:p-4">…</a>
          - unexpected value "https://github.com/Comfy-Org/ComfyUI#installing"


      45 |     const githubBtn = hero.getByRole('link', { name: /INSTALL FROM GITHUB/i })
      46 |     await expect(githubBtn).toBeVisible()
    > 47 |     await expect(githubBtn).toHaveAttribute(
         |                             ^
      48 |       'href',
      49 |       'https://github.com/Comfy-Org/ComfyUI'
      50 |     )
        at /__w/ComfyUI_frontend/ComfyUI_frontend/apps/website/e2e/download.spec.ts:47:29

    Error Context: test-results/download-Download-page-smo-527d3-download-and-GitHub-buttons-desktop/error-context.md

    Retry #1 ───────────────────────────────────────────────────────────────────────────────────────

    Error: expect(locator).toHaveAttribute(expected) failed

    Locator:  locator('section').filter({ has: getByRole('heading', { name: /Run on your hardware/i, level: 1 }) }).getByRole('link', { name: /INSTALL FROM GITHUB/i })
    Expected: "https://github.com/Comfy-Org/ComfyUI"
    Received: "https://github.com/Comfy-Org/ComfyUI#installing"
    Timeout:  5000ms

    Call log:
      - Expect "toHaveAttribute" with timeout 5000ms
      - waiting for locator('section').filter({ has: getByRole('heading', { name: /Run on your hardware/i, level: 1 }) }).getByRole('link', { name: /INSTALL FROM GITHUB/i })
        9 × locator resolved to <a href="https://github.com/Comfy-Org/ComfyUI#installing" class="inline-flex flex-nowrap items-center justify-center cursor-pointer font-bold tracking-wider transition-colors gap-2 text-nowrap border-primary-comfy-yellow text-primary-comfy-yellow hover:bg-primary-comfy-yellow hover:text-primary-comfy-ink border rounded-2xl px-4 py-2 text-sm lg:min-w-60 lg:p-4">…</a>
          - unexpected value "https://github.com/Comfy-Org/ComfyUI#installing"


      45 |     const githubBtn = hero.getByRole('link', { name: /INSTALL FROM GITHUB/i })
      46 |     await expect(githubBtn).toBeVisible()
    > 47 |     await expect(githubBtn).toHaveAttribute(
         |                             ^
      48 |       'href',
      49 |       'https://github.com/Comfy-Org/ComfyUI'
      50 |     )
        at /__w/ComfyUI_frontend/ComfyUI_frontend/apps/website/e2e/download.spec.ts:47:29

    Error Context: test-results/download-Download-page-smo-527d3-download-and-GitHub-buttons-desktop-retry1/error-context.md

    attachment #2: trace (application/zip) ─────────────────────────────────────────────────────────
    test-results/download-Download-page-smo-527d3-download-and-GitHub-buttons-desktop-retry1/trace.zip
    Usage:

        pnpm exec playwright show-trace test-results/download-Download-page-smo-527d3-download-and-GitHub-buttons-desktop-retry1/trace.zip

    ────────────────────────────────────────────────────────────────────────────────────────────────

    Retry #2 ───────────────────────────────────────────────────────────────────────────────────────

    Error: expect(locator).toHaveAttribute(expected) failed

    Locator:  locator('section').filter({ has: getByRole('heading', { name: /Run on your hardware/i, level: 1 }) }).getByRole('link', { name: /INSTALL FROM GITHUB/i })
    Expected: "https://github.com/Comfy-Org/ComfyUI"
    Received: "https://github.com/Comfy-Org/ComfyUI#installing"
    Timeout:  5000ms

    Call log:
      - Expect "toHaveAttribute" with timeout 5000ms
      - waiting for locator('section').filter({ has: getByRole('heading', { name: /Run on your hardware/i, level: 1 }) }).getByRole('link', { name: /INSTALL FROM GITHUB/i })
        9 × locator resolved to <a href="https://github.com/Comfy-Org/ComfyUI#installing" class="inline-flex flex-nowrap items-center justify-center cursor-pointer font-bold tracking-wider transition-colors gap-2 text-nowrap border-primary-comfy-yellow text-primary-comfy-yellow hover:bg-primary-comfy-yellow hover:text-primary-comfy-ink border rounded-2xl px-4 py-2 text-sm lg:min-w-60 lg:p-4">…</a>
          - unexpected value "https://github.com/Comfy-Org/ComfyUI#installing"


      45 |     const githubBtn = hero.getByRole('link', { name: /INSTALL FROM GITHUB/i })
      46 |     await expect(githubBtn).toBeVisible()
    > 47 |     await expect(githubBtn).toHaveAttribute(
         |                             ^
      48 |       'href',
      49 |       'https://github.com/Comfy-Org/ComfyUI'
      50 |     )
        at /__w/ComfyUI_frontend/ComfyUI_frontend/apps/website/e2e/download.spec.ts:47:29

    Error Context: test-results/download-Download-page-smo-527d3-download-and-GitHub-buttons-desktop-retry2/error-context.md

  1 failed
    [desktop] › e2e/download.spec.ts:30:3 › Download page @smoke › HeroSection has download and GitHub buttons 
  113 passed (2.2m)
/__w/ComfyUI_frontend/ComfyUI_frontend/apps/website:
 ERR_PNPM_RECURSIVE_RUN_FIRST_FAIL  @comfyorg/website@0.0.1 test:e2e: `playwright test`
Exit status 1

@glary-bot
Copy link
Copy Markdown

glary-bot Bot commented May 3, 2026

Fixed the e2e test — HeroSection has download and GitHub buttons was asserting the old URL. Updated to expect https://github.com/Comfy-Org/ComfyUI#installing.

Verified locally: pnpm exec playwright test e2e/download.spec.ts --project=desktop — 12/12 passing.

@christian-byrne christian-byrne merged commit f70285d into main May 4, 2026
40 checks passed
@christian-byrne christian-byrne deleted the glary/website-install-link branch May 4, 2026 21:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:XS This PR changes 0-9 lines, ignoring generated files.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants