Skip to content

Feat/layout modes and chat persistence#15

Open
satriaajiputra wants to merge 4 commits into
mainfrom
feat/layout-modes-and-chat-persistence
Open

Feat/layout modes and chat persistence#15
satriaajiputra wants to merge 4 commits into
mainfrom
feat/layout-modes-and-chat-persistence

Conversation

@satriaajiputra
Copy link
Copy Markdown
Collaborator

No description provided.

…tence

This commit introduces a new Layout Mode system (sidebar vs. tab) to support
diverse extension contexts and ensures LLM generation options are persisted
during message branching and editing.

Core changes:
- Layout Architecture:
  - Introduced `LayoutModeContext` to manage 'sidebar' and 'tab' view states.
  - Updated all major UI components (`App`, `ChatView`, `Header`, `HistoryDrawer`,
    `WelcomeScreen`, `SettingsPanel`) to support responsive styles for tab mode.
  - Optimized grid layouts and typography for wider viewports in tab mode.

- Message & Chat Logic:
  - Enhanced `Message` type to store `aspectRatio` and `enableReasoning` options.
  - Updated `useChat` hook to persist these options in message history, ensuring
    consistent behavior during message regeneration (branching/editing).
  - Cleaned up LLM provider naming in presets (Anthropic/xAI).

- UI/UX Refinement:
  - Improved `ImageLightbox` with better scaling logic to prevent viewport overflow.
  - Modernized `WelcomeScreen` with a responsive action grid and enhanced branding.
  - Updated `GalleryView` with improved empty states and tab-mode grid support.

- Documentation Infrastructure:
  - Integrated Zola for documentation generation, including binary and build scripts.
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.

1 participant