Skip to content

feat(share): implement shared session page with database integration#9

Merged
iscekic merged 3 commits intomainfrom
prettify-new-share-session-page
Feb 6, 2026
Merged

feat(share): implement shared session page with database integration#9
iscekic merged 3 commits intomainfrom
prettify-new-share-session-page

Conversation

@iscekic
Copy link
Contributor

@iscekic iscekic commented Feb 4, 2026

Add complete implementation for the shared session page that fetches session data from the database and displays it with a user-friendly interface. The page now validates UUIDs, queries session details with owner information, and provides CLI import functionality with copyable commands and an animated logo.
…ions

Redesign the shared session page with a modern card-based layout featuring:
- Gradient background with grid pattern overlay
- Animated entrance effects for logo and content card
- Improved responsive design with better mobile support
- Enhanced visual hierarchy with Card components
- Added installation link for users without CLI
- Better organized import command section with descriptive text

The new design provides a more polished and professional appearance
while maintaining all existing functionality.
@iscekic iscekic requested a review from Copilot February 4, 2026 11:18
@iscekic iscekic self-assigned this Feb 4, 2026
@vercel
Copy link

vercel bot commented Feb 4, 2026

Deployment failed with the following error:

The value for maxDuration must be between 1 second and 300 seconds, in order to increase this limit upgrade your plan: https://vercel.com/pricing

Learn More: https://vercel.com/docs/functions/limitations

@kiloconnect
Copy link
Contributor

kiloconnect bot commented Feb 4, 2026

Code Review Summary

Status: 1 Issues Found | Recommendation: Address before merge

Overview

Severity Count
CRITICAL 0
WARNING 1
SUGGESTION 0
Issue Details (click to expand)

WARNING

File Line Issue
src/app/s/[sessionId]/page.tsx 17 params typed as Promise and awaited; Next.js params is a plain object
Files Reviewed (1 files)
  • src/app/s/[sessionId]/page.tsx - 1 issue

Fix these issues in Kilo Cloud

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR implements a new shared session page at /s/[sessionId] that allows users to view and import shared CLI sessions. The implementation queries the cli_sessions_v2 table using the session's public_id, displays session information with an animated UI, and provides a command to import the session using the Kilo CLI.

Changes:

  • Transformed SharedSessionPage from a simple placeholder to a fully functional async component with database integration
  • Added database queries using Drizzle ORM to fetch session and user information from cli_sessions_v2 and kilocode_users tables
  • Implemented UUID validation, error handling with notFound(), and a modern UI with background effects, cards, and copyable commands

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Copy link
Contributor

@markijbema markijbema left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't we want to show a bit more of what the session is about? If i'd get linked to this I'd be quite wary of it

@iscekic
Copy link
Contributor Author

iscekic commented Feb 4, 2026

Don't we want to show a bit more of what the session is about? If i'd get linked to this I'd be quite wary of it

We are going to show a preview, but it's blocked on work currently in progress by @eshurakov and @pandemicsyn - making the components which display the new message format. Once those are done, integrating them here will be simple. Otherwise, we're just doing the same work twice. 😄

@iscekic iscekic requested a review from markijbema February 4, 2026 11:35
@iscekic iscekic enabled auto-merge February 6, 2026 11:59
export default async function SharedSessionPage({
params,
}: {
params: Promise<{ sessionId: string }>;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

WARNING: params should not be typed as a Promise

In Next.js App Router, params is a plain object. Typing it as a Promise (and awaiting it) diverges from framework expectations and can mask real typing issues.

Suggested change
params: Promise<{ sessionId: string }>;
params: { sessionId: string };

@iscekic iscekic merged commit 0f24638 into main Feb 6, 2026
11 checks passed
@iscekic iscekic deleted the prettify-new-share-session-page branch February 6, 2026 12:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

/share does not work

2 participants