From c4ace077653faa2adbb539795aec1e9f07d102b2 Mon Sep 17 00:00:00 2001
From: Johannes <72809645+jobenjada@users.noreply.github.com>
Date: Fri, 19 Jan 2024 13:09:55 -0600
Subject: [PATCH] fix: tweak sharing results UX (#1928)
---
.../responses/components/ResponsePage.tsx | 17 ++++--
.../summary/components/ShareSurveyResults.tsx | 17 +++---
.../summary/components/SummaryPage.tsx | 17 ++++--
.../ResultsShareButton.tsx} | 60 ++++++++++++-------
.../[surveyId]/components/SummaryHeader.tsx | 33 ++++++++--
.../app/(app)/share/[sharingKey]/layout.tsx | 2 +-
oss.gg | 1 +
7 files changed, 99 insertions(+), 48 deletions(-)
rename apps/web/app/(app)/environments/[environmentId]/surveys/[surveyId]/{(analysis)/summary/components/SurveyShareButton.tsx => components/ResultsShareButton.tsx} (64%)
create mode 160000 oss.gg
diff --git a/apps/web/app/(app)/environments/[environmentId]/surveys/[surveyId]/(analysis)/responses/components/ResponsePage.tsx b/apps/web/app/(app)/environments/[environmentId]/surveys/[surveyId]/(analysis)/responses/components/ResponsePage.tsx
index 7c48452a27..20ab5150e0 100644
--- a/apps/web/app/(app)/environments/[environmentId]/surveys/[surveyId]/(analysis)/responses/components/ResponsePage.tsx
+++ b/apps/web/app/(app)/environments/[environmentId]/surveys/[surveyId]/(analysis)/responses/components/ResponsePage.tsx
@@ -19,6 +19,8 @@ import { TTag } from "@formbricks/types/tags";
import { TUser } from "@formbricks/types/user";
import ContentWrapper from "@formbricks/ui/ContentWrapper";
+import ResultsShareButton from "../../../components/ResultsShareButton";
+
interface ResponsePageProps {
environment: TEnvironment;
survey: TSurvey;
@@ -70,12 +72,15 @@ const ResponsePage = ({
user={user}
membershipRole={membershipRole}
/>
-
Publish Results to web
++ You are about to release these survey results to the public. +
- Your survey results are shared with anyone who has the link. The results will not be indexed - by search engines. + Your survey results will be public. Anyone outside your team can access them if they have the + link.
- Share Survey
+ Copy link
- Publish Results
{survey.name}
- {survey.resultShareKey &&