Skip to content

feat(landing): use getRecommendByUrl for AI prompts - #2111

Merged
710leo merged 1 commit into
mainfrom
change-landing
May 22, 2026
Merged

feat(landing): use getRecommendByUrl for AI prompts #2111
710leo merged 1 commit into
mainfrom
change-landing

Conversation

@710leo

@710leo 710leo commented May 22, 2026

Copy link
Copy Markdown
Member

…start links

Summary by CodeRabbit

  • New Features

    • AI chat now provides language-aware prompt recommendations on the landing page.
  • Documentation

    • Updated quick-start guide links on the landing page to direct users to Categraf installation and built-in skills documentation.
    • Updated landing page content across multiple languages (English, Japanese, Russian, Simplified Chinese, Traditional Chinese).

Review Change Stack

@coderabbitai

coderabbitai Bot commented May 22, 2026

Copy link
Copy Markdown

Caution

Review failed

Pull request was closed or merged during review

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro

Run ID: d5e7db4f-6874-4db1-b066-de62e7f6609e

📥 Commits

Reviewing files that changed from the base of the PR and between 3e1a6b0 and 26ec868.

📒 Files selected for processing (7)
  • src/pages/landing/index.tsx
  • src/pages/landing/landing.data.ts
  • src/pages/landing/locale/en_US.ts
  • src/pages/landing/locale/ja_JP.ts
  • src/pages/landing/locale/ru_RU.ts
  • src/pages/landing/locale/zh_CN.ts
  • src/pages/landing/locale/zh_HK.ts

📝 Walkthrough

Walkthrough

Landing page quick-start links are refactored to dynamically source prompts via getRecommendByUrl based on page path and language, and quick-start link URLs and labels are updated across data and locale files to reference Categraf ingestion and Nightingale built-in AI skills documentation.

Changes

Landing Page Quick-Start Configuration

Layer / File(s) Summary
Dynamic prompt list integration
src/pages/landing/index.tsx
Landing imports getRecommendByUrl and updates handleAskAi to compute promptList dynamically via /landing path and current language, replacing hardcoded translated prompts and adjusting useCallback dependencies to track i18n.language.
Quick-start link URLs and localization
src/pages/landing/landing.data.ts, src/pages/landing/locale/en_US.ts, src/pages/landing/locale/ja_JP.ts, src/pages/landing/locale/ru_RU.ts, src/pages/landing/locale/zh_CN.ts, src/pages/landing/locale/zh_HK.ts
Quick-start guide URLs in data configuration and link labels across all locale files are updated to point to Categraf installation documentation and Nightingale built-in skills guides, replacing previous Docker Compose and data source configuration references.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Possibly related PRs

  • n9e/fe#2090: Introduced the landing page implementation that this PR refactors, updating the handleAskAi prompt logic and quick-start link configuration.
  • n9e/fe#2096: Modifies src/components/AiChatNG/recommend.ts which provides the getRecommendByUrl function now used in the landing page to build dynamic prompt lists.

Poem

🐰 Quick-start links now dance with getRecommendByUrl,
Categraf guides and built-in skills unfurl,
Hardcoded prompts yield to language-aware flow,
Locales in harmony, a refactor's sweet show! ✨

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The PR title clearly and specifically summarizes the main technical change: using getRecommendByUrl for AI prompts on the landing page.
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 change-landing

Warning

There were issues while running some tools. Please review the errors and either fix the tool's configuration or disable the tool if it's a critical failure.

🔧 ESLint

If the error stems from missing dependencies, add them to the package.json file. For unrecoverable errors (e.g., due to private dependencies), disable the tool in the CodeRabbit configuration.

ESLint skipped: no ESLint configuration detected in root package.json. To enable, add eslint to devDependencies.


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.

@710leo
710leo merged commit a6f0e34 into main May 22, 2026
1 check was pending
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