Skip to content

Commit

Permalink
feat: Copy and logic changes from QA
Browse files Browse the repository at this point in the history
  • Loading branch information
ianjon3s committed Jun 4, 2024
1 parent cfb6d03 commit 8896885
Showing 1 changed file with 10 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -91,9 +91,14 @@ const getDetailedFeedback = async (feedbackId: number) => {
variables: { feedbackId },
});

const combinedHelpText = `${detailedFeedback.helpText || ""} ${
detailedFeedback.helpDefinition || ""
} ${detailedFeedback.helpSources || ""}`.trim();
const combinedHelpText = [
detailedFeedback.helpText,
detailedFeedback.helpDefinition,
detailedFeedback.helpSources,
]
.filter(Boolean)
.join(" ")
.trim();
const truncatedHelpText =
combinedHelpText.length > 65
? `${combinedHelpText.slice(0, 65)}...`
Expand Down Expand Up @@ -233,10 +238,10 @@ const CollapsibleRow: React.FC<CollapsibleRowProps> = (item) => {

const labelMap: Record<string, string> = {
userComment: item.type === "issue" ? "What went wrong?" : "User comment",
address: "Project address",
address: "Property address",
projectType: "Project type",
where: "Where",
browserPlatform: "Browser / platform",
browserPlatform: "Browser / device",
combinedHelp: "Help text (more information)",
userContext: "What were you doing?",
};
Expand Down

0 comments on commit 8896885

Please sign in to comment.