Commit Graph

3485 Commits

Author SHA1 Message Date
Andrey Belyaev
525bec79ce [github] IJPL-74106 Review fixes
(cherry picked from commit e5b8c7d210f9919cd14a4aa5384928fe43435266)

IJ-CR-147981

GitOrigin-RevId: 308ed8687b41e724aed2fd2004f760294c1ba264
2024-11-22 11:41:24 +00:00
Chris Lemaire
07f1fbf5af [ghai] Make project available to summary timeline component factory
(cherry picked from commit cab7ffc9b8051cda70dadeb2d2d5ee643aad4a31)

IJ-CR-148445

GitOrigin-RevId: 959a58f5a684a307aee569c1b1fe812d550f20ec
2024-11-06 18:33:20 +00:00
Chris Lemaire
718f342655 [ghai] Unexpose the GHPRAIReviewExtension.EP field
(cherry picked from commit 6a9ddee53b185d0e5bc07066a1cd29683138b22e)


(cherry picked from commit 7633d324646fb80cbef4e62a0c75ea7282a8ae9f)

IJ-CR-148445

GitOrigin-RevId: a80af02b4df5139bc7745c56d24cc751f69078f1
2024-11-06 18:33:20 +00:00
Chris Lemaire
ae3fd256fb [ghai] Add a way to generate a summary of a PR with AI
Add actions:
- Generate a summary
- Like the generated summary
- Dislike the generated summary

Adds UI:
- A comment in timeline with a purple hover color
- buttons for above actions

(cherry picked from commit 6f734fb94f53a4efd8dd950b51d427a21f9ab117)


(cherry picked from commit 3e0ae846aa29182724b7a350a2567bff89070351)

IJ-CR-148445

GitOrigin-RevId: 51e1544114d334edfc5f001f9145e6d4a0c7e0ae
2024-11-06 18:33:20 +00:00
Chris Lemaire
bc555ebd94 [collab] Add a singleExtensionFlow for just emitting the first extension
(cherry picked from commit 8b94732ea5af145c9b1b4fb4bd8331d66ff20b18)


(cherry picked from commit 576f178751a1a60d43d2cce7aacf75927d9f6e81)

IJ-CR-148445

GitOrigin-RevId: 28c89137819f759e3f59e284e16217a1caceb20a
2024-11-06 18:33:20 +00:00
Chris Lemaire
8dc7489ac2 [ghai] Refactor GH DataContexts to be passable to LLM module
..and pass it to the existing review VM instead
of some specific VM exposing a specific path.

(cherry picked from commit c3fb55112fe4ff781d076d7d73ee1761fd97da56)


(cherry picked from commit 69ca8b42736fb88ffde195fea2e2e81f8f0e2fc0)

IJ-CR-148445

GitOrigin-RevId: 58b64b10ddcfa8a3339dba3164533940f54ca21d
2024-11-06 18:33:20 +00:00
Chris Lemaire
401e8f31e5 [github] Make changesComputationState an internal-API function
(cherry picked from commit ddf495030801429d9bbcc8977468e0129e4787eb)


(cherry picked from commit 8553adf7d89bc793125e90a7fbf60d91beaec11d)

IJ-CR-148445

GitOrigin-RevId: 49a1e4ea9971ff0a3d871eacbe1cad9516a0f7c1
2024-11-06 18:33:20 +00:00
Chris Lemaire
9b6b287618 [ghai] Refactor the AI review action to be supplied by EP
(cherry picked from commit ba10b014a27b4056feba01107f8bcdfb743352c3)


(cherry picked from commit ed410ef7ca8143162e3788318666ec9e76e9df0d)

IJ-CR-148445

GitOrigin-RevId: fce66dae03512fe11333ef78b47e3f13e2762a14
2024-11-06 18:33:20 +00:00
Chris Lemaire
a650191208 [ghai] Combine split extension points into 1 for AI Review
(cherry picked from commit 26bf013e434fa57e27ad7d94f802671c6d1248f9)


(cherry picked from commit 758a1d0eeefdead4ed003d486b48ddd28b7b07af)

IJ-CR-148445

GitOrigin-RevId: 0cb5b864929ef0e55ae900c1a06701abdaca0c25
2024-11-06 18:33:20 +00:00
Chris Lemaire
24adc57c99 [ghai] Refactor AI review loading
This at least makes it possible to reload the review
and fixes the review loading immediately, even before user input.

Also adds a small warning in case of an exception.
No reload action included yet.

(cherry picked from commit 5a3cefacc08921b03dff2871e16eb88ba48e886b)


(cherry picked from commit c6b52c8d40a7f366fd71fd613b0bfc42575b193e)

IJ-CR-148445

GitOrigin-RevId: 14ee472fd7f0476df2c20b8d2dea10383fc7383b
2024-11-06 18:33:20 +00:00
Chris Lemaire
c1461e280b [ghai] Remove unnecessary distinction between Editor and Diff inlays
(cherry picked from commit caeeb0aa22a0070eeba06a703bd71dcadfac6214)


(cherry picked from commit 7bd962e42186d7601f49eae6bf7f7b42ced421a7)

IJ-CR-148445

GitOrigin-RevId: 10e578c27b20baa728bbbd49ec84972c194f4051
2024-11-06 18:33:20 +00:00
Chris Lemaire
b423645739 [collab/ghai] Move AI comment background color into themeMetadata
(cherry picked from commit 33933900541578ab3be434976d55136610c82991)


(cherry picked from commit 1ca2a6bcf53c84b1c30af9966b550ee9be52bdc6)

IJ-CR-148445

GitOrigin-RevId: a4b16470ab006d374e9174e6baa750a620d48497
2024-11-06 18:33:20 +00:00
Chris Lemaire
d2edb7242f [ghai] Refactor AI review to provide a sub-VM for GHPRViewModelContainer
(cherry picked from commit bc666fa5cfe7284c67a660d25cd6eb79929bd6c6)


(cherry picked from commit 82bebd825fe6984d4711d5aafd8607e504a6faa2)

IJ-CR-148445

GitOrigin-RevId: 1e266adaf9975886ca3a6c84372bb7a3f0efaba5
2024-11-06 18:33:20 +00:00
Chris Lemaire
6a8ab2685a [collab/ghai] Refactor to use showingScope everywhere
(cherry picked from commit b7fe8928b17ebe2a5a428da09eef7b0c247e904a)


(cherry picked from commit 30ca871cdeba282aa2b023a5351cdbfa4bb0bcc6)

IJ-CR-148445

GitOrigin-RevId: 3c446b0592fd42f54c770a39d0660096075d41ee
2024-11-06 18:33:20 +00:00
Chris Lemaire
d1d4038de3 [ghai] Rename classes and refactor chat state VM
(cherry picked from commit eb3828e885132bccdfedd843d58989e185aa0fb8)


(cherry picked from commit a320b686c57b159891cb3cfd81059436ebb23993)

IJ-CR-148445

GitOrigin-RevId: 6ab11ac7b9d7536f5852a766287929a403e9e274
2024-11-06 18:33:20 +00:00
Chris Lemaire
3da80a4578 [ghai] Use proper UI data provider wrapper
(cherry picked from commit 84f39b4ab5a0a94d411a519468ce5f44a888853a)


(cherry picked from commit d67059121f3d6f7065707de5d53d203ca970c0e6)

IJ-CR-148445

GitOrigin-RevId: cd72a3abff327652fed2a1ff01cd506a3b1c6dc6
2024-11-06 18:33:20 +00:00
Chris Lemaire
df57020a83 [ghai] Move AI review into LLM plugin module
(cherry picked from commit 5d96d51f28b0e63c660b56843245f40a1603355e)


(cherry picked from commit 2f43f1000ec5b565f6390a6e00388a2836300539)

IJ-CR-148445

GitOrigin-RevId: 9802819a1282435cdde7677313a5d57a5f3c0d01
2024-11-06 18:33:20 +00:00
Chris Lemaire
c1a22690f7 [ghai] Make review buddy only available internally for now
(cherry picked from commit 78b35a96cc2ebcdcef15ed84651f7d0b16653096)


(cherry picked from commit 783d691884159024717c294ee4e14fb1a74e2ab3)

IJ-CR-148445

GitOrigin-RevId: 51fa21516e473a29cf97d4071e8df7d254bacd4f
2024-11-06 18:33:20 +00:00
Chris Lemaire
746c6f24a5 [ghai] Split AI-related functionality to be able to disable AIA
(cherry picked from commit 9575bdc2ede0779e0fd9da2dd2ac4692c538b074)


(cherry picked from commit 057e99961ecf46493ffb225861e08b5e65bc959c)

IJ-CR-148445

GitOrigin-RevId: 996a3e964a0e72cf0d8ff70c6512d52d2c515e05
2024-11-06 18:33:20 +00:00
Chris Lemaire
9b904afcca [ghai] Refactor review buddy to use new Grazie Task API
(cherry picked from commit befe3f79a3b08249deba5dfa00d6421ce3ec632b)


(cherry picked from commit f06576e107ae447528d61054de44c63b9d69e358)

IJ-CR-148445

GitOrigin-RevId: 7e6feeca7007e740115024b0834029232c695a2b
2024-11-06 18:33:20 +00:00
Ivan Semenov
698250965f [collab/ghai] AI code review buddy prototype
(cherry picked from commit d378eeed0d47e25aeb5429b80b25fd2d517b18ea)


(cherry picked from commit ef1bdea3742cc0c46b31926a53f2bfcb7eb3fd43)

IJ-CR-148445

GitOrigin-RevId: 343aecfd9f17cfdd79eb58f8e2acc3a5a2e5069e
2024-11-06 18:33:20 +00:00
Chris Lemaire
5c813fffb1 [collab] Remove and replace classAsCoroutineName
It's basically unused and deprecated since CoroutineName is no longer used.
We practically always make a child scope with the class name.
Better to just use the class name in this case.

(cherry picked from commit 4827600b509f0ca804f5be1d05b35b11f8df470f)


(cherry picked from commit eb889a9e6dd0733a86664125feba158234b5267a)

IJ-CR-148445

GitOrigin-RevId: 5cf31226299b6ddad30f919b4ddeb36c8ae947aa
2024-11-06 18:33:20 +00:00
Ilia.Shulgin
83fc84993c [git] IJPL-84816 Delete git.clone.shallow registry key
(cherry picked from commit 256392f36282aca50551dc92614b554c8f52f98b)

IJ-CR-147381

GitOrigin-RevId: 6572d5656d8682e426d58c70b7f998085c3a9c30
2024-10-22 14:12:15 +00:00
Ilia.Shulgin
00760b25cf [gh/gl] IJPL-84816 Support shallow clone in GitLab and GitHub clone dialogs
GitOrigin-RevId: 15d1b26659829721be8340651f2c45895deac6d1
2024-10-14 22:26:50 +00:00
Vladimir Krivosheev
387be9d569 IJ-CR-146078 extract intellij.platform.ide.ui
GitOrigin-RevId: 1d77381f1bcc811dbf644e47e70972a572c095f2
2024-10-10 23:38:08 +00:00
Andrey Belyaev
e7debf8169 [github] IJPL-72839 Updated inspection and intention for reusable workflows
GitOrigin-RevId: d12f406adcc018a1a7c203fa88a2239e4bdb5d58
2024-10-03 22:02:21 +00:00
Piotr Tomiak
cb9b167a18 IJPL-158733 WEB-52274 IJPL-76550 IJPL-155932 Add support for base64 to QuickDoc and add support for SVGs to ResizingHtmlImageView
GitOrigin-RevId: d4a075078b1d903ac0e864a0e447f0252b5398ac
2024-10-03 12:27:48 +00:00
Chris Lemaire
a28c8ee586 [gitlab/github] Resolve warnings about early updating toolbar
Toolbar was deterministically updated before adding it to the component tree.
`launch` is more likely to delay that update, though I guess it may not be 100%.

GitOrigin-RevId: 912684ffff5ade602b3b0448bdbd25a304426b23
2024-09-30 20:00:50 +00:00
Ilya Muradyan
4486aa89cb PY-71912: Create gists with the relevant language extensions for the partial selections
GitOrigin-RevId: 56e4b7c9ccdcb56b0b718f675403c86588a4b00f
2024-09-27 06:40:50 +00:00
Chris Lemaire
f4b1d4424e [github] Fix branch labels not showing by using the right classloader (IJPL-162561)
#IJPL-162561 Fixed

GitOrigin-RevId: 8285e77a7bc46944456c888fd19731e640428d89
2024-09-25 17:37:17 +00:00
Andrey Belyaev
79562e04d2 [github] IJPL-74106 Added navigation to workflow files. Using naive algorithm to detect actions and workflows
GitOrigin-RevId: 92018dfc270bad4f5622032894f136b274448130
2024-09-25 13:11:09 +00:00
Dmitrii Petukhov
d3aa968b44 [collab/space] IDEA-353795 Starting screen in the Space tool window
Merge-request: IJ-MR-142996
Merged-by: Dmitrii Petukhov <dmitrii.petukhov@jetbrains.com>

GitOrigin-RevId: 06bbd3499f083e54475b8c6fa5f1e4a7d65f32d2
2024-09-19 11:11:36 +00:00
Chris Lemaire
b6d9139cad [github] Add a 'listener' to close the current connection if the account is removed
Same as for gitlab, failed to add this in the initial fix.

#IJPL-148242 Fixed

GitOrigin-RevId: 7e195fa52a700772d9c336eef107f9f9588ea70d
2024-09-18 15:14:43 +00:00
Dmitrii Petukhov
5ca3b3705e [collab/space] IDEA-356986 Set default project for project filter
Merge-request: IJ-MR-143762
Merged-by: Dmitrii Petukhov <dmitrii.petukhov@jetbrains.com>

GitOrigin-RevId: a3bf4c249f31eced4688d0a1566d0bf25bc591f7
2024-09-17 20:18:11 +00:00
Ilya Muradyan
9f35bc136e KTNB-790: Fix gist creation for Jupyter Notebooks
Add a relevant test

GitOrigin-RevId: 481a423a37307c978032fe8dcde75e81df134074
2024-09-12 20:44:27 +00:00
Chris Lemaire
c792d53f08 [github] Add an action to generate title and description with AI
GitOrigin-RevId: f1fedd5c53cd42bc51b67426f148e7855e73121c
2024-09-11 09:19:46 +00:00
Roman Shevchenko
a5666abead [project] pruning FileChooserDescriptor overrides (IJPL-150176 prerequisite)
`BrowseFolderRunnable` and `*WithBrowseButton` family: getting rid of separate "title" and "description" parameters in favor of the chooser descriptor object, to avoid cloning the latter down the road.

GitOrigin-RevId: 33ec5968a1db953c60848974135055c288accf85
2024-09-06 11:41:43 +00:00
Mikhail Filippov
f13d92e82f IJPL-150165 switch to invoke dynamic lambdas in Kotlin
GitOrigin-RevId: 63ba45a21874cc723917982996fce1a510b2a182
2024-09-05 11:19:31 +00:00
Mikhail Filippov
bf43f2fc01 IJPL-150165 bump Kotlin language and API version
GitOrigin-RevId: a59dc8ca214a5047773fccf1cf28a1e1b07acf68
2024-08-30 22:15:55 +00:00
Chris Lemaire
541b93a2f3 [github] Reload details data on review submission (IJPL-157529)
#IJPL-157529 Fixed

GitOrigin-RevId: f7583d3b81f09229ff1a83bbf84d0ed9c55aa2d7
2024-08-22 13:01:48 +00:00
Chris Lemaire
789136b651 [github] Fix the unordered list of items causing incorrect replacement (IJPL-160209)
The list of reviewers was simply emitted, but this
caused a dumb list updating algorithm to replace some entries in the list
without checking equality.

Reason is that it wants to put selected items at the front of the list.
Now, we emit the full list with those selected items at the front,
which prevents erroneous behavior.

GitOrigin-RevId: da238eec1eebd9428cabd3692a7349ea93324047
2024-08-21 17:16:48 +00:00
Aleksey Pivovarov
0a6fd8e8f0 editor: store FileEditorManagerImpl keys in one place
GitOrigin-RevId: d16c9d1b4b4d6e3cabf484de5ffe4d97f2442c6f
2024-08-20 13:29:05 +00:00
Ilia.Shulgin
a805a51ce8 [diff] IJPL-101084 Show path relative to project root in diff window
All diff requests created via `ChangeDiffRequestProducer#createRequest` will contain `DiffUserDataKeysEx.VCS_DIFF_RIGHT_CONTENT_TITLE` allowing to show short revision and file path relative to a project root

The same applies to diffs created via `MergedChangeDiffRequestProvider`

GitOrigin-RevId: 60ecb120e8751a6a211d2917838d6403a6003dfd
2024-08-17 09:50:36 +00:00
Ilia Bogdanovich
ff9954f400 [mockito.kotlin → mockk] Migrated intellij.vcs.github tests from mockito.kotlin to mockk
GitOrigin-RevId: 32df0857285bf8d5dd7f4182bdc740eebfc2e46c
2024-08-16 12:03:55 +00:00
Chris Lemaire
06a628a1ec [github] Add missing reload for review after submitting
#IJPL-156470 Fixed

GitOrigin-RevId: 65dfa2b7cfee52abb161f1654f2ede934b859a7e
2024-08-15 13:59:01 +00:00
Gregory.Shrago
564ed357e2 migrate getData to uiDataSnapshot: content manager providers
GitOrigin-RevId: 23e01cb5d725e46abbfdcf2daf6f20436768b9d2
2024-08-03 01:54:25 +00:00
Yuriy Artamonov
68fac4e25a [icons] IJPL-60678 License all monorepo icons for plugin authors
GitOrigin-RevId: 7fa4747a995c38a5281f35aaec4031c48c7e0274
2024-07-28 12:45:33 +00:00
Alexander Lobas
932f2d438e Swap icon path parameters: move expUI path to the first place
GitOrigin-RevId: 74cf09fb454c89b676be259cdd7437a81ac4c067
2024-07-25 15:12:07 +00:00
Ivan Semenov
a94de895e6 [github] fix PR diff files validity check for renamed projects
#IJPL-73041 Fixed

GitOrigin-RevId: d47d80654f5a7b4387d94f8afaa7819145a53da8
2024-07-08 12:40:55 +00:00
Ivan Semenov
dd5d76a359 [github] signal details reload when corresponding remote branches hashes are changed
#IJPL-157530 Fixed

GitOrigin-RevId: 81eea57d5fa3e6bdb1388362f3771187d4715e87
2024-07-08 12:40:55 +00:00