From b1a76f86ae3a8b11f447638ac31eb6b8621ac52c Mon Sep 17 00:00:00 2001
From: Jo Humphrey <31373245+jamdelion@users.noreply.github.com>
Date: Wed, 20 Nov 2024 10:40:54 +0000
Subject: [PATCH] chore: remove feature flag for feedback component (#3983)
---
doc/how-to/how-to-setup-custom-subdomains.md | 5 +++++
editor.planx.uk/src/lib/featureFlags.ts | 2 +-
.../FeedbackLog/components/CollapsibleRow.tsx | 21 +++++++++----------
.../FlowEditor/components/forms/FormModal.tsx | 5 +----
4 files changed, 17 insertions(+), 16 deletions(-)
diff --git a/doc/how-to/how-to-setup-custom-subdomains.md b/doc/how-to/how-to-setup-custom-subdomains.md
index 30c8d04919..8be9ba73c4 100644
--- a/doc/how-to/how-to-setup-custom-subdomains.md
+++ b/doc/how-to/how-to-setup-custom-subdomains.md
@@ -108,4 +108,9 @@ This guide will walk through the process of setting a custom domain for a new te
11. **PlanX** - Add custom domain to UptimeRobot (create monitor & also select SSL reminders)
+> [!NOTE]
+> We do not have individual named logins for our UptimeRobot account. Instead we have one single shared one in the 1Password "root/admin" vault, which not everyone will have access to.
+>
+> Therefore you might need to ask someone to do this step for you if you do not have access.
+
12. **PlanX** - Add certificate expiry date to [PlanX CMS on Notion](https://www.notion.so/opensystemslab/Plan-Customers-dee2cdfb40c04b5fa88edc5a86989211)
\ No newline at end of file
diff --git a/editor.planx.uk/src/lib/featureFlags.ts b/editor.planx.uk/src/lib/featureFlags.ts
index d9a9391069..5fd7349747 100644
--- a/editor.planx.uk/src/lib/featureFlags.ts
+++ b/editor.planx.uk/src/lib/featureFlags.ts
@@ -1,5 +1,5 @@
// add/edit/remove feature flags in array below
-const AVAILABLE_FEATURE_FLAGS = ["FEEDBACK_COMPONENT"] as const;
+const AVAILABLE_FEATURE_FLAGS = [] as const;
type FeatureFlag = (typeof AVAILABLE_FEATURE_FLAGS)[number];
diff --git a/editor.planx.uk/src/pages/FlowEditor/components/Flow/FeedbackLog/components/CollapsibleRow.tsx b/editor.planx.uk/src/pages/FlowEditor/components/Flow/FeedbackLog/components/CollapsibleRow.tsx
index 818eb397f3..7103438632 100644
--- a/editor.planx.uk/src/pages/FlowEditor/components/Flow/FeedbackLog/components/CollapsibleRow.tsx
+++ b/editor.planx.uk/src/pages/FlowEditor/components/Flow/FeedbackLog/components/CollapsibleRow.tsx
@@ -71,7 +71,7 @@ const feedbackTypeIcon = (type: FeedbackType): FeedbackTypeIcon => {
title: "Unhelpful (help text)",
};
case "component":
- return { icon: , title: "From feedback component" };
+ return { icon: , title: "User satisfaction" };
default:
return { icon: , title: "Inaccuracy" };
}
@@ -126,16 +126,15 @@ export const CollapsibleRow: React.FC = (item) => {
userContext: "What were you doing?",
};
- enum EmojiRating {
- Terrible,
- Poor,
- Average,
- Good,
- Excellent,
- }
+ const EmojiRating: Record = {
+ 1: "Terrible",
+ 2: "Poor",
+ 3: "Neutral",
+ 4: "Good",
+ 5: "Excellent",
+ };
- const feedbackScore =
- item.feedbackScore && EmojiRating[item.feedbackScore + 1]; // enums are 0-indexed
+ const feedbackScore = EmojiRating[item.feedbackScore];
const renderContent = (key: string, value: any) => {
if (key === "combinedHelp" && value) {
@@ -155,7 +154,7 @@ export const CollapsibleRow: React.FC = (item) => {
{format(new Date(item.createdAt), "dd/MM/yy hh:mm:ss")}
- {feedbackScore}
+ {feedbackScore}
{commentSummary}
List
- {hasFeatureFlag("FEEDBACK_COMPONENT") && (
-
- )}
+