From d0ff6532c34202d31de73e9d3a0f77632c4d4631 Mon Sep 17 00:00:00 2001
From: emily
Date: Sat, 28 Feb 2026 17:52:39 -0500
Subject: [PATCH] feat(ui): improve sleep flow copy and add button icons
- Add icons to BackToAnOldFlame, EarlyReturnFromSleep buttons
- Reorder EarlyReturnFromSleep: emphasize I don't need it as primary
- Refine SleepOnIt copy and success message layout
- Ignore test-results in ESLint config
Made-with: Cursor
---
eslint.config.mts | 2 +-
views/BackToAnOldFlame.tsx | 17 +++++++++++++++--
views/EarlyReturnFromSleep.tsx | 20 +++++++++++++++-----
views/SleepOnIt.tsx | 34 +++++++++++++++++++++++-----------
4 files changed, 54 insertions(+), 19 deletions(-)
diff --git a/eslint.config.mts b/eslint.config.mts
index 4f02cd4..d6f2849 100644
--- a/eslint.config.mts
+++ b/eslint.config.mts
@@ -5,7 +5,7 @@ import tseslint from "typescript-eslint"
export default tseslint.config(
{
- ignores: ["build/**", ".plasmo/**", "node_modules/**"]
+ ignores: ["build/**", ".plasmo/**", "node_modules/**", "test-results/**"]
},
{
files: ["**/*.{js,mjs,cjs,ts,mts,cts,jsx,tsx}"],
diff --git a/views/BackToAnOldFlame.tsx b/views/BackToAnOldFlame.tsx
index cee1deb..4ad0c3d 100644
--- a/views/BackToAnOldFlame.tsx
+++ b/views/BackToAnOldFlame.tsx
@@ -13,6 +13,9 @@
*/
import { useEffect, useState } from "react"
+import clockIcon from "url:../assets/icons/Icons/clock_blue_outline.png"
+import handsClappingIcon from "url:../assets/icons/Icons/hands-clapping-green.png"
+import trophyIcon from "url:../assets/icons/Icons/shooting_star_red.png"
import thoughtfulIcon from "url:../assets/icons/Icons/Thoughtful.svg"
import Button from "../components/ui/Button"
@@ -176,16 +179,26 @@ const BackToAnOldFlame = ({
-
diff --git a/views/EarlyReturnFromSleep.tsx b/views/EarlyReturnFromSleep.tsx
index 8acf5d7..c3d774b 100644
--- a/views/EarlyReturnFromSleep.tsx
+++ b/views/EarlyReturnFromSleep.tsx
@@ -13,7 +13,10 @@
*/
import { useEffect, useState } from "react"
+import alarmIcon from "url:../assets/icons/Icons/clock_blue_outline.png"
import clockIcon from "url:../assets/icons/Icons/Clock.svg"
+import handsClappingIcon from "url:../assets/icons/Icons/hands-clapping-green.png"
+import trophyIcon from "url:../assets/icons/Icons/shooting_star_red.png"
import Button from "../components/ui/Button"
import Card from "../components/ui/Card"
@@ -167,20 +170,27 @@ const EarlyReturnFromSleep = ({
Have you made a decision?
-
- I need this now
+
+ I don't need it
- I'll wait
+ Sleep on it
- I don't need it
+ I need this now
diff --git a/views/SleepOnIt.tsx b/views/SleepOnIt.tsx
index 5f9e6e4..0d14b20 100644
--- a/views/SleepOnIt.tsx
+++ b/views/SleepOnIt.tsx
@@ -151,14 +151,17 @@ const SleepOnIt = ({
}
/>
Brilliant choice!
-
- Taking time to think is a superpower. How long would you like to wait?
-
-
{!saved ? (
<>
-
- For how long you would like to think about this purchase?
+
+ Taking time to think is a superpower.
+
+ How long would you like to wait?
{durationOptions.map((option) => (
@@ -182,11 +185,20 @@ const SleepOnIt = ({
>
) : (
-
- {countdown !== null && countdown > 0
- ? `Closing tab in ${countdown}`
- : "✓ Reminder saved!"}
-
+ <>
+
+ ✓ Reminder saved
+
+
+ You have committed to waiting{" "}
+ {durationOptions.find((o) => o.value === selectedDuration)?.label ??
+ "this duration"}
+ . You can do it!
+
+ {countdown !== null && countdown > 0 && (
+
Closing tab in {countdown}
+ )}
+ >
)}
)