morningman opened a new pull request, #4048: URL: https://github.com/apache/doris-website/pull/4048
## Purpose Bring the Profile Analysis page online. `/profile-analysis` shipped in #4043 but nothing on the site links to it, so the page is only reachable by typing the URL. This adds the missing navigation entry, plus a version notice the page needs before users start feeding it Profiles. ## Changes **1. Resources nav entry** — `src/components/home-next/NavbarNext.tsx` Adds `Profile Analysis` to the Resources dropdown. `buildNavItems` drives both the desktop dropdown and the mobile panel, so the single entry covers both. The `href` omits the locale prefix, matching the neighbouring `/blog`, `/events`, and `/course` entries — Docusaurus `Link` resolves it against the localized baseUrl. **2. Supported-version notice** — `src/components/profile-analysis/ProfileUploader.tsx` > Use a Profile produced by Apache Doris 4.1 or later. Profiles from earlier versions may fail to parse. Placed in the "Choose a Query Profile" section directly above the drop zone, so it is read before a file is picked and stays visible on both the Visualize Execution and AI-assisted analysis tabs. The callout reuses the existing `__ai-warning` rule in `ProfileAnalysis.scss` — the selector is widened to `&__ai-warning, &__version-notice` rather than duplicating the block. No new colors; it keeps using the existing Infima warning tokens. ## Notes The page text is hard-coded English throughout (the privacy notice, the tab labels, the uploader help text), so the notice is English too. Localizing it would mean routing the whole component through `<Translate>`, which is out of scope here. ## Testing Extended `profile-analysis.components.test.js` with a case covering the notice text, its DOM position relative to the drop zone, and the style rule. Full file passes: ``` $ node --test src/components/profile-analysis/profile-analysis.components.test.js ℹ tests 15 ℹ pass 15 ℹ fail 0 ``` 🤖 Generated with [Claude Code](https://claude.com/claude-code) -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
