Skip to content

Conversation

robertjdominguez
Copy link
Collaborator

Description

  • Replaced manual .env file creation with proper template-based setup
  • Added comprehensive theming support to the chat widget test app
  • Streamlined developer onboarding with clearer environment configuration

Previously, developers had to manually create empty .env files and figure out what variables were needed:

cd server && touch .env && cd ../pql && touch .env

Now we provide proper templates with all required variables pre-defined:

cp server/.env.template server/.env
cp pql/.env.template pql/.env

The templates include only the variables actually used in each service, with sensible defaults where appropriate. This eliminates guesswork and reduces setup friction.

For the test app, the theme switcher now actually works. Previously it only controlled the widget theme while the app itself remained stuck in whatever your system preference was. Now switching themes properly updates the entire test environment with smooth transitions, making development and testing much more pleasant.

The theming implementation uses data-theme attributes on the document root with proper CSS cascade handling for auto/light/dark modes, ensuring the theme selector controls both the test app background and the embedded widget consistently.

Copy link

🚀 PromptQL Build Complete

Build Version: e970ff9f42
Project: pql-docs
PromptQL Playground: Open Playground

Description: PR #8: Chat-widget: Fix test theming & update env workflows

@robertjdominguez robertjdominguez merged commit d27dffb into main Jul 25, 2025
1 check passed
@robertjdominguez robertjdominguez deleted the rob/chat-widget/fix-test-theming branch July 25, 2025 16:48
Copy link

✅ PromptQL Build Applied

Build Version: e970ff9f42
Status: Successfully applied to production
Applied at: 2025-07-25T16:49:10.239Z

robertjdominguez added a commit that referenced this pull request Aug 10, 2025
## Description

- Replaced manual `.env` file creation with proper template-based setup
- Added comprehensive theming support to the chat widget test app
- Streamlined developer onboarding with clearer environment
configuration

Previously, developers had to manually create empty `.env` files and
figure out what variables were needed:

```sh
cd server && touch .env && cd ../pql && touch .env
```

Now we provide proper templates with all required variables pre-defined:

```sh
cp server/.env.template server/.env
cp pql/.env.template pql/.env
```

The templates include only the variables actually used in each service,
with sensible defaults where appropriate. This eliminates guesswork and
reduces setup friction.

For the test app, the theme switcher now actually works. Previously it
only controlled the widget theme while the app itself remained stuck in
whatever your system preference was. Now switching themes properly
updates the entire test environment with smooth transitions, making
development and testing much more pleasant.

The theming implementation uses `data-theme` attributes on the document
root with proper CSS cascade handling for auto/light/dark modes,
ensuring the theme selector controls both the test app background and
the embedded widget consistently.
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