Skip to content

fix: Update docs link to point to the quickstart (3539) - #3548

Merged
mattinannt merged 4 commits into
formbricks:mainfrom
Asymtode712:main
Oct 14, 2024
Merged

mattinannt merged 4 commits into
formbricks:mainfrom
Asymtode712:main

Conversation

@Asymtode712

@Asymtode712 Asymtode712 commented Oct 12, 2024 •

Copy link
Copy Markdown
Contributor

What does this PR do?

This PR updates the "docs" link, which was previously pointing to the Next.js documentation, to now correctly point to the Quickstart guide at https://formbricks.com/docs/app-surveys/quickstart.

Fixes #3539

How should this be tested?

  • Test A: Navigate to the section with the "docs" link and verify that it now directs to the correct Quickstart guide.

Checklist

Required

  • Filled out the "How to test" section in this PR
  • Read How we Code at Formbricks
  • Self-reviewed my own code
  • Commented on my code in hard-to-understand bits
  • Ran pnpm build
  • Checked for warnings, there are none
  • Removed all console.logs
  • Merged the latest changes from main onto my branch with git pull origin main
  • My changes don't cause any responsiveness issues
  • First PR at Formbricks? Please sign the CLA! Without it we wont be able to merge it 🙏

Appreciated

  • If a UI change was made: Added a screen recording or screenshots to this PR
  • Updated the Formbricks Docs if changes were necessary

Summary by CodeRabbit

  • New Features

    • Updated the documentation link for the "Javascript SDK" integration card to a new resource.
    • Moved the "Javascript SDK" integration card to the top of the list for improved visibility.
  • Bug Fixes

    • Ensured the integration cards continue to function correctly with existing logic and user session checks.

@vercel

vercel Bot commented Oct 12, 2024

Copy link
Copy Markdown

@Asymtode712 is attempting to deploy a commit to the formbricks Team on Vercel.

A member of the Team first needs to authorize it.

@CLAassistant

CLAassistant commented Oct 12, 2024 •

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

@coderabbitai

coderabbitai Bot commented Oct 12, 2024 •

Copy link
Copy Markdown
Contributor

Walkthrough

The changes in this pull request focus on the Page component within the apps/web/app/(app)/environments/[environmentId]/integrations/page.tsx file. The documentation link for the "Javascript SDK" integration card has been updated to a new URL, and this card has been repositioned to the start of the integrationCards array. The overall logic for rendering integration cards and the component's functionality, including data fetching and error handling, remains unchanged.

Changes

File Path Change Summary
apps/web/app/(app)/environments/[environmentId]/integrations/page.tsx Updated documentation link for "Javascript SDK" integration card and moved it to the beginning of the array.

Assessment against linked issues

Objective Addressed Explanation
Update docs link to point to the quickstart (3539) ✅

Possibly related PRs

Suggested labels

bug, 🕹️ oss.gg, 🕹️ 50 points

Suggested reviewers

  • gupta-piyush19

Poem

In the code where bunnies play,
A link was lost, but found today.
To quickstart docs, we hop with glee,
Integrations bright, as bright can be!
With cards aligned, our path is clear,
Let's code and cheer, the change is here! 🐇✨


Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?

❤️ 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.
    • Generate unit testing code for this file.
    • 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 generate unit testing code for this file.
    • @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 generate unit testing code.
    • @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.

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 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.

@github-actions

github-actions Bot commented Oct 12, 2024 •

Copy link
Copy Markdown
Contributor

Thank you for following the naming conventions for pull request titles! 🙏

@github-actions github-actions Bot added bug Something isn't working 🕹️ 50 points 🕹️ oss.gg Community issue via oss.gg labels Oct 12, 2024

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Actionable comments posted: 0

🧹 Outside diff range and nitpick comments (1)
apps/web/app/(app)/environments/[environmentId]/integrations/page.tsx (1)

Line range hint 196-205: LGTM! Consider a minor readability improvement.

The changes successfully address the issue mentioned in #3539 by updating the docsHref to the correct Quickstart guide. Moving the Javascript SDK card to the beginning of the integrationCards array is a good choice if it's intended to be highlighted.

For improved readability, consider extracting the Javascript SDK card object into a separate constant before adding it to the array. This would make the code more maintainable, especially if the card's properties need to be referenced or modified elsewhere. Here's a suggested refactor:

const javascriptSDKCard = {
  docsHref: "https://formbricks.com/docs/app-surveys/quickstart",
  docsText: "Docs",
  docsNewTab: true,
  connectHref: `/environments/${environmentId}/product/app-connection`,
  connectText: "Connect",
  connectNewTab: false,
  label: "Javascript SDK",
  description: "Integrate Formbricks into your Website or App",
  icon: <Image src={JsLogo} alt="Javascript Logo" />,
  connected: widgetSetupCompleted,
  statusText: widgetSetupCompleted ? "App Connected" : "Not Connected",
};

integrationCards.unshift(javascriptSDKCard);

This approach would make it easier to manage the Javascript SDK card properties if they need to be updated in the future.

📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL

📥 Commits

Files that changed from the base of the PR and between 6ec748f and e0ba170.

📒 Files selected for processing (1)
  • apps/web/app/(app)/environments/[environmentId]/integrations/page.tsx (1 hunks)
🧰 Additional context used

@Asymtode712 Asymtode712 changed the title formbricks#3539 fixed the link fix: Update docs link to point to the quickstart (3539) Oct 12, 2024
@oss-gg

oss-gg Bot commented Oct 12, 2024

Copy link
Copy Markdown

The /assign command can only be used on issues, not on pull requests.

@Asymtode712

Copy link
Copy Markdown
Contributor Author

@mattinannt please review and merge this PR if it is good to go

@mattinannt mattinannt left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

@Asymtode712 thank you very much for fixing this 🚀

@mattinannt
mattinannt enabled auto-merge October 13, 2024 06:57
@mattinannt
mattinannt added this pull request to the merge queue Oct 13, 2024
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Oct 13, 2024
@Asymtode712

Copy link
Copy Markdown
Contributor Author

@mattinannt please push it to the merge queue again

@mattinannt
mattinannt added this pull request to the merge queue Oct 14, 2024
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Oct 14, 2024
@mattinannt
mattinannt added this pull request to the merge queue Oct 14, 2024
Merged via the queue into formbricks:main with commit 81361b3 Oct 14, 2024
@oss-gg

oss-gg Bot commented Oct 14, 2024

Copy link
Copy Markdown

Awarding Asymtode712: 50 points 🕹️ Well done! Check out your new contribution on oss.gg/Asymtode712

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working 🕹️ oss.gg Community issue via oss.gg 🕹️ 50 points

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[🕹️] Fix js integration docs link

3 participants