* refactor: `FullscreenLoading` to `FullviewLoading`
in case we use this not only on pages but on components that are not fullscreen
* refactor: remove unused import
* idle animation for empty board added
* min-height to the empty board suggestions panel
- Adds guideline to not use hash symbols before commit message lines
- Wraps commit message lines at 72 characters
- Specifies that only the commit message should be returned in the response
`/\n+(.*?)\w*/s` wasn't behaving correctly so I used `/\n+(.*)/s` from CommitDialog.svelte.
I want to consolidate this logic at some point because we've
got similar logic multiple times.
The ORing to empty strings isn't required and we can use the falsey nature of "" to
see if we should be showing just the summary or both
Change git config access to use the ConfigKeys enum instead of
string literals.
Also update import paths to use the new $lib alias for better modularity.
Add a test:watch script to the package.json files in the root
and ui directories. This script runs vitest in watch mode for
the development environment, allowing developers to run tests
continuously while making changes to the codebase.
Add a new enum value for Anthropic's Haiku model, which was released
on 2023-03-07. Update the default model to Haiku in the loadConfig
function. Add Haiku to the list of available models in the
configureAnthropicModel function.
Refactor commit message generation to use the summarizer from the
aiService context instead of building it locally. This allows the
summarizer to be shared across components and avoids unnecessary
rebuilds.
Also update the branch name generation in the branch view to use the
summarizer from the aiService context.
Add the aiService to the page context and retrieve the summarizer
observable in the components that need it.
No leaked keys found in the provided git diff.
The summarizer settings are extracted to a new class
`SummarizerSettings` that takes a `GitConfig` instance in its
constructor. This allows the settings to be built using the
`GitConfig` methods, removing the need for individual functions to
get and set each setting. The `GitConfig` instance is injected in
the `+page.svelte` file.
* Update "Yes, I'll use my own key" to "Yes, I'll provide my own key"
in the AI settings
* Add copy explaining GitButler's AI provider support and the
requirement to be logged in to use the GitButler API
* Remove unnecessary line breaks and simplify JSX in the AI settings
* Add copy about Anthropic's Opus and Sonnet models
- Change model kind selection from a dropdown to radio buttons
- Update copy for key option selection
- Conditionally show model version and API key inputs based on
selected model kind
- Add form element to handle model kind changes
- Update layout and styling of settings page
The most significant changes are:
- Switching from a dropdown to radio buttons for selecting the model
kind (OpenAI or Anthropic)
- Conditionally rendering the model version and API key inputs based
on the selected model kind
- Adding a form to handle changes to the selected model kind
This refactors the settings page to improve the user experience when
selecting the model configuration. The radio buttons make the options
clearer, and conditionally showing fields reduces clutter.
- Use await instead of then when calling the summarizer.branch
method to get the branch message
- Update the condition to check the currentSection value using ==
instead of ===
Update the instructions for generating commit messages to clarify
that a warning should be given if any leaked keys are found in the
provided git diff, rather than a more general warning about leaked
keys.
This change improves the specificity and accuracy of the instructions,
making it clear that a warning is only necessary if keys are actually
detected in the diff under analysis.
The main changes in this commit are:
- Remove the `cloud` object from various branch and commit
components, including:
- BranchList.svelte
- Branch.svelte
- MiniCommitInfo.svelte
- CommitMessageBox.svelte
- Update the corresponding type imports to only import the `User` type
instead of also importing `getCloudApiClient`
- Remove the `cloud` prop from the usages of these components
- Adjust the indentation of the `<AiSettings>` component in the
settings page
These changes were made to remove the unused `cloud` object from
several components related to branches and commits. The `cloud` prop
was being passed down to these components but was not actually being
used within them. Removing this unnecessary prop helps simplify the
components and their usage.
Add UI components for configuring the model kind (OpenAI or
Anthropic), key option (Butler API or bring your own key),
and associated settings.
The model kind can be set to either OpenAI or Anthropic. The
key option allows using the Butler API proxy or providing
your own API key.
When using your own key, the API key and model version can
be specified for the selected model kind (OpenAI or
Anthropic).
The selected options are persisted and loaded from the
backend settings.