From f7e0d4cf5b84e0986b53da23f640bdf96b8dc5f2 Mon Sep 17 00:00:00 2001 From: Collin Streitman Date: Sun, 21 Jun 2026 17:27:39 -0400 Subject: [PATCH] Working with Travel Page --- frontend/src/pages/TravelPage/TravelPage.tsx | 96 ++++++++++---------- 1 file changed, 50 insertions(+), 46 deletions(-) diff --git a/frontend/src/pages/TravelPage/TravelPage.tsx b/frontend/src/pages/TravelPage/TravelPage.tsx index 9837b59..34455f2 100644 --- a/frontend/src/pages/TravelPage/TravelPage.tsx +++ b/frontend/src/pages/TravelPage/TravelPage.tsx @@ -555,56 +555,60 @@ export function TravelPage(): ReactElement { aria-modal="true" aria-label="What the algorithm has on you" > -
{ e.stopPropagation(); }}> - - -
-

What the algorithm has on you

-
-
-

Activity

-

- {d.totalInteractions} interactions · {d.likes} likes ·{' '} - {d.dislikes} dislikes · {d.skips} skips · avg dwell{' '} - {d.avgDwellMs}ms -

-
-
-

Model confidence

-

- Confidence {Math.round(d.confidence * 100)}% · exploration{' '} - {Math.round(d.exploration * 100)}% -

-
- {d.topFeatures.length > 0 && ( +
{ + e.stopPropagation(); + }} + > + + +
+

What the algorithm has on you

+
+
+

Activity

+

+ {d.totalInteractions} interactions · {d.likes} likes ·{' '} + {d.dislikes} dislikes · {d.skips} skips · avg dwell{' '} + {d.avgDwellMs}ms +

+
-

Inferred taste

-

{d.topFeatures.map((f) => f.key).join(', ')}

+

Model confidence

+

+ Confidence {Math.round(d.confidence * 100)}% · exploration{' '} + {Math.round(d.exploration * 100)}% +

- )} - {d.inferredTraits.length > 0 && ( + {d.topFeatures.length > 0 && ( +
+

Inferred taste

+

{d.topFeatures.map((f) => f.key).join(', ')}

+
+ )} + {d.inferredTraits.length > 0 && ( +
+

Traits

+
    + {d.inferredTraits.map((t) => ( +
  • {t.trait}
  • + ))} +
+
+ )}
-

Traits

-
    - {d.inferredTraits.map((t) => ( -
  • {t.trait}
  • - ))} -
+

{d.disclaimer}

- )} -
-

{d.disclaimer}

-
-
+
)}