Skip to content

Conversation

huhn511
Copy link
Collaborator

@huhn511 huhn511 commented May 25, 2025

Overview

This PR introduces several improvements to the frontend application, focusing on customization options and document handling. The main changes include environment-based configuration, enhanced document interactions, and visual refinements.

Changes

Environment-Based Settings Configuration

  • Added support for loading application settings from environment variables
  • Default fallbacks are provided when environment variables are not set
  • Settings can now be configured through .env files using the VITE_ prefix
  • Documented the configuration options in the shared folder README

Document Experience Improvements

  • Added document mock endpoint for improved development and testing
  • Refactored documentItem component for better user experience
  • Enhanced UI interactions and visual feedback for document operations

Visual Updates

  • Updated chat icon for better visual consistency
  • Added new color options for theming
  • Implemented customizable bot settings (name, appearance)

How to Test

  1. Create a .env file with custom settings:
    VITE_BOT_NAME=Custom Bot
    VITE_UI_THEME_DEFAULT=dark
    
  2. Verify settings are applied correctly in the UI
  3. Test document interaction with the new mock endpoint
  4. Confirm theme switching works with customized options

Screenshots

tbd

@huhn511 huhn511 marked this pull request as ready for review May 26, 2025 15:40
@huhn511 huhn511 requested a review from Copilot May 31, 2025 12:41
Copilot

This comment was marked as outdated.

huhn511 and others added 5 commits June 16, 2025 12:52
- Moved i18n access to function call time instead of store definition
time - Added error handling with a fallback message - Called
getInitialMessage() when actually needed in initiateConversation()
@huhn511 huhn511 requested a review from Copilot June 20, 2025 11:03
Copilot

This comment was marked as outdated.

Copy link
Member

@a-klos a-klos left a comment

Choose a reason for hiding this comment

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

friendly reminder^^:

  • indentation
  • dark mode default
  • something else that i most probably forgot :D

file and sitemap loader still work. confluence not tested... its not configured in the uni deployment ^^

@huhn511 huhn511 requested a review from Copilot July 31, 2025 12:27
Copilot

This comment was marked as outdated.

huhn511 and others added 5 commits July 31, 2025 15:19
- Added features.useMockData to support mock API configuration
- Properly handles VITE_USE_MOCK_DATA environment variable
- Fixes TypeScript error in document.api.factory.ts
@huhn511
Copy link
Collaborator Author

huhn511 commented Jul 31, 2025

@a-klos FIY: just fixed pipeline and add your suggestions. Not tested it yet on the system.

@huhn511 huhn511 requested a review from Copilot August 4, 2025 08:06
Copy link
Contributor

@Copilot 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 introduces environment-based configuration, theming improvements, and enhanced document management for the frontend application. The changes enable better customization through environment variables and provide a more polished user experience.

  • Add environment-based settings system with support for bot name, logo path, and theme configuration
  • Implement comprehensive light/dark theme system with user preference persistence
  • Enhance document management UI with improved interactions and mock API support

Reviewed Changes

Copilot reviewed 22 out of 24 changed files in this pull request and generated 5 comments.

Show a summary per file
File Description
tsconfig.base.json Add path aliases for new shared settings and theme store modules
tailwind.config.js Expand theme configuration with comprehensive light/dark color schemes
ThemeToggle.vue New component for theme switching with sun/moon icons
NavigationContainer.vue Updated to use configurable logo path and include theme toggle
theme.store.ts New Pinia store for theme management with localStorage persistence
settings.ts New configuration system with environment variable support and fallbacks
global.css Add theme-specific chat text styles and avatar improvements
README.md Document new environment variables and customization options
DocumentItem.vue Enhanced document item UI with confirmation modal and improved status display
document.api.mock.ts New mock implementation for document API with realistic data
document.api.factory.ts Factory pattern for selecting real vs mock API implementation
documents.store.ts Code formatting improvements and better error handling
App.vue files Theme store initialization and code formatting updates
UI_Customization.md Comprehensive documentation for UI customization features

@a-klos a-klos requested a review from Copilot September 23, 2025 08:30
Copy link
Contributor

@Copilot 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

Copilot reviewed 33 out of 42 changed files in this pull request and generated 3 comments.


Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

improve bot name placeholder handling in chat messages for better reliability
@a-klos a-klos merged commit 61856f0 into stackitcloud:main Sep 23, 2025
7 checks passed
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.

2 participants