Enhance session management with filtering, sorting, and pagination features; implement API for fetching filter options and update session API to support advanced querying.

This commit is contained in:
2025-05-22 08:15:25 +02:00
parent 97af5d9dcf
commit 4d29e444ef
7 changed files with 513 additions and 99 deletions

View File

@ -82,6 +82,7 @@ export default function SessionDetails({ session }: SessionDetailsProps) {
: "text-orange-500"
}`}
>
{/* TODO: Ensure sentiment display is accurate and potentially use icons/color-coding more explicitly */}
{session.sentiment > 0.3
? "Positive"
: session.sentiment < -0.3
@ -115,6 +116,7 @@ export default function SessionDetails({ session }: SessionDetailsProps) {
session.avgResponseTime !== undefined && (
<div className="flex justify-between border-b pb-2">
<span className="text-gray-600">Avg Response Time:</span>
{/* TODO: Populate average response time, ensure formatting (e.g., "s" or "ms") */}
<span className="font-medium">
{session.avgResponseTime.toFixed(2)}s
</span>
@ -169,3 +171,5 @@ export default function SessionDetails({ session }: SessionDetailsProps) {
</div>
);
}
// TODO: Review and finalize this component. Consider renaming to SessionDetails.tsx and removing/archiving SessionDetails.tsx and SessionDetails.tsx.bak.