-
Notifications
You must be signed in to change notification settings - Fork 1
Revert "Implement Copy Page Dropdown Functionality" #252
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
This reverts commit 5eb9f16.
WalkthroughThis change removes the Changes
Sequence Diagram(s)sequenceDiagram
participant User
participant DocsLayout
participant CopyPageDropdown
participant API_Route
User->>DocsLayout: View docs page
DocsLayout->>CopyPageDropdown: Render dropdown
User->>CopyPageDropdown: Select action (e.g., Copy Markdown)
CopyPageDropdown->>API_Route: Fetch page content
API_Route-->>CopyPageDropdown: Return content/metadata
CopyPageDropdown-->>User: Perform action (copy, open, etc.)
After this change, the entire CopyPageDropdown and API_Route sequence is removed. Estimated code review effort🎯 3 (Moderate) | ⏱️ ~15 minutes Possibly related PRs
Poem
Note ⚡️ Unit Test Generation is now available in beta!Learn more here, or try it out under "Finishing Touches" below. ✨ Finishing Touches
🧪 Generate unit tests
🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
Deploying with
|
Status | Name | Latest Commit | Preview URL | Updated (UTC) |
---|---|---|---|---|
✅ Deployment successful! View logs |
docs | c4e6d5a | Commit Preview URL Branch Preview URL |
Jul 31 2025, 02:22 PM |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Actionable comments posted: 2
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
⛔ Files ignored due to path filters (1)
package-lock.json
is excluded by!**/package-lock.json
📒 Files selected for processing (6)
agent-docs/package.json
(1 hunks)app/(docs)/layout.tsx
(1 hunks)app/api/page-content/route.ts
(0 hunks)app/layout.tsx
(2 hunks)components/CopyPageDropdown.tsx
(0 hunks)package.json
(1 hunks)
💤 Files with no reviewable changes (2)
- app/api/page-content/route.ts
- components/CopyPageDropdown.tsx
🧰 Additional context used
🧠 Learnings (2)
📚 Learning: this is mdx so some react components can be used...
Learnt from: CR
PR: agentuity/docs#0
File: .cursor/rules/mdx.mdc:0-0
Timestamp: 2025-07-23T12:40:13.980Z
Learning: This is MDX so some react components can be used
Applied to files:
app/(docs)/layout.tsx
📚 Learning: applies to agent-docs/**/agentuity.yaml : do not suggest edits to the agentuity ai configuration fil...
Learnt from: CR
PR: agentuity/docs#0
File: agent-docs/.cursor/rules/agentuity.mdc:0-0
Timestamp: 2025-07-23T12:40:26.540Z
Learning: Applies to agent-docs/**/agentuity.yaml : Do not suggest edits to the Agentuity AI Configuration file (agentuity.yaml)
Applied to files:
agent-docs/package.json
🧬 Code Graph Analysis (2)
app/(docs)/layout.tsx (1)
components/AISearchToggle.tsx (1)
AISearchToggle
(7-27)
app/layout.tsx (1)
lib/env.ts (1)
validateEnv
(36-51)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (1)
- GitHub Check: Workers Builds: docs
🔇 Additional comments (4)
agent-docs/package.json (1)
29-38
: Override pin forjs-yaml
removed – confirm no vulnerability re-introducedThe previous
overrides
section forcedgray-matter > js-yaml
to a non-vulnerable^3.14.1
.
gray-matter
is still listed in this package’s dependencies (Line 33), so the transitivejs-yaml
version is now free to float and can resolve to3.14.0
, which is affected by CVE-2021-??? and others.Either:
+ "overrides": { + "gray-matter/js-yaml": "^3.14.1" + },or upgrade/remove
gray-matter
here as well.
Leaving it as-is may re-open a supply-chain vuln.package.json (1)
18-36
: Verify that no residualgray-matter
imports remainThe top-level dependency has been dropped (Lines 18-36), which is correct for the revert.
Please runrg "gray-matter" --glob '!node_modules'
to ensure no runtime import paths still exist; otherwise builds will fail at runtime.app/(docs)/layout.tsx (1)
15-20
: UI gap after removingCopyPageDropdown
appears resolved – LGTMThe large-screen toolbar now contains only
LargeSearchToggle
andAISearchToggle
, preserving spacing and a11y. No further action needed.app/layout.tsx (1)
91-93
: Minor diff-only formatting – no functional impactThe single-line
<RootProvider>
opening tag is fine; no issues spotted.
Reverts #239
Summary by CodeRabbit
Removed Features
Chores
Other