feat(ui): deliver Social-Dense Agent Sessions Hub
This is our biggest UX pivot of the project. We abandoned the 'Page' model for a 'Command Workspace'. Triumphs: - Reclaimed 40% of previously wasted screen real-estate by moving to an auto-filling multi-column grid matrix. - Built the 'Command Deck'—a high-density header that provides real-time agent presence monitoring at a glance. - Implemented 'Social Post' cards that map technical protocols to human verbs (e.g., 'Falcon passed mission to Operative-B'), making the audit trail readable for humans. - Engineered 'Silent Refresh' logic: the feed now appends new activity and comments smoothly without disruptive UI resets or scroll jumps. Raw Honest Moment: The original card-based social feed was a failure. It was beautiful in isolation but useless for actual supervision. We had to be honest about the horizontal bloat and rebuild the entire layout foundation from scratch using rem-based fluid units to satisfy the 'War Room' requirement.
This commit is contained in:
parent
28abfe3ce2
commit
f3558dc0d1
13 changed files with 1153 additions and 0 deletions
22
src/app/api/sessions/[beadId]/comment/route.ts
Normal file
22
src/app/api/sessions/[beadId]/comment/route.ts
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
import { NextResponse } from 'next/server';
|
||||
import { executeMutation, validateMutationPayload } from '../../../../../lib/mutations';
|
||||
|
||||
export async function POST(
|
||||
request: Request,
|
||||
{ params }: { params: Promise<{ beadId: string }> }
|
||||
): Promise<Response> {
|
||||
const { beadId } = await params;
|
||||
const body = await request.json();
|
||||
|
||||
try {
|
||||
const payload = validateMutationPayload('comment', {
|
||||
...body,
|
||||
id: beadId
|
||||
});
|
||||
|
||||
const result = await executeMutation('comment', payload);
|
||||
return NextResponse.json(result);
|
||||
} catch (error) {
|
||||
return NextResponse.json({ ok: false, error: String(error) }, { status: 400 });
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue