refactor(docs): add direct migration link and ng add command - #1443
Merged
Conversation
There was a problem hiding this comment.
Pull request overview
Updates the docs landing page hero section to better direct new users by highlighting PrimeNG migration guidance and showing a one-click “ng add” install command.
Changes:
- Replaces the “Give a Star” GitHub CTA with a direct “Migrate from PrimeNG” link.
- Adds an
ng add @openng/optimus-uicommand pill with a copy-to-clipboard button. - Implements clipboard copy behavior with visual “Copied!” feedback state.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Comment on lines
+71
to
+72
| <div class="flex items-center gap-3 mt-12 bg-surface-100 dark:bg-surface-800 border border-black/10 dark:border-white/10 rounded-full py-2 pl-5 pr-2"> | ||
| <code class="font-mono text-sm text-surface-700 dark:text-surface-300">ng add @openng/optimus-ui</code> |
geromegrignon
force-pushed
the
refactor-lading-docs
branch
from
August 5, 2026 12:50
837340e to
a4b7a83
Compare
There was a problem hiding this comment.
Pull request overview
Copilot reviewed 1 out of 1 changed files in this pull request and generated no new comments.
Suppressed comments (1)
apps/docs/pages/landing/herosection.component.ts:1047
setTimeout(() => (this.commandCopied = false), 2000)can race if the user clicks the copy button multiple times: an earlier timeout may flipcommandCopiedback tofalsesooner than 2s after the most recent click. Track the timeout handle so you can clear/restart it on each successful copy (and clear it inngOnDestroy).
.then(() => {
this.commandCopied = true;
setTimeout(() => (this.commandCopied = false), 2000);
})
dominicbachmann
approved these changes
Aug 5, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Related issues
Fixes #
Type of change
Breaking changes
None
Test plan
npm run buildnpm testnpm run lintChecklist
Additional context