Skip to content

Conversation

Blacksmoke16
Copy link
Contributor

@Blacksmoke16 Blacksmoke16 commented Jul 15, 2025

Summary by CodeRabbit

  • Bug Fixes
    • Updated multiple documentation links throughout the app to point to the correct and current URLs, ensuring users are directed to the intended resources for federated graphs, subgraphs, CLI commands, Slack integration, and webhooks. No other functionality or logic was changed.

Checklist

  • I have discussed my proposed changes in an issue and have received approval to proceed.
  • I have followed the coding standards of the project.
  • Tests or benchmarks have been added or updated.
  • Documentation has been updated on https://github.com/wundergraph/cosmo-docs.
  • I have read the Contributors Guide.

Also opened wundergraph/cosmo-docs#123 as that was another broken link I encountered while exploring Cosmo Cloud.

Copy link

coderabbitai bot commented Jul 15, 2025

Walkthrough

This update standardizes and corrects documentation hyperlink URLs across multiple Studio components and pages. The changes involve updating anchor tag href attributes to point to the correct, current documentation paths for CLI commands, Slack integration, webhooks, and persisted operations. No logic, control flow, or exported/public entity declarations are altered.

Changes

Files/Areas Change Summary
studio/src/components/federatedgraphs-cards.tsx Corrected federated graph CLI creation documentation URL in anchor tag.
studio/src/components/schema/empty-schema-state.tsx,
studio/src/pages/[organizationSlug]/[namespace]/graph/[slug]/changelog/index.tsx,
studio/src/pages/[organizationSlug]/[namespace]/subgraph/[subgraphSlug]/schema.tsx
Corrected CLI publish documentation URLs from plural to singular path segments in anchor tags.
studio/src/components/subgraphs-table.tsx Updated subgraph creation CLI documentation URL in anchor tag.
studio/src/pages/[organizationSlug]/[namespace]/graph/[slug]/checks/index.tsx Corrected CLI check documentation URL from plural to singular in anchor tag.
studio/src/pages/[organizationSlug]/[namespace]/graph/[slug]/clients.tsx Updated three occurrences of persisted operations documentation URL to new path.
studio/src/pages/[organizationSlug]/integrations.tsx Updated Slack integration documentation URLs to new alerts-and-notifications path in two places.
studio/src/pages/[organizationSlug]/webhooks.tsx Updated all webhook documentation URLs to new alerts-and-notifications path in three locations.
✨ Finishing Touches
  • 📝 Generate Docstrings

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
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Explain this complex logic.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai explain this code block.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and explain its main purpose.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Support

Need 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)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate docstrings to generate docstrings for this PR.
  • @coderabbitai generate sequence diagram to generate a sequence diagram of the changes in this PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 0

♻️ Duplicate comments (1)
studio/src/pages/[organizationSlug]/[namespace]/graph/[slug]/clients.tsx (1)

648-670: Same hard-coded URL as above. Apply the constant/noopener suggestion here for consistency.

🧹 Nitpick comments (8)
studio/src/pages/[organizationSlug]/[namespace]/graph/[slug]/checks/index.tsx (1)

129-136: Consider centralising documentation URL fragments

This is the N-th place in the codebase that manually concatenates docsBaseURL + "/cli/subgraph/check".
A tiny typo (as we just fixed) breaks all deep-links. It might be safer to harvest all CLI doc paths in a single enum/const map and reference them, e.g.

- href={docsBaseURL + "/cli/subgraph/check"}
+ href={getDocURL("cli.subgraph.check")}

Implementing a thin helper eliminates string duplication and makes future moves/renames mechanical.

studio/src/pages/[organizationSlug]/[namespace]/subgraph/[subgraphSlug]/schema.tsx (1)

84-93: Same duplication caveat applies here

Another literal "/cli/subgraph/publish" concatenation. Please consider the helper/enum suggested in the previous comment to reduce repetition and avoid drift.

studio/src/pages/[organizationSlug]/[namespace]/graph/[slug]/changelog/index.tsx (1)

185-193: Link string duplication

The corrected link is fine, but it reiterates the hard-coded path. Re-use a shared constant/helper to keep all CLI doc routes in one place.

studio/src/components/federatedgraphs-cards.tsx (1)

480-487: Minor: centralise federated-graph doc paths

Same pattern as above ("/cli/federated-graph/create"). Centralising would remove the likelihood of future pluralisation/renaming errors.

studio/src/components/schema/empty-schema-state.tsx (1)

24-31: Duplicate literal path

The publish subgraph docs URL is now correct, but again repeats a literal string. Please see earlier suggestion about a shared constant/helper.

studio/src/components/subgraphs-table.tsx (1)

108-116: Consider extracting doc-link & adding noopener.

The string "/cli/subgraph/create" is now hard-coded here but similar CLI doc links appear in several components. Re-using a shared constant (e.g. DOCS_CLI_SUBGRAPH_CREATE) under lib/constants.ts would keep paths maintainable if they ever change again.

While touching the anchor: adding noopener alongside noreferrer avoids the window.opener leak.

-  rel="noreferrer"
+  rel="noopener noreferrer"
studio/src/pages/[organizationSlug]/[namespace]/graph/[slug]/clients.tsx (2)

244-252: Duplication of docs URL – extract to constant & add noopener.

The persisted-operations docs link now appears multiple times in this file (see lines 648-669 and 664-669). Repeating the literal increases drift risk. Suggest:

const DOCS_PERSISTED_OPS = `${docsBaseURL}/router/persisted-queries/persisted-operations`;

and reuse.
Also append noopener in rel.

-  rel="noreferrer"
+  rel="noopener noreferrer"

664-666: Minor: prefer passHref when using external links with next/link.

If you switch to Link for external URLs (line 664) ensure the passHref prop is set to propagate href to the underlying <a>; otherwise use a plain <a> tag.
[current code works, flagging only if you refactor].

📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 4c418b7 and 57514c5.

📒 Files selected for processing (9)
  • studio/src/components/federatedgraphs-cards.tsx (1 hunks)
  • studio/src/components/schema/empty-schema-state.tsx (1 hunks)
  • studio/src/components/subgraphs-table.tsx (1 hunks)
  • studio/src/pages/[organizationSlug]/[namespace]/graph/[slug]/changelog/index.tsx (1 hunks)
  • studio/src/pages/[organizationSlug]/[namespace]/graph/[slug]/checks/index.tsx (1 hunks)
  • studio/src/pages/[organizationSlug]/[namespace]/graph/[slug]/clients.tsx (3 hunks)
  • studio/src/pages/[organizationSlug]/[namespace]/subgraph/[subgraphSlug]/schema.tsx (1 hunks)
  • studio/src/pages/[organizationSlug]/integrations.tsx (2 hunks)
  • studio/src/pages/[organizationSlug]/webhooks.tsx (3 hunks)
🧰 Additional context used
🧬 Code Graph Analysis (9)
studio/src/pages/[organizationSlug]/[namespace]/graph/[slug]/changelog/index.tsx (1)
studio/src/lib/constants.ts (1)
  • docsBaseURL (1-1)
studio/src/components/federatedgraphs-cards.tsx (1)
studio/src/lib/constants.ts (1)
  • docsBaseURL (1-1)
studio/src/pages/[organizationSlug]/[namespace]/subgraph/[subgraphSlug]/schema.tsx (1)
studio/src/lib/constants.ts (1)
  • docsBaseURL (1-1)
studio/src/components/schema/empty-schema-state.tsx (1)
studio/src/lib/constants.ts (1)
  • docsBaseURL (1-1)
studio/src/components/subgraphs-table.tsx (1)
studio/src/lib/constants.ts (1)
  • docsBaseURL (1-1)
studio/src/pages/[organizationSlug]/[namespace]/graph/[slug]/checks/index.tsx (1)
studio/src/lib/constants.ts (1)
  • docsBaseURL (1-1)
studio/src/pages/[organizationSlug]/integrations.tsx (1)
studio/src/lib/constants.ts (1)
  • docsBaseURL (1-1)
studio/src/pages/[organizationSlug]/webhooks.tsx (1)
studio/src/lib/constants.ts (1)
  • docsBaseURL (1-1)
studio/src/pages/[organizationSlug]/[namespace]/graph/[slug]/clients.tsx (1)
studio/src/lib/constants.ts (1)
  • docsBaseURL (1-1)
🔇 Additional comments (5)
studio/src/pages/[organizationSlug]/integrations.tsx (2)

625-625: Consistent URL update for Slack integration documentation.

The documentation URL has been consistently updated to match the new path structure under /studio/alerts-and-notifications/.


583-583: Slack integration documentation link verified

  • Confirmed that https://cosmo-docs.wundergraph.com/studio/alerts-and-notifications/slack-integration returns HTTP 200.
  • Updates in studio/src/pages/[organizationSlug]/integrations.tsx (lines 583 and 625) correctly point to the new path.

No further changes required.

studio/src/pages/[organizationSlug]/webhooks.tsx (3)

506-506: Consistent URL update for webhook documentation.

The documentation URL has been consistently updated to match the new path structure under /studio/alerts-and-notifications/.


524-524: Consistent URL update for webhook documentation.

The documentation URL has been consistently updated to match the new path structure under /studio/alerts-and-notifications/.


384-384: Webhook documentation URL verified and accessible

The updated webhook documentation URL (/studio/alerts-and-notifications/webhooks#verification) returns HTTP 200, confirming the link works as expected. No further changes are needed.

  • File: studio/src/pages/[organizationSlug]/webhooks.tsx
    • Line 384: href updated to docsBaseURL + "/studio/alerts-and-notifications/webhooks#verification"
    • Line 506: href in empty state description
    • Line 524: href in informational paragraph above table

@JivusAyrus
Copy link
Member

Hi @Blacksmoke16 , Thanks for the PR.

@JivusAyrus JivusAyrus merged commit 2fd6f40 into wundergraph:main Jul 17, 2025
9 checks passed
@Blacksmoke16 Blacksmoke16 deleted the fix-broken-links branch July 17, 2025 15:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants