🎯 Major improvements to MissionControl component: - Always keep input field visible and functional after AI responses - Auto-clear input after submitting questions for better UX - Add dynamic visual indicators (first question vs follow-up) - Improve response layout with clear separation and hints - Enable proper chat-like experience for continuous learning 🌟 Additional enhancements: - Better language-specific messaging throughout interface - Clearer visual hierarchy between input and response areas - Intuitive flow that guides users to ask follow-up questions - Maintains responsive design and accessibility 🔧 Technical changes: - Enhanced MissionControl state management - Improved component layout and styling - Better TypeScript integration across components - Updated tsconfig for stricter type checking
40 lines
1.4 KiB
TypeScript
40 lines
1.4 KiB
TypeScript
import { AbstractPage, Response, APIClient, FinalRequestOptions, PageInfo } from "./core.js";
|
|
export interface PageResponse<Item> {
|
|
data: Array<Item>;
|
|
object: string;
|
|
}
|
|
/**
|
|
* Note: no pagination actually occurs yet, this is for forwards-compatibility.
|
|
*/
|
|
export declare class Page<Item> extends AbstractPage<Item> implements PageResponse<Item> {
|
|
data: Array<Item>;
|
|
object: string;
|
|
constructor(client: APIClient, response: Response, body: PageResponse<Item>, options: FinalRequestOptions);
|
|
getPaginatedItems(): Item[];
|
|
/**
|
|
* This page represents a response that isn't actually paginated at the API level
|
|
* so there will never be any next page params.
|
|
*/
|
|
nextPageParams(): null;
|
|
nextPageInfo(): null;
|
|
}
|
|
export interface CursorPageResponse<Item> {
|
|
data: Array<Item>;
|
|
has_more: boolean;
|
|
}
|
|
export interface CursorPageParams {
|
|
after?: string;
|
|
limit?: number;
|
|
}
|
|
export declare class CursorPage<Item extends {
|
|
id: string;
|
|
}> extends AbstractPage<Item> implements CursorPageResponse<Item> {
|
|
data: Array<Item>;
|
|
has_more: boolean;
|
|
constructor(client: APIClient, response: Response, body: CursorPageResponse<Item>, options: FinalRequestOptions);
|
|
getPaginatedItems(): Item[];
|
|
hasNextPage(): boolean;
|
|
nextPageParams(): Partial<CursorPageParams> | null;
|
|
nextPageInfo(): PageInfo | null;
|
|
}
|
|
//# sourceMappingURL=pagination.d.ts.map
|