Mattias Granlund
1475f06958
Miscellaneous fixes
...
- some things I found while working
2024-03-16 01:55:53 +01:00
Pavel Laptev
39434bede4
style: Update button size design token
2024-03-16 01:12:09 +01:00
Mattias Granlund
8a83e01ce0
Fix dev problem when hot reloading
...
- must check if element is still connected before manipulating element
2024-03-16 00:22:18 +01:00
Mattias Granlund
5d927abfcc
Simplify GitHub service a little
...
- this branch will be force pushed again
2024-03-15 23:27:52 +01:00
Pavel Laptev
180d0eebd5
Commit box: race condition fixeed
2024-03-15 15:13:45 +01:00
Pavel Laptev
546e60c433
Merged origin/master into Commit box two fields
2024-03-15 14:32:48 +01:00
Scott Chacon
5afa391dfe
wrong lint order
2024-03-15 05:45:34 +01:00
Scott Chacon
7fc51b775e
Add GitButler app version
2024-03-15 05:45:34 +01:00
Scott Chacon
cec15bcdd0
send more context with feedback (OS, browser, index size)
2024-03-15 05:45:34 +01:00
Kiril Videlov
e0b0b85ad8
refactor: Update email input placeholder text and add required attribute to improve user experience
2024-03-14 20:31:21 +01:00
Pavel Laptev
ddee80788b
style: add white-space: nowrap to label class
...
In order to prevent line breaks on the Tag component
2024-03-14 20:31:21 +01:00
Pavel Laptev
558340d17b
refactor: Remove unused code
2024-03-14 20:31:21 +01:00
Mattias Granlund
82650a5500
Switch to new style of upstream commit list
...
- this work was left uncompleted a month back
2024-03-14 20:31:21 +01:00
Mattias Granlund
263ef78ed6
Refactor a couple of things for clarity
2024-03-14 14:29:06 +01:00
Kiril Videlov
e6acfe9afd
refactor: Update email input placeholder text and add required attribute to improve user experience
2024-03-14 12:04:13 +01:00
Pavel Laptev
15d2238d82
style: add white-space: nowrap to label class
...
In order to prevent line breaks on the Tag component
2024-03-14 11:49:00 +01:00
Pavel Laptev
3203acf971
refactor: Remove unused code
2024-03-14 11:42:49 +01:00
Mattias Granlund
e7b80725ea
Switch to new style of upstream commit list
...
- this work was left uncompleted a month back
2024-03-14 09:23:53 +01:00
Pavel Laptev
f2856ea899
Removed console.log
2024-03-13 23:59:20 +01:00
Pavel Laptev
8611597eaa
Added custom useResize
hook, code review
...
- Code review fixes
- In order to correct textareas hights I added custom hook that's watch for any size changes. Added it only for the summary because it's always on
2024-03-13 21:26:39 +01:00
Pavel Laptev
ac314fd143
Merged origin/master into Commit box two fields
2024-03-13 21:02:33 +01:00
Mattias Granlund
464fafc12a
Refactor checks loading status
...
- it was left a bit too chaotic and hard to follow in the last commit
2024-03-13 19:29:10 +01:00
Mattias Granlund
07d7879f31
Show loading state while fetching PR checks
2024-03-13 18:06:32 +01:00
Pavel Laptev
9148df8ac7
Code review fixes
...
- Removed unused import
- Removed commited `console.log)
- Updated logic to correctly handle splitting summary and description
- Updated text styling for commit message textarea
2024-03-13 15:13:21 +01:00
Pavel Laptev
756efcb102
Formatting fixes
2024-03-13 13:50:15 +01:00
Pavel Laptev
560e0fb8ce
added tooltip if commit summary is too long
2024-03-13 13:50:15 +01:00
Pavel Laptev
6fd1b1f23f
Two fields workaround
...
- modified commit box in order to support summary and description
- modified useAutoHight hook, made two functions
- added focus class for input styles
2024-03-13 13:50:15 +01:00
Mattias Granlund
60e5f3d600
Change copy on pull request card
...
- Capitalize pr status
- Merge -> Merge pull request
- View PR -> Open in browser
2024-03-13 12:41:55 +01:00
Pavel Laptev
cfe347f343
unused component VideoTip
and imports removed
2024-03-12 23:34:26 +01:00
Pavel Laptev
3d54ac7b16
Formatting fixes
2024-03-12 23:30:57 +01:00
Pavel Laptev
c310fa0e9f
remove video from the app
...
related issue #3126
2024-03-12 23:29:23 +01:00
Pavel Laptev
d894690ec2
related issue #3126
2024-03-12 22:58:47 +01:00
Mattias Granlund
9aa2115c12
Fix for merge button being incorrectly disabled
...
- disable only if checks exist and they have not succeeded
2024-03-12 21:49:34 +01:00
Kiril Videlov
9892e4f9c8
refactor: Remove condition for admin role check in rendering upstreamCommits component.
2024-03-12 20:48:04 +01:00
Kiril Videlov
6aabf37b2c
refactor: when fetching hunks by file return a map of DiffFile
...
Adding stonger types to the result will allow us to more easily propagate information like old/new files paths, size etc
2024-03-11 22:44:19 +01:00
Pavel Laptev
409fce9c30
SectionCard card and credential checks
...
- renamed `SectionCard` slot from `body` to `caption`
- `CredentialCheck` layout and style fixes
- `Spinner` icon updated in order to prevent scroll appearance during the animation
2024-03-11 00:17:15 +01:00
Pavel Laptev
7224a4dd0c
removed unused code and tailwind from +layout.svelte
2024-03-10 21:40:43 +01:00
Pavel Laptev
30b9442974
Replace loading...
plain text to the spinner
page
2024-03-10 21:12:08 +01:00
Pavel Laptev
68a2a15b2b
refactor: remove unnecessary comment and event for hover
2024-03-10 21:09:49 +01:00
Mattias Granlund
07229ea37f
Fix ctrl +- for zooming on Linux
...
- fixed by reading tinykeys docs, found $mod
https://github.com/jamiebuilds/tinykeys
2024-03-10 20:59:03 +01:00
Mattias Granlund
b5ac036091
Enable lint rule to disallow arrow functions where it isn't necessary
2024-03-10 20:19:30 +01:00
Mattias Granlund
a2d4def691
Refactor arrow functions into normal functions #2
...
- converts remaining arrow functions to named functions
2024-03-10 20:19:30 +01:00
Mattias Granlund
a8eb502d79
Refactor arrow functions into normal functions
...
- as discussed in person and on discord, to keep consistency in the code base
2024-03-10 15:14:56 +01:00
Mattias Granlund
bfc418e5e7
Fix new project redirect
...
- `goto('..')` was redirecting to previous project
2024-03-10 14:35:17 +01:00
Mattias Granlund
836e3aaa4d
Fix bug in credential checker
...
- `.catch()` was attached to wrong promise
2024-03-10 11:56:28 +01:00
Pavel Laptev
d5c70c4030
Merge pull request #3083 from gitbutlerapp/scrollbar-updates
...
scrollbar-updates
2024-03-10 11:55:14 +01:00
Mattias Granlund
88283e4ac9
Simplify credential checker
...
- fewer if conditions
- no need for hiding checks on success
- adds reset method
2024-03-10 10:34:23 +01:00
Mattias Granlund
6137d6b63a
Refactor credential check
...
- show tests while running (with indicator)
- incremental progress update
2024-03-10 09:24:17 +01:00
Pavel Laptev
bf27c3c474
Added scrollbar to lanes and removed unused CSS vars
2024-03-09 23:23:34 +01:00
Pavel Laptev
06f0490bf3
CSS fixes
...
- made target branch background color less transparent
- Select component added overflow hidden in order to cut overflowing scrolbar
- Same for the HunkViewer
2024-03-09 23:18:26 +01:00
Pavel Laptev
830e140cf6
fix lint errors
2024-03-09 23:18:26 +01:00
Pavel Laptev
cd4f4ca48f
refactor: Update thickness variable to 0.563rem for a thinner scrollbar appearance
2024-03-09 23:18:26 +01:00
Pavel Laptev
dc2b9fa40f
New user setting and video tip component
2024-03-09 23:18:26 +01:00
Pavel Laptev
d23e3ff2e6
Enhanced Navigation UX
...
- Implemented a feature where, during the dragging of the scrollbar in the branches view, the fold button now dynamically hides to prevent overlap with the scrollbar.
2024-03-09 23:18:26 +01:00
Pavel Laptev
205ffacc7c
style updates: scrolbar and navigation fold button
...
- Updated style of the fold button in order to make more space for the scrollbar
- Scale scrollbar when it's hovered
2024-03-09 23:18:26 +01:00
Pavel Laptev
40b4702d1a
scrollbar updates
...
- added `zIndex` prop in case of overlapping with other elements
- track height was changed to procentage units from fixed pixel units
2024-03-09 23:18:26 +01:00
Pavel Laptev
690ef6babc
refactor: Remove unused code and update styles for scrollbar
...
- fixed horizontal mode
- Removed `alwaysVisible`, `margin`, `opacity` variables as they are no longer needed.
- Updated `thickness` variable to use CSS custom property.
- Refactored styles for scrollbar track and thumb elements to improve visibility and responsiveness.
- Added event listeners for mouse enter and leave on viewport to control visibility based on hover state.
2024-03-09 23:18:26 +01:00
Kiril Videlov
653c831471
refactor: Add tooltip functionality for locked files to display commit information on hover.
2024-03-09 21:03:28 +01:00
Pavel Laptev
2412962384
Merge pull request #3082 from gitbutlerapp/authentication-methods-style-fixes
...
authentication-methods-style-fixes
2024-03-09 00:34:51 +01:00
Pavel Laptev
96fc88beb9
CSS fixes
...
- fixed vertical scroll for DecorativeSplitView in order to respect the selector pop up behaviour
- added `…` to `remove project` which means there will be an aditional action after click
- small CSS fixes to `Selector`
2024-03-09 00:33:25 +01:00
Mattias Granlund
5477c2dd5f
Fix navigating to new project after deleting another
2024-03-08 22:40:01 +01:00
Kiril Videlov
cb128df06b
feat: Add last commit timestamp and author to RemoteBranch struct and use it in CombinedBranch for display purposes.
2024-03-08 22:22:40 +01:00
Pavel Laptev
a9f1900f19
versical scroll for credentials onboarding screen
2024-03-08 22:06:02 +01:00
Pavel Laptev
8f36bd2f99
refactor: Improve button styling and readability
...
- Changed the "Back" button to have a neutral color.
- Updated the disclaimer text to include a link for more information on authentication methods.
- Fixed background color for disclamer.
- Updated "preferred_key" section style.
2024-03-08 22:05:07 +01:00
Matías Fuentes
c69ca25cbd
fix: added draggable="false" to file-icon and created a class in styles ".file-icon".
...
formated file
fix: width space on file icon
fix: format
2024-03-08 22:02:06 +01:00
Mattias Granlund
acb25f3d98
Fix new project redirect
...
- needs to be improved in the future
2024-03-08 21:21:41 +01:00
Mattias Granlund
efb8f77543
Integrated credential checker into settings and setup flow
...
- adds new [projectId]/setup route
2024-03-08 19:26:34 +01:00
Mattias Granlund
7e3049d179
Add git credential checker to project setup
...
This is meant to help with the most frequent support requests, problems
with pulling and pushing from a git remote.
2024-03-08 19:26:34 +01:00
Pavel Laptev
ded41d7728
removed non existing attr
2024-03-08 11:44:20 +01:00
Pavel Laptev
0d3c33b821
section card updates
...
- added `clickable` and non `clickable` styles
- added hover state if it's clickable
- added `labelFor` where it was missing and removed where the card is not clickable
2024-03-08 11:03:22 +01:00
Mattias Granlund
6bbf7a8310
Fix settings page refactor regressions
...
- fixes click on some missing elements
- load ssh key in onMount
- happened with removal of clickable card
- fixes missed prop renames
2024-03-08 02:47:32 +01:00
Mattias Granlund
645e076a78
Use SectionCard instead of ClickableCard
...
- commit grew a bit in scope
- lots of refactoring to settings pages
- clickable card dropped
2024-03-08 00:19:11 +01:00
Mattias Granlund
0311052f24
Add back push success/failure telemetry
...
- accidentally dropped when removing duplicate function
2024-03-07 21:45:43 +01:00
Matías Fuentes
ccd8417626
fix: runned format command
2024-03-07 21:16:51 +01:00
Matías Fuentes
ac7adbedae
fix: branches filter checkboxes and toggle behavior
2024-03-07 21:16:51 +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
Mattias Granlund
bcc2cd721f
Change "discard file" to "discard changes"
2024-03-06 19:18:33 +02:00
Mattias Granlund
5c64a0ea90
Rename a couple of ts files from snake_case to camelCase
2024-03-06 16:47:57 +02:00
Pavel Laptev
02d7a183b4
style: updated design tokens
2024-03-06 15:17:27 +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
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
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
Pavel Laptev
d34184c1da
feat: add new icon for logs in the icon library
2024-03-05 16:15:16 +01:00
Pavel Laptev
18f9ae97bf
icons small fixes
...
- sort icons alphabetically
- fix radius value for the spinner icon
2024-03-05 14:54:01 +01:00
Mattias Granlund
3c86868d6f
Fix file preview when draggin from file tree
...
- fixes #3029
2024-03-05 01:29:42 +02:00
Daniel Kranich
9fc20018b0
Improve new branch name detection
...
Improved the new branch name detection for auto generating branch names. Now uses a regex to match new branch names more explicitly and will avoid branch name generation loops when 'virtual branch' is a string used often in the diff. Fixes issue #3017
2024-03-05 01:22:39 +02:00
Mattias Granlund
6234549c0b
Do more to prevent stuck busy.. indicator
...
- not sure why this was not addressed earlier
2024-03-05 00:49:54 +02:00
Mattias Granlund
5ad6db4e07
Set file selection on drag when necessary
...
- the behaviour was unexpected if another file was already open
2024-03-05 00:49:24 +02:00
Mattias Granlund
e4fab86085
Fix bg when dragging not selected files
2024-03-05 00:47:34 +02:00
Mattias Granlund
dcd0506999
Fix missing prop error for FileTree component
...
- project property was missing from svelte:self tags
2024-03-05 00:43:24 +02:00
Mattias Granlund
2691365474
Make UI faster with mousedown over click
...
- considered all on:click events but could have missed some
- actions that modify state still use on:click
2024-03-05 00:21:35 +02:00
Pavel Laptev
86a999fbe8
non exisiting property remove
2024-03-04 22:49:03 +01:00
Pavel Laptev
2a1eb898a7
remove unused import
and commented code
2024-03-04 22:41:11 +01:00
Pavel Laptev
7d80feb77c
Profile page updated
...
- added "thank you" banner
- "Log out" button was moved to the profile section
- small CSS fixes
2024-03-04 22:36:11 +01:00
Pavel Laptev
d108788351
style: update success icon alignment in project setup component
2024-03-04 20:58:52 +01:00
Josh Junon
84684a3f29
fix list item overflow on windows
2024-03-04 16:44:22 +01:00
Pavel Laptev
34ea782123
feat: add support for tracking if the resizer is being dragged in the navigation component
2024-03-03 23:53:42 +01:00
Pavel Laptev
4ca8703fc6
Commit card styles updates
...
- Fix card styles for cases when there are no commits
- card `min-height` removed
2024-03-03 22:56:38 +01:00
Pavel Laptev
82a5e0267f
Styles updates: Fold navigation button hover
2024-03-03 22:40:13 +01:00
Pavel Laptev
8f0536fdc8
Not render commits
div if there are no commits
2024-03-03 22:40:13 +01:00
Pavel Laptev
ac376c1b03
document format to pass Lint checks
2024-03-03 22:40:13 +01:00
Pavel Laptev
a74b60e4da
Branch icons styles update
...
- Branch icon code rafactor
- Virtual branch color changed
2024-03-03 22:40:13 +01:00
Kiril Videlov
113da1f752
lower sentry performance sample rate
2024-03-03 21:09:47 +01:00
Kiril Videlov
7fdb26b139
fixes an merge conflict resolution mistake
2024-03-03 18:39:16 +01:00
Kiril Videlov
dbcc24c19d
Merge branch 'master' into navigate
2024-03-03 18:33:42 +01:00
Kiril Videlov
45fa02eeb0
feat: add check for deleted files to disable "Open in VSCode" option in context menu
2024-03-03 18:28:49 +01:00
Kiril Videlov
78968e5e5d
chore: update console logs to use console.error for error messages
2024-03-03 18:03:30 +01:00
Kiril Videlov
767c1daded
Merge pull request #2959 from Pranav2612000/feat/2950-file-context-menu-improvements
...
File context menu improvements
2024-03-03 17:59:42 +01:00
Kiril Videlov
aab694df48
Merge pull request #2946 from gitbutlerapp/Update-unapply-files-function
...
✨ feat: adds reset_files command to revert files
2024-03-03 17:56:50 +01:00
Kiril Videlov
19e586dbb2
feat(UI): handle list vbranches returning an object
2024-03-03 17:34:02 +01:00
Pranav2612000
ba726070f2
feat file_context: add items to copy absolute_path, copy relative_path
...
and open in vscode
2024-03-03 16:56:09 +05:30
Mattias Granlund
44b705697b
Add keyboard nav to FileTree as well
2024-03-03 12:15:41 +01:00
Pranav2612000
b1798ab79f
fix: show Discard files (plural) if more than 1 file selected
2024-03-03 16:38:56 +05:30
Alabhya Jindal
bd9c12f486
Fix lint issues
2024-03-03 15:36:27 +05:30
Alabhya Jindal
c93efa1986
Add comments
2024-03-03 15:29:48 +05:30
Alabhya Jindal
a1c5137aa6
Improve keydown function
2024-03-03 15:22:08 +05:30
Mattias Granlund
20d50e17e3
Update text: discard file -> discard changes
2024-03-03 10:46:20 +02:00
Alabhya Jindal
4a19332092
Passed files as FileTree
2024-03-03 14:15:24 +05:30
Pavel Laptev
9bd3e89430
fix SVG spinner radius
2024-03-02 22:20:30 +01:00
Pavel Laptev
a74947764a
PR card tweak
...
- check is `status` tag `filled` or not
- added `no checks` label
- removed `border` on status tags
2024-03-02 22:16:38 +01:00
Pavel Laptev
5058ca253a
- restrickted pinter events for Tooltip
2024-03-02 21:25:27 +01:00
Pavel Laptev
1b1435c1c6
Spinner
animation time changed
2024-03-02 21:25:27 +01:00
Pavel Laptev
32d4b026a0
Refactor: Button and Dropdown
...
- removed `:global` rule
- removed `class` prop from `Button` as not used
- removed `joinClassNames` function as not efficient and almost not used
- added `isDropdownChild` to `Button`
2024-03-02 21:25:27 +01:00
Pavel Laptev
a30a5083cd
updated Spinner
animation and styles
2024-03-02 21:25:27 +01:00
Pavel Laptev
fddf37a95d
styles: Tag
spinner style updated
2024-03-02 21:25:27 +01:00
AbhishekThorat
010e2166ea
- Address review comment. - Used openExternalUrl
instead of open
method directly
2024-03-02 21:23:50 +02:00
AbhishekThorat
eeb1336445
- lint fix
2024-03-02 21:23:50 +02:00
AbhishekThorat
c25f1976f2
- Add missing import for open
tauri api
2024-03-02 21:23:50 +02:00
Mattias Granlund
e5cdd0fa4d
Use external url opener on login page
...
- provides a toast with feedback on error
2024-03-02 17:39:05 +02:00
Mattias Granlund
24bf86a1bf
Fix top level page loading indicator
...
- the previous method would render to the page as undefined
2024-03-02 17:16:08 +02:00