Skip to content

feat: implement global command palette and dynamic OG images - #40

Merged
Yash-pluto merged 4 commits into
mainfrom
feat/roadmaps-and-resources
Aug 10, 2026
Merged

Yash-pluto merged 4 commits into
mainfrom
feat/roadmaps-and-resources

Conversation

@Yash-pluto

@Yash-pluto Yash-pluto commented Aug 10, 2026 •

Copy link
Copy Markdown
Owner

Summary by CodeRabbit

  • New Features

    • Added a global command palette for searching documentation topics and accessing quick actions.
    • Added keyboard shortcuts, Escape-to-close behavior, result highlighting, navigation, theme switching, URL copying, and GitHub access.
    • Added branded Open Graph images for documentation topics when shared.
    • Updated the homepage to display the full category grid alongside the new search experience.
  • Style

    • Refreshed light-theme colors and text selection styling.

- Redesigned landing page with a new hero section and categorized topic grids
- Built mobile-responsive navigation including a slide-out drawer and inline TOC
- Upgraded MDX components with advanced code blocks and callouts/admonitions
- Integrated Fuse.js for fuzzy search with exact-match text highlighting
- Added breadcrumbs, a feedback widget, and 'Edit on GitHub' links
@Yash-pluto Yash-pluto self-assigned this Aug 10, 2026
@Yash-pluto Yash-pluto added enhancement checked The provided code works. labels Aug 10, 2026
@vercel

vercel Bot commented Aug 10, 2026

Copy link
Copy Markdown

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

Project Deployment Actions Updated (UTC)
refme Error Error Aug 10, 2026 6:57am

@coderabbitai

coderabbitai Bot commented Aug 10, 2026 •

Copy link
Copy Markdown

Review Change Stack

Caution

Review failed

The pull request is closed.

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Path: .coderabbit.yaml

Review profile: CHILL

Plan: Pro Plus

Run ID: c97d87a8-2c16-4dac-9d7a-ae2ac80bbd60

📥 Commits

Reviewing files that changed from the base of the PR and between bf21c0f and 6228d58.

⛔ Files ignored due to path filters (1)
  • frontend/package-lock.json is excluded by !**/package-lock.json
📒 Files selected for processing (5)
  • frontend/app/[topic]/TopicLayout.tsx
  • frontend/app/[topic]/opengraph-image.tsx
  • frontend/app/globals.css
  • frontend/app/page.tsx
  • frontend/package.json

📝 Walkthrough

Walkthrough

The frontend replaces inline search fields with cmdk command palettes on the homepage and topic pages. It adds keyboard controls, fuzzy results, navigation actions, theme and URL actions, updated colors, and generated topic-specific Open Graph images.

Changes

Global command palette

Layer / File(s) Summary
Command palette foundation
frontend/package.json, frontend/app/page.tsx, frontend/app/[topic]/TopicLayout.tsx
The frontend adds cmdk, palette state, Meta/Ctrl+K toggling, Escape dismissal, and body scroll locking.
Homepage search and navigation
frontend/app/page.tsx
The homepage adds fuzzy topic results, quick actions, highlighted matches, routing, and a button that opens the palette. The category grid renders directly from REFERENCE_DATA.
Topic layout search and actions
frontend/app/[topic]/TopicLayout.tsx
The topic layout adds documentation results, directory matching, section navigation, theme switching, URL copying, GitHub navigation, and modal dismissal.
Open Graph previews and visual styles
frontend/app/[topic]/opengraph-image.tsx, frontend/app/globals.css
The topic route generates branded 1200×630 PNG images. Text selection colors use a translucent purple background and wheat-colored text.

Estimated code review effort: 4 (Complex) | ~45 minutes

Sequence Diagram(s)

sequenceDiagram
  participant User
  participant HomePage
  participant CommandPalette
  participant NextRouter
  User->>HomePage: Press Meta/Ctrl+K or click search button
  HomePage->>CommandPalette: Open palette
  User->>CommandPalette: Enter and select a topic
  CommandPalette->>NextRouter: Navigate to topic route
Loading

Possibly related PRs

  • Yash-pluto/refme#34: Both changes modify TopicLayout.tsx and page.tsx for frontend search and navigation.
  • Yash-pluto/refme#39: Both changes modify the main pages and search-related dependencies.

Poem

A shortcut opens the search,
Topics gather in a palette,
Routes guide each choice,
Preview cards brighten shared links,
And themes follow the command.

✨ Finishing Touches 💡 1
🛠️ Fix failing CI checks 💡
  • Create stacked PR
  • Commit on current branch
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feat/roadmaps-and-resources

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

@Yash-pluto
Yash-pluto merged commit b0855dd into main Aug 10, 2026
1 of 4 checks passed

@Yash-pluto Yash-pluto left a comment

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

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

works

@Yash-pluto
Yash-pluto deleted the feat/roadmaps-and-resources branch August 10, 2026 06:59

This branch had an error being deployed

1 failed deployment
Preview — 6228d58d Deployed Aug 10, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

checked The provided code works.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant