Commit Graph

5647 Commits

Author SHA1 Message Date
Nikita Galaiko
e2ff8e7d20 do not allow dirty working directory when going back to default target 2024-03-07 19:14:32 +01:00
Nikita Galaiko
82ae6d454a make go back to integration more predictable 2024-03-07 19:14:32 +01:00
Kiril Videlov
f4843750e1 feat: adds a git_test_fetch command to check if fetch can be performed for a given remote 2024-03-07 19:04:17 +01:00
Kiril Videlov
bbee89c95b refactor(virtual_branches): Remove unused import 2024-03-07 18:56:02 +01:00
Kiril Videlov
6c0d19d716 adds remote name and branch name as parameters to the git_test_push command 2024-03-07 18:42:41 +01:00
Josh Junon
e6d5bc2e82
Merge pull request #3069 from gitbutlerapp/fix-windows-notify
Fix fs notify events on windows
2024-03-07 18:18:00 +01:00
Josh Junon
8979e35d9e
fix fs notify on windows 2024-03-07 18:05:24 +01:00
Josh Junon
7ea8bff2cb
Merge pull request #3067 from gitbutlerapp/remove-unused-imports
remove unused imports
2024-03-07 16:12:56 +01:00
Josh Junon
7ba6bd259a remove unused imports 2024-03-07 15:30:17 +01:00
Pavel Laptev
f4fc6b1b1d
Merge pull request #3066 from gitbutlerapp/Copy-update
Info message updates
2024-03-07 14:54:48 +01:00
Pavel Laptev
1df2d69445 fixed button color in InfoMessage 2024-03-07 14:52:47 +01:00
Pavel Laptev
8791b58cd8 feat: Added a new "test" icon 2024-03-07 14:44:12 +01:00
Pavel Laptev
4128a404b3 Info message updates
- added new `success` style
- added two propes `filled` and `outlined` with which you can modify the look and switch on or off these props separatly
2024-03-07 14:38:29 +01:00
Pavel Laptev
93abbf85c8
Merge pull request #3050 from gitbutlerapp/Copy-update
Update button text from "Authenticate" to "Authorize" in GitHub authentication workflow
2024-03-07 14:35:12 +01:00
Pavel Laptev
467f4a1379 Added Forget button
- added forget button to the card
- removed conditional `Forget` button from the `minimal` mode, because we don't use it
2024-03-07 00:23:09 +01:00
Mattias Granlund
45846117e2 Update merge button labels
- corrects language to say e.g. "rebase and squash" instead of "rebase"
2024-03-06 23:18:19 +02:00
Mattias Granlund
e092358453 Remove unnecessary css from app.html
- they were added a long time ago and have no effect
2024-03-06 23:16:00 +02:00
Mattias Granlund
74a906618e Fix problem with user-select: none in root element
- webkit bug related to draggable=true
- left descendants without ability to set user-select: text
- unclear why it only affected draggable lanes and not e.g. hunks
2024-03-06 23:16:00 +02:00
Kiril Videlov
66fc956a9a feat: test push command 2024-03-06 21:59:41 +01:00
Mattias Granlund
bcc2cd721f Change "discard file" to "discard changes" 2024-03-06 19:18:33 +02:00
Josh Junon
06c2231f24
Merge pull request #3055 from gitbutlerapp/Virtual-branch-4
refactor remaining low-hanging-fruit `TryFrom` implementations
2024-03-06 16:12:06 +01:00
Mattias Granlund
5c64a0ea90 Rename a couple of ts files from snake_case to camelCase 2024-03-06 16:47:57 +02:00
Josh Junon
df3944106f refactor remaining low-hanging-fruit TryFrom implementations 2024-03-06 15:47:08 +01:00
Josh Junon
83582e24e9
Merge pull request #3053 from gitbutlerapp/Virtual-branch-5
more refactors of TryFrom
2024-03-06 15:29:55 +01:00
Pavel Laptev
8dcf20cd15
Merge pull request #3052 from gitbutlerapp/Design-tokens-update
style: updated design tokens
2024-03-06 15:20:14 +01:00
Josh Junon
7905903c5d more refactors of TryFrom 2024-03-06 15:19:51 +01:00
Josh Junon
62081de9cf
Merge pull request #3051 from gitbutlerapp/Virtual-branch-4
remove several TryFrom cases for initializing type with path
2024-03-06 15:18:48 +01:00
Pavel Laptev
02d7a183b4 style: updated design tokens 2024-03-06 15:17:27 +01:00
Josh Junon
d72002c7f5 remove several TryFrom cases for initializing type with path 2024-03-06 14:44:08 +01:00
Josh Junon
d8b8c0f78d
Merge pull request #3049 from gitbutlerapp/Virtual-branch-4
first set of TryFrom impl removals
2024-03-06 14:35:44 +01:00
Pavel Laptev
72dd125056 feat: Update button text from "Authenticate" to "Authorize" in GitHub authentication workflow
Changed the button text from "Authenticate" to "Authorize" for better clarity.
2024-03-06 14:31:03 +01:00
Josh Junon
f8ad417c04 first set of TryFrom impl removals 2024-03-06 14:21:13 +01:00
Kiril Videlov
f2b13e5632 chore: add serde attribute to rename fields to camelCase in VirtualBranches struct 2024-03-06 13:51:04 +01:00
Kiril Videlov
ce23bda4ba
Merge pull request #3041 from Caleb-T-Owens/Add-evaluate-prompt-api-endpoint
Move over to evaluatePrompt endpoint for AI integration
2024-03-06 13:50:42 +01:00
Mattias Granlund
684f57a1b0 Fix status comparison for disabling merege button 2024-03-06 14:19:49 +02:00
Kiril Videlov
54293176d5 style: fix typo in readme 2024-03-06 11:02:13 +01:00
Caleb Owens
377b56e74d refactor: Move AIProvider and Summarizer classes to separate files
asdf
2024-03-05 22:59:25 +00:00
Caleb Owens
4c96d002a4 Formatting!
Formatting!
2024-03-05 22:36:29 +00:00
Caleb Owens
c5af3e2b20 Remove unused branch method from cloud.ts
Refactor
2024-03-05 22:31:24 +00:00
Caleb Owens
e4f5807205
Refactor style options 2024-03-05 22:27:12 +00:00
Caleb Owens
78f604a9a4
refactor: Update commit and branch templates
Refactored the commit and branch templates to allow for customizable templates. The commit method now accepts a commit template parameter, and the branch method now accepts a branch template parameter. This change provides flexibility in defining commit and branch templates for different scenarios.
2024-03-05 22:24:35 +00:00
Caleb Owens
01ed3c2151 feat: Implement diff length limit and use AIProvider interface
Change the diffLengthLimit constant to 20000 to limit the length of diffs in the code changes. 
Implemented AIProvider interface in ButlerAIProvider class to ensure consistency and adherence to the AIProvider contract for evaluating prompts.
2024-03-05 22:19:34 +00:00
Caleb Owens
9f8afcfd1d feat: Integrate ButlerAiProvider for AI summarization
Added ButlerAiProvider to handle AI summarization functionality instead of directly using Summarizer. This change improves modularity and separates the AI functionality into a dedicated provider. Updated the Summarizer class to utilize the new AIProvider interface for handling AI evaluations. This enhances code readability and maintainability.
2024-03-05 22:07:45 +00:00
Caleb Owens
34c13cc254 feat(backend): Add functionality to generate branch names based on diff
Added a new method in the Summarizer class to generate branch names based on the changes in the diff. The branch names are now automatically created by replacing whitespace with dashes and limiting to a maximum of 5 words. This will help in creating meaningful branches for better organization and tracking of changes.
2024-03-05 22:07:45 +00:00
Caleb Owens
56decefb3f refactor: Removed unused summarize commit and hunk functions
The summarize commit and hunk functions were no longer being used in the codebase, so they were removed to clean up the code and improve readability. This change simplifies the codebase and removes unnecessary functions.
2024-03-05 22:07:45 +00:00
Caleb Owens
d24bef3f32 Generate commit messages through evaluatePrompt API 2024-03-05 22:07:45 +00:00
Caleb Owens
312541b7f7 Updated lib to "ES2021" in tsconfig.json 2024-03-05 22:07:45 +00:00
Caleb Owens
83d5acee88 Add evaluatePrompt method to Cloud API client to handle prompt evaluation 2024-03-05 22:07:45 +00:00
Kiril Videlov
8aa0db409d
Merge pull request #3040 from gitbutlerapp/Filter-active-branches-by-flag
when locking hunks only consider commits from applied branches
2024-03-05 18:51:44 +01:00
Kiril Videlov
99df783a0a
when locking hunks only consider commits from applied branches 2024-03-05 18:32:59 +01:00