File tree Expand file tree Collapse file tree 1 file changed +21
-2
lines changed
packages/client/src/components Expand file tree Collapse file tree 1 file changed +21
-2
lines changed Original file line number Diff line number Diff line change @@ -28,13 +28,19 @@ interface Session {
2828 teacherName : string ;
2929 createdAt : string ;
3030 participantCount : number ;
31+ course ?: {
32+ joinCode : string ;
33+ title : string ;
34+ } ;
35+ promptCount ?: number ;
3136}
3237
3338interface Thought {
3439 id : string ;
3540 content : string ;
3641 authorName : string ;
3742 sessionId : string ;
43+ consent ?: boolean ;
3844}
3945
4046interface Swap {
@@ -43,6 +49,10 @@ interface Swap {
4349 toUser : string ;
4450 thoughtContent : string ;
4551 timestamp : string ;
52+ studentName ?: string ;
53+ classroom ?: string ;
54+ consent ?: boolean ;
55+ createdAt ?: string ;
4656}
4757
4858interface Log {
@@ -51,6 +61,9 @@ interface Log {
5161 action : string ;
5262 userId : string ;
5363 details : string ;
64+ createdAt ?: string ;
65+ event ?: string ;
66+ payload ?: Record < string , unknown > ;
5467}
5568
5669interface AdminData {
@@ -474,7 +487,9 @@ export default function AdminView({ onExit }: { onExit: () => void }) {
474487 : '✗ NOT CONSENTED' }
475488 </ span >
476489 < span className = "text-slate-600" >
477- { new Date ( swap . createdAt ) . toLocaleString ( ) }
490+ { swap . createdAt
491+ ? new Date ( swap . createdAt ) . toLocaleString ( )
492+ : '-' }
478493 </ span >
479494 </ div >
480495 </ div >
@@ -517,7 +532,11 @@ export default function AdminView({ onExit }: { onExit: () => void }) {
517532 className = "hover:bg-slate-900/50 transition-colors"
518533 >
519534 < td className = "px-4 py-2 text-slate-500" >
520- { new Date ( log . createdAt ) . toLocaleTimeString ( ) }
535+ { log . createdAt
536+ ? new Date (
537+ log . createdAt
538+ ) . toLocaleTimeString ( )
539+ : '-' }
521540 </ td >
522541 < td className = "px-4 py-2 text-indigo-400 font-bold" >
523542 { log . event }
You can’t perform that action at this time.
0 commit comments