Pavel Laptev
16e27b42dd
Fix the order for interactive elements in TexBox
...
In order to support correct keyboard navigation
2024-03-24 15:02:46 +01:00
Pavel Laptev
6558c32fe2
added new input type
...
+ shake animation if the input is invalid
+ added new input props — minVal, maxVal, width and textAlign
+ added new section card prop `centerAlign`
+ new icon
2024-03-24 15:00:37 +01:00
Mayfield
3fc492b3eb
fix import order
2024-03-24 09:03:20 -04:00
Mayfield
a6928381c8
move userSettings to a more appropriate level
2024-03-24 07:33:24 -04:00
Mayfield
f254d7dc58
feat: add tab size option to Appearance settings
2024-03-23 21:33:25 -04:00
Mayfield
3486bfaf43
fix: background color CSS variable typo
2024-03-23 21:33:25 -04:00
Mayfield
901aed1afe
feat: add tabSize user setting
2024-03-23 21:33:25 -04:00
Mayfield
b8af70a30a
feat: add tab size option to Appearance settings
2024-03-23 21:16:18 -04:00
Mayfield
c691e5b116
fix: background color CSS variable typo
2024-03-23 21:16:18 -04:00
Mayfield
f940d6a1cf
feat: add tabSize user setting
2024-03-23 21:16:18 -04:00
Mattias Granlund
f2a54b7f9f
Fix bug occasionally preventing hunks from being moved
...
- hunks equal if hash is same, regardless of line numbers
- send hash from front end when updating ownership
- use updated line numbers after hunk intersection match
2024-03-24 01:46:17 +01:00
Pavel Laptev
debea8f343
styles: ai options page updated ( #3296 )
...
+ small fixes for related components
+ Settings text case fixed to capitalize only first letter
2024-03-23 23:26:03 +01:00
Pavel Laptev
2575bbfbd5
Styles updates ( #3292 )
...
* hover states for outline buttons + tokens upd
* design tokens update
* disable showing project name in settings
+ Titles case update
* added settings section component
2024-03-23 17:25:17 +01:00
Mattias Granlund
c78923843c
Fix incorrect tooltip position when zoomed in (cmd+-)
...
Units should be in pixels because they are calculated according to actual layout.
2024-03-23 15:02:36 +01:00
Mattias Granlund
b75d03b267
Add retries to loading pull request data
...
- github can respond with 422 right after pushing
- make three attempts to load data
2024-03-23 15:02:08 +01:00
Caleb Owens
61d6c678fc
Merge pull request #3270 from gitbutlerapp/refactor-sync-button-to-use-tag
...
refactor: replace custom sync button with Tag component
2024-03-22 11:32:28 +01:00
Caleb Owens
64e676ae79
Merge pull request #3254 from gitbutlerapp/consolidate-diff-formatting
...
Pass in hunk array rather than diff
2024-03-22 11:19:01 +01:00
Caleb Owens
bffcdbdae4
Pass in hunk array rather than diff
2024-03-22 11:09:14 +01:00
Scott Chacon
5a8b3969de
refactor: Update function parameter to use sortedFiles instead of files
2024-03-22 11:08:10 +01:00
Kiril Videlov
610eab9424
feat(sentry): add trace propagation targets
2024-03-22 10:42:16 +01:00
Mattias Granlund
29a9e18b66
Use context API for sharing User instance
...
More refactoring, this time removing the need for prop drilling the user.
2024-03-22 01:01:22 +01:00
Caleb Owens
39864eeb5a
refactor: replace custom sync button with Tag component
...
The custom sync button is replaced with the Tag component. The Tag
component is updated to support a loading state and help text. The
busy label is moved inside the Tag component. The custom sync button
styles are removed.
2024-03-21 23:30:24 +01:00
Mattias Granlund
1bd2dfda2e
Fix save project description
2024-03-21 23:19:10 +01:00
Mattias Granlund
f285579113
Use getContextByClass
for Project
...
This removes quite a bit of prop drilling.
2024-03-21 23:17:49 +01:00
Mattias Granlund
edaec8ebbd
Convert cloud api object to class
2024-03-21 19:35:27 +01:00
Mattias Granlund
0acb4c106f
Refactor prompt service to be easier to use
2024-03-21 16:30:13 +01:00
Mattias Granlund
b594c68597
Show prompt from CLI in PassphraseBox
...
- missed this in the initial commit
2024-03-20 22:27:31 +01:00
Caleb Owens
b3699e2b5a
Refactor away random.ts
...
Removed unused/duplicate methods and moved unsubscribe() to a better named file
2024-03-20 21:08:03 +00:00
Mattias Granlund
123843799d
Bugfix for PassphraseBox
to show prompt correctly
2024-03-20 15:47:23 +01:00
Mattias Granlund
01dc79ee62
Set default headers for GitHub API
...
- defines headers constant for octokit.js
- cache-control header prevents stale results
2024-03-20 15:16:21 +01:00
Pavel Laptev
42c7d7fd8e
Style and copy fixes ( #3242 )
...
* Project setup GH integration missing flag
* Style fix: Project setup GH integration margin
* Added ProjectNameLabel component
* UI: new icons
* Copy update and `DecorativeSplitView` link update
* Style tweak
2024-03-20 15:01:17 +01:00
Mattias Granlund
0d5dbc25b7
Organise the prompt service code a bit better
...
Note that instance fields are evaluated during instance creation, at the start of the constructor.
2024-03-20 13:15:04 +01:00
Mattias Granlund
14def6e616
Show prompt from CLI in PassphraseBox
2024-03-20 12:12:24 +01:00
Mattias Granlund
c8e9f4f9a4
Organise the prompt modal code a bit better
...
- submit on enter
2024-03-20 12:11:10 +01:00
Kiril Videlov
80b3b682cf
fix(community-links): update discord link
2024-03-20 11:05:11 +01:00
Caleb Owens
792ea08eee
Consolidate on one commit splitting implementation
...
The changes in this commit focus on improving the handling and display of commit messages. The key changes are:
1. Introduced a new `splitMessage` utility function to split a commit message into a title and description.
2. Updated the `Commit` and `RemoteCommit` classes to use the `splitMessage` function to extract the title and description from the commit message.
3. Updated the `AIService` to use the `splitMessage` function to construct the summarized commit message.
4. Added a test suite for the `splitMessage` function to ensure it handles various commit message formats correctly.
These changes will make it easier to work with and display commit messages, as the title and description will be separated, allowing for better formatting and presentation.
2024-03-20 02:22:42 +01:00
Caleb Owens
415370a422
Keep showing commit description field if present
2024-03-20 02:20:29 +01:00
Mattias Granlund
690ec9cced
Bugfix checks.. again
...
- simplify logic a bit here, never show checks if pr closed
2024-03-20 00:47:07 +01:00
Mattias Granlund
9e41f63e99
Improve pull request checks state accuracy
2024-03-20 00:32:51 +01:00
Mattias Granlund
1b9e6649c7
Stores from observables should not subscribe until store subscribed
2024-03-20 00:03:03 +01:00
Mattias Granlund
009478a67a
Fix erroneous error message when adding project
...
- for a split second the navigation bar comes into existence
- was trigger remote branches load
2024-03-20 00:02:43 +01:00
Mattias Granlund
6aa883f7f8
Wire up backend input requests to new components
...
- adds a modal for use with sync button and credentials checker
- uses branch lane PassphraseBox for pushing
2024-03-20 00:00:29 +01:00
Pavel Laptev
8498e35d9f
new component PassphraseBox
2024-03-20 00:00:29 +01:00
Pavel Laptev
e3ffef17a8
Show/hide icon if textbox type is "password"
2024-03-20 00:00:29 +01:00
Pavel Laptev
554a3daa13
UI: TextBox paddings update
2024-03-20 00:00:29 +01:00
Mattias Granlund
56ca8b233d
Fix for pr tag being stuck on "open"
2024-03-19 17:53:34 +01:00
Mattias Granlund
61d864512c
Disable merge button if PR in draft state
2024-03-19 17:53:11 +01:00
Mattias Granlund
8e0e048e0a
Increase timeout for branch reload
...
- up from 10s to 30s
2024-03-19 15:16:07 +01:00
Mattias Granlund
8987b10647
Fix occasional problem with unsubscribing observable
...
- can happen when switching projects
2024-03-19 14:50:47 +01:00
Mattias Granlund
2e6a62f82a
feat(project): Force component recreation on projectId change
...
- solves problem of `getContext` retrieving old values
2024-03-19 14:46:13 +01:00