Skip to content

refactor: remove breadcrumb components from program pages#2324

Merged
anglilian merged 1 commit into
masterfrom
remove-program-page-breadcrumbs
Apr 26, 2026
Merged

refactor: remove breadcrumb components from program pages#2324
anglilian merged 1 commit into
masterfrom
remove-program-page-breadcrumbs

Conversation

@anglilian

Copy link
Copy Markdown
Contributor

Removed unused Breadcrumbs component imports and implementations from the programs page and grant pages (career-transition-grant and rapid-grants). Also simplified route configuration by removing BluedotRoute types and ROUTES imports, replacing them with simple PAGE_TITLE constants where needed.

Description

Issue

Fixes #

Developer checklist

Screenshot

📸 Before After
📱
🖥️

Removed unused Breadcrumbs component imports and implementations from the programs page and grant pages (career-transition-grant and rapid-grants). Also simplified route configuration by removing BluedotRoute types and ROUTES imports, replacing them with simple PAGE_TITLE constants where needed.
@render render Bot temporarily deployed to remove-program-page-breadcrumbs - bluedot-preview PR #2324 April 26, 2026 17:20 Destroyed
@coderabbitai

coderabbitai Bot commented Apr 26, 2026

Copy link
Copy Markdown
Contributor
📝 Walkthrough

Walkthrough

This pull request removes Breadcrumbs UI components and associated route metadata from three programmes pages within the website. It eliminates imports for the Breadcrumbs component and ROUTES constants, removes breadcrumb JSX elements from the component trees, and replaces route-derived document title logic with static PAGE_TITLE constants. The remaining page content and functionality remain unchanged.

Possibly related PRs

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 inconclusive)

Check name Status Explanation Resolution
Description check ❓ Inconclusive The description explains what was removed but lacks detail on why the changes were made and doesn't address the visual implications of removing breadcrumbs. Expand the description to explain the motivation for removing breadcrumbs and clarify whether this change affects user navigation or the application's information architecture.
✅ Passed checks (4 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly and concisely describes the main change: removing breadcrumb components from program pages.
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.

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

✨ 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 remove-program-page-breadcrumbs

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.

@greptile-apps

greptile-apps Bot commented Apr 26, 2026

Copy link
Copy Markdown
Contributor

Greptile Summary

This PR removes the Breadcrumbs component from three program pages (programs, career-transition-grant, rapid-grants) and cleans up the now-unused BluedotRoute / ROUTES imports, replacing the CURRENT_ROUTE objects with simple PAGE_TITLE string constants. The changes are minimal, self-contained, and leave no dangling imports or broken references.

Confidence Score: 5/5

Safe to merge — purely cosmetic cleanup with no logic changes or broken references.

All three files retain their necessary imports, no dead code was left behind, and no functionality was altered — only breadcrumb rendering and the supporting route boilerplate were removed.

No files require special attention.

Important Files Changed

Filename Overview
apps/website/src/pages/programs.tsx Removes unused Breadcrumbs component import and render; ROUTES import is correctly retained since it is still used for ROUTES.courses.url.
apps/website/src/pages/programs/career-transition-grant.tsx Removes Breadcrumbs render, CURRENT_ROUTE object, and associated ROUTES/BluedotRoute imports; replaced with a simple PAGE_TITLE constant used only in the <title> tag.
apps/website/src/pages/programs/rapid-grants.tsx Same cleanup as career-transition-grant.tsx — breadcrumb and route boilerplate removed, PAGE_TITLE constant introduced; import type React retained correctly for React.BaseSyntheticEvent.

Flowchart

%%{init: {'theme': 'neutral'}}%%
flowchart TD
    A[Page renders] --> B[MarketingHero]
    B --> C[Page content sections]
    OLD["❌ Removed: Breadcrumbs component\n(route with parentPages chain)"]
    B -.->|was here before| OLD
Loading

Reviews (1): Last reviewed commit: "refactor: remove breadcrumb components f..." | Re-trigger Greptile

@coderabbitai coderabbitai Bot 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.

🧹 Nitpick comments (2)
apps/website/src/pages/programs/rapid-grants.tsx (1)

13-45: Optional: reuse PAGE_TITLE in MarketingHero.

Same observation as in career-transition-grant.tsxMarketingHero on line 43 duplicates the literal 'Rapid Grants' already declared as PAGE_TITLE.

♻️ Proposed change
       <MarketingHero
-        title="Rapid Grants"
+        title={PAGE_TITLE}
         subtitle="Funding for the BlueDot community to ship projects, run events, and do other concrete work on AI safety."
       />
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@apps/website/src/pages/programs/rapid-grants.tsx` around lines 13 - 45, The
MarketingHero component is using the literal 'Rapid Grants' instead of the
existing PAGE_TITLE constant; update the JSX to pass PAGE_TITLE as the title
prop (replace the hard-coded string in the MarketingHero title prop with
PAGE_TITLE) so the component reuses the declared constant (look for PAGE_TITLE
and the MarketingHero invocation).
apps/website/src/pages/programs/career-transition-grant.tsx (1)

14-33: Optional: reuse PAGE_TITLE in MarketingHero.

MarketingHero on line 31 hardcodes the same 'Career Transition Grants' string already captured in PAGE_TITLE. Passing PAGE_TITLE keeps the page heading and document title in sync if the wording ever changes.

♻️ Proposed change
       <MarketingHero
-        title="Career Transition Grants"
+        title={PAGE_TITLE}
         subtitle="Funding and support to help you work full-time on AI safety."
       />
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In `@apps/website/src/pages/programs/career-transition-grant.tsx` around lines 14
- 33, The MarketingHero title is hardcoded to "Career Transition Grants" even
though PAGE_TITLE already holds that string; inside the
CareerTransitionGrantPage component replace the hardcoded title prop on
<MarketingHero title="Career Transition Grants" .../> with the PAGE_TITLE
constant so the page heading and document title stay in sync (update the
MarketingHero usage to pass title={PAGE_TITLE}).
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Nitpick comments:
In `@apps/website/src/pages/programs/career-transition-grant.tsx`:
- Around line 14-33: The MarketingHero title is hardcoded to "Career Transition
Grants" even though PAGE_TITLE already holds that string; inside the
CareerTransitionGrantPage component replace the hardcoded title prop on
<MarketingHero title="Career Transition Grants" .../> with the PAGE_TITLE
constant so the page heading and document title stay in sync (update the
MarketingHero usage to pass title={PAGE_TITLE}).

In `@apps/website/src/pages/programs/rapid-grants.tsx`:
- Around line 13-45: The MarketingHero component is using the literal 'Rapid
Grants' instead of the existing PAGE_TITLE constant; update the JSX to pass
PAGE_TITLE as the title prop (replace the hard-coded string in the MarketingHero
title prop with PAGE_TITLE) so the component reuses the declared constant (look
for PAGE_TITLE and the MarketingHero invocation).

ℹ️ Review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro

Run ID: 63c7b130-c999-4756-b5c6-0a234862612d

📥 Commits

Reviewing files that changed from the base of the PR and between a1566ef and e9cdd2e.

📒 Files selected for processing (3)
  • apps/website/src/pages/programs.tsx
  • apps/website/src/pages/programs/career-transition-grant.tsx
  • apps/website/src/pages/programs/rapid-grants.tsx

@anglilian anglilian merged commit aacf369 into master Apr 26, 2026
4 checks passed
@anglilian anglilian deleted the remove-program-page-breadcrumbs branch April 26, 2026 17:26
@coderabbitai coderabbitai Bot mentioned this pull request Apr 26, 2026
3 tasks
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