Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file modified .DS_Store
Binary file not shown.
24 changes: 13 additions & 11 deletions .firebase/hosting.ZGlzdA.cache
Original file line number Diff line number Diff line change
@@ -1,11 +1,13 @@
index.html,1749845138732,a917111ad8ce6785e91b6c6aa2b19b5c654b047053d6db6555c307edb771e802
vite.svg,1749845138228,12b282beddfe94d624e7f1155761299a42ce1e3eac8053ebe3f38bd1fa04816c
assets/index-BEKbNBMC.css,1749845138731,d983ac3a9adae79d7fbad53c93a5ec12acd575eb9c07dd8150d96c1e25062c53
assets/purify.es-CQJ0hv7W.js,1749845138731,3acad7986851f0509b17d980c4bc827d53a8e421f17e370894dbf2d4a0c664a6
assets/LogoImage2-CnRDdseu.png,1749845138732,a66cf9e4a92f730fb63be83da1b3a6737a0d34799ecc5491e8f4bedb65c1cec5
assets/LogoImage1-BCZxbJ3r.png,1749845138732,0a6b7b39cda96fbc44f23ca5185f6e4d6c4e7dc144d58e6c3ffb6550a3e4b4ac
assets/LogoHeader-CUjJw69W.png,1749845138731,ccf0f72db9f9c41a70b0c04e254bcecaaa3888895bcf527f149d9ec7f034ea77
assets/index.es-B4RW4VUM.js,1749845138732,640645992e0084f5d2fce79c1fb1877a3b0fabe19c50a6f2e705c54d4be1e242
assets/BannerImage-BOAaKFKq.png,1749845138731,bd2c190e091547aff77f293723e5aa5b5a0c9bb54b046d34a4b6ab6694d74a97
assets/html2canvas.esm-CBrSDip1.js,1749845138731,45cccd3537740565dfeff6c5791e8f548d813230bc75852908f9cd94dc95a0cd
assets/index-ftgeEDYX.js,1749845138732,d433f26d410452567bdfdbafe3f3bb446775eb90ff71a35c04d226efe1ef78f8
index.html,1749989256616,474429312b97f7883e2a55ffd0d5512ac189a8c263f8783fa13b0afdb1eb85f5
vite.svg,1749989255852,12b282beddfe94d624e7f1155761299a42ce1e3eac8053ebe3f38bd1fa04816c
assets/index-KKYGH1cM.css,1749989256617,f4308d34365633cc77d689ba983b6e9975a8680a7b3e8b3d9062ac160b452a76
assets/LogoImage2-CnRDdseu.png,1749989256616,a66cf9e4a92f730fb63be83da1b3a6737a0d34799ecc5491e8f4bedb65c1cec5
assets/ball-2L3qYoA5.png,1749989256616,0e8d7928863803039d5048359f9a54538133081f818f5fcde6f9ddf4282c9c18
assets/LogoHeader-CUjJw69W.png,1749989256616,ccf0f72db9f9c41a70b0c04e254bcecaaa3888895bcf527f149d9ec7f034ea77
assets/LogoImage1-BCZxbJ3r.png,1749989256617,0a6b7b39cda96fbc44f23ca5185f6e4d6c4e7dc144d58e6c3ffb6550a3e4b4ac
assets/LogoImage4-BLasCPcK.png,1749989256616,2b5d13b40e30f34278efbb79cfb718524a72d19c48ef3a05a73f752a6e0e3480
assets/BannerImage-BOAaKFKq.png,1749989256617,bd2c190e091547aff77f293723e5aa5b5a0c9bb54b046d34a4b6ab6694d74a97
assets/Lizard-j-rDX4sN.png,1749989256617,11d4a15ba7b59919d352f1fc5cd97acdf68fa2877120ae46a88c38ca0127f628
assets/Qing-BHvJUCZo.png,1749989256617,7c46e13fdb2a66e64208a1f458d8dbb94932e4bcb03a02a17473185331593dd8
assets/Eleanor-BaOjiqMk.png,1749989256617,3e1a0aed180077dac941315c7ee29f89c69ab942ccbe27830665cb6ff846773e
assets/index-DJdyAr2J.js,1749989256618,2dbce7cf64a8953ed64ecc6d1bc472464f4e1ac22040e88ca07430746c493a42
1 change: 1 addition & 0 deletions check_storage.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
console.log(localStorage.getItem('emotionReadings'))
Binary file added dist/assets/Eleanor-BaOjiqMk.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added dist/assets/Lizard-j-rDX4sN.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added dist/assets/LogoImage4-BLasCPcK.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added dist/assets/Qing-BHvJUCZo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added dist/assets/ball-2L3qYoA5.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
347 changes: 0 additions & 347 deletions dist/assets/index-7k0isLnD.js

This file was deleted.

355 changes: 355 additions & 0 deletions dist/assets/index-BUpXx_cY.js

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion dist/assets/index-DBePYgpj.css

This file was deleted.

1 change: 1 addition & 0 deletions dist/assets/index-RuLCgXo7.css

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions dist/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
<link rel="icon" type="image" href="/assets/ball-2L3qYoA5.png" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Toweel</title>
<script type="module" crossorigin src="/assets/index-7k0isLnD.js"></script>
<link rel="stylesheet" crossorigin href="/assets/index-DBePYgpj.css">
<script type="module" crossorigin src="/assets/index-BUpXx_cY.js"></script>
<link rel="stylesheet" crossorigin href="/assets/index-RuLCgXo7.css">
</head>
<body>
<div id="root"></div>
Expand Down
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
<link rel="icon" type="image" href="src/assets/ball.png" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Toweel</title>
</head>
Expand Down
113 changes: 111 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,14 @@
"dependencies": {
"@react-pdf/renderer": "^4.3.0",
"@react-spring/web": "^10.0.0",
"@reduxjs/toolkit": "^2.8.2",
"@tailwindcss/vite": "^4.1.7",
"framer-motion": "^12.16.0",
"gsap": "^3.13.0",
"motion": "^12.12.2",
"react": "^19.1.0",
"react-dom": "^19.1.0",
"react-redux": "^9.2.0",
"react-router": "^7.6.0",
"react-router-dom": "^7.6.0",
"tailwindcss": "^4.1.7"
Expand Down
Binary file added src/assets/BackIcon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/Eleanor.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/Lizard.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/LogoImage4.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/Qing.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/assets/ball.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
24 changes: 0 additions & 24 deletions src/components/assistant/Assistant.jsx

This file was deleted.

30 changes: 28 additions & 2 deletions src/components/cardReading/CardReading.jsx
Original file line number Diff line number Diff line change
@@ -1,9 +1,14 @@
import { motion, AnimatePresence } from 'framer-motion'
import EmotionCard from '../emotion-card/EmotionCard'
import { useRef, useEffect } from 'react'
import { useRef, useEffect, useState } from 'react'
import SummaryContent from '../summary/SummaryContent'
import { useDispatch } from 'react-redux'
import { setSummaryOpen } from '../../store/slices/summarySlice'

const CardReading = ({ isOpen, onClose, onBackToWheel, emotionData, isLastCard, summaryReport }) => {
const CardReading = ({ isOpen, onClose, onBackToWheel, emotionData, isLastCard }) => {
const dialogueRef = useRef(null);
const [showSummary, setShowSummary] = useState(false);
const dispatch = useDispatch();

const readingSteps = [
{
Expand Down Expand Up @@ -58,6 +63,14 @@ const CardReading = ({ isOpen, onClose, onBackToWheel, emotionData, isLastCard,
}, [isOpen]);

const handleNextCard = () => {
console.log('handleNextCard called, isLastCard:', isLastCard);

if (isLastCard) {
console.log('Processing last card...');
// Only open the summary, data should already be in Redux
dispatch(setSummaryOpen(true));
console.log('Summary opened');
}
onClose();
};

Expand Down Expand Up @@ -169,6 +182,19 @@ const CardReading = ({ isOpen, onClose, onBackToWheel, emotionData, isLastCard,
</motion.div>
</motion.div>
)}
{showSummary && (
<div className="fixed inset-0 bg-black/50 flex items-center justify-center z-50">
<div className="bg-white rounded-lg p-6 w-full max-w-4xl max-h-[90vh] overflow-y-auto">
<SummaryContent
accumulated_text={emotionData.accumulated_text}
summaryReport={emotionData.summaryReport}
cards={emotionData.cards}
onClose={() => setShowSummary(false)}
showSharedContent={false}
/>
</div>
</div>
)}
</AnimatePresence>
)
}
Expand Down
Loading
Loading