Skip to content

docs: add shareable dashboard page#3188

Merged
jobenjada merged 2 commits intomainfrom
docs/shareable-dashboard
Sep 29, 2024
Merged

docs: add shareable dashboard page#3188
jobenjada merged 2 commits intomainfrom
docs/shareable-dashboard

Conversation

@jobenjada
Copy link
Member

@jobenjada jobenjada commented Sep 29, 2024

docs: add shareable dashboard page

Summary by CodeRabbit

  • New Features

    • Introduced functionality for creating shareable dashboards, allowing users to generate public links to survey results.
    • Added navigation entry for "Shareable Dashboards" in multiple locations for easy access.
  • Documentation

    • Provided step-by-step instructions for publishing and unpublishing survey results dashboards.
  • Refactor

    • Renamed ResponsiveVideo.js to ResponsiveVideo.tsx for improved type safety.

@vercel
Copy link

vercel bot commented Sep 29, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

2 Skipped Deployments
Name Status Preview Comments Updated (UTC)
formbricks-cloud ⬜️ Ignored (Inspect) Visit Preview Sep 29, 2024 0:15am
formbricks-docs ⬜️ Ignored (Inspect) Visit Preview Sep 29, 2024 0:15am

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Sep 29, 2024

Caution

Review failed

The pull request is closed.

Walkthrough

The changes introduce a new feature for creating shareable dashboards in the Formbricks application. Users can generate public links to survey results, allowing for easy sharing without requiring account access. The documentation provides a step-by-step guide for publishing and unpublishing dashboards, along with details on access controls and real-time updates. Additionally, a new navigation entry for "Shareable Dashboards" has been added in multiple locations within the navigation structure. The ResponsiveVideo component has also transitioned to TypeScript.

Changes

File Path Change Summary
apps/docs/app/global/shareable-dashboards/page.mdx Introduced functionality for shareable dashboards, including publishing instructions and access controls. Added metadata for title and description.
apps/docs/lib/navigation.ts Added a new navigation entry "Shareable Dashboards" with href "/global/shareable-dashboards" in three locations.
apps/docs/components/ResponsiveVideo.tsx Renamed file from ResponsiveVideo.js to ResponsiveVideo.tsx and added a wrapper div for responsive design.

Possibly related PRs

Poem

🐇 In the land of Formbricks, oh what a sight,
Dashboards now shareable, shining so bright!
With links to our surveys, we share with delight,
Collaborate freely, all day and all night.
A hop and a skip, let the results flow,
Together we gather, watch our insights grow! 🌼


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
Copy link
Contributor

github-actions bot commented Sep 29, 2024

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

Copy link
Contributor

@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: 1

🧹 Outside diff range and nitpick comments (6)
apps/docs/app/global/shareable-dashboards/page.mdx (2)

13-46: LGTM: Clear instructions with visual aids.

The introduction and step-by-step guide for publishing survey results are well-written and easy to follow. The use of MdxImage components to display screenshots enhances the user experience.

Consider adding alt text that's more descriptive for each image. For example:

- alt="Go to survey summary"
+ alt="Screenshot: Publish to web option in survey summary"

This change would improve accessibility and provide more context for screen reader users.


68-75: LGTM: Informative use cases and conclusion.

The "Use Cases" section provides relevant examples that help users understand how they can leverage shareable dashboards. The conclusion effectively summarizes the feature's benefits.

To further enhance this section, consider adding a call-to-action (CTA) at the end. For example:

Ready to start sharing your survey insights? Log in to your Formbricks account and create your first shareable dashboard today!

This addition would encourage users to immediately engage with the feature after reading the documentation.

apps/docs/lib/navigation.ts (4)

47-47: LGTM! Consider reordering for consistency.

The addition of the "Shareable Dashboards" entry is appropriate and follows the established pattern for global features.

Consider moving this entry right after the "Partial Submissions" entry to group global features together, maintaining consistency with the ordering in other sections.


72-72: LGTM! Consider reordering for consistency.

The addition of the "Shareable Dashboards" entry in the Website Surveys section is consistent with its placement in the App Surveys section.

As suggested earlier, consider moving this entry right after the "Partial Submissions" entry to group global features together, maintaining consistency across sections.


96-96: LGTM! Consider reorganizing the Link Surveys features.

The addition of the "Shareable Dashboards" entry in the Link Surveys section maintains consistency with other survey types.

Consider reorganizing the features in the Link Surveys section to group global features together and maintain a consistent order across all survey types. Here's a suggested order:

  1. Link Survey specific features
  2. Global features (including "Shareable Dashboards")
  3. Remaining Link Survey specific features

This reorganization would improve the overall structure and make it easier for users to find related features.


47-47: Overall, great addition! Consider global reorganization for improved consistency.

The addition of the "Shareable Dashboards" entry across all relevant sections is well-implemented and consistent. It successfully fulfills the PR objective of adding documentation for this feature.

To further improve the navigation structure, consider a global reorganization of features across all survey types (App, Website, and Link) to maintain a consistent order:

  1. Survey-specific features
  2. Global features (including "Shareable Dashboards")
  3. Remaining survey-specific features (if any)

This reorganization would create a more intuitive and consistent navigation structure, making it easier for users to find and understand the available features across different survey types.

Also applies to: 72-72, 96-96

📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL

📥 Commits

Files that changed from the base of the PR and between 59ebde4 and a948f2d.

📒 Files selected for processing (2)
  • apps/docs/app/global/shareable-dashboards/page.mdx (1 hunks)
  • apps/docs/lib/navigation.ts (3 hunks)
🧰 Additional context used
🪛 LanguageTool
apps/docs/app/global/shareable-dashboards/page.mdx

[style] ~52-~52: As an alternative to the over-used intensifier ‘very’, consider replacing this phrase.
Context: ... Unpublish Survey Results Unpublish is very simple: Go to "Share results" -> "Unpublish fr...

(EN_WEAK_ADJECTIVE)

🔇 Additional comments (3)
apps/docs/app/global/shareable-dashboards/page.mdx (3)

1-11: LGTM: Imports and metadata are well-structured.

The imports for the MdxImage component and image assets are appropriate for the content. The metadata export provides a clear title and description for the page, which is good for SEO and navigation.


61-66: LGTM: Concise and informative key features list.

The "Key Features" section effectively highlights the main advantages of the shareable dashboards feature. The bullet points are clear, concise, and provide valuable information for users.


1-75: Overall, excellent documentation for the shareable dashboards feature.

This new page provides clear, comprehensive, and well-structured documentation for the shareable dashboards feature. The content is user-friendly, with a good balance of text and visual aids. The suggested improvements are minor and aimed at enhancing clarity, accessibility, and user engagement.

Great job on creating this valuable resource for Formbricks users!

🧰 Tools
🪛 LanguageTool

[style] ~52-~52: As an alternative to the over-used intensifier ‘very’, consider replacing this phrase.
Context: ... Unpublish Survey Results Unpublish is very simple: Go to "Share results" -> "Unpublish fr...

(EN_WEAK_ADJECTIVE)

Comment on lines +50 to +59
## How To Unpublish Survey Results

Unpublish is very simple: Go to "Share results" -> "Unpublish from web" -> "Unpublish".

<MdxImage
src={StepThree}
alt="Go to survey summary"
quality="100"
className="max-w-full rounded-lg sm:max-w-3xl"
/>
Copy link
Contributor

Choose a reason for hiding this comment

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

⚠️ Potential issue

Enhance the unpublishing instructions and image.

While the instructions for unpublishing are provided, there's room for improvement:

  1. The steps could be more detailed and formatted consistently with the publishing instructions.
  2. The image source and alt text appear to be incorrect (they're the same as the last image in the publishing section).
  3. The phrase "very simple" could be more professional.

Consider applying these changes:

  1. Format the steps as a numbered list:
1. Go to "Share results"
2. Click "Unpublish from web"
3. Confirm by clicking "Unpublish"
  1. Update the image:
-  src={StepThree}
-  alt="Go to survey summary"
+  src={UnpublishImage} // Make sure to import this new image
+  alt="Screenshot: Unpublish option in survey dashboard"
  1. Rephrase the introduction:
- Unpublish is very simple: Go to "Share results" -> "Unpublish from web" -> "Unpublish".
+ To unpublish your survey results, follow these steps:

Don't forget to import the new image at the top of the file if you add one.

🧰 Tools
🪛 LanguageTool

[style] ~52-~52: As an alternative to the over-used intensifier ‘very’, consider replacing this phrase.
Context: ... Unpublish Survey Results Unpublish is very simple: Go to "Share results" -> "Unpublish fr...

(EN_WEAK_ADJECTIVE)

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant