UdaraJay / Pile

Desktop app for digital journaling.
https://udara.io/pile
MIT License
1.9k stars 104 forks source link

Disable buttons for AI-related actions when no API key is configured #85

Open camdfletcher opened 4 months ago

camdfletcher commented 4 months ago

Expected Behavior

As a user, if I have no OpenAI key configured I expect that AI-related actions are disabled until I input a valid key.

Current Behavior

In the "Chat with this Journal" workflow, if I submit a question the application will appear to be "thinking" but in reality there's nothing actually happening. It would be less confusing to a user to just have these actions disabled until the required key is provided. It wasn't immediately clear which functionalities depended on it.

Steps to Reproduce

  1. Go to Settings, remove your API key
  2. Attempt to use some AI feature (i.e., "Chat with this Journal")
  3. Application pretends to be busy infinitely

CleanShot 2024-05-12 at 15 53 15@2x

Possible Solution (Not obligatory)

Disabling buttons when the key is not configured is probably the most straightforward solution. Perhaps with a tooltip saying something along the lines of "Configure an API Key to enable ____"

Your Environment