Skip to content

Commit 22f9438

Browse files
committed
resolved merge conflicts
2 parents a5126d1 + a1a5728 commit 22f9438

File tree

7 files changed

+17
-12
lines changed

7 files changed

+17
-12
lines changed

plugins/amazonq/codetransform/jetbrains-community/src/software/aws/toolkits/jetbrains/services/codemodernizer/ArtifactHandler.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,8 @@ val patchDescriptions = mapOf(
7676
"Jenkins plugins and the Maven Wrapper.",
7777
"Miscellaneous Processing Documentation upgrade" to "This diff patch covers a diverse set of upgrades spanning ORMs, XML processing, API documentation, " +
7878
"and more.",
79-
"Deprecated API replacement and dependency upgrades" to "This diff patch replaces deprecated APIs and makes additional dependency version upgrades."
79+
"Deprecated API replacement, dependency upgrades, and formatting" to "This diff patch replaces deprecated APIs, makes additional dependency version " +
80+
"upgrades, and formats code changes."
8081
)
8182

8283
class ArtifactHandler(

plugins/amazonq/codetransform/jetbrains-community/src/software/aws/toolkits/jetbrains/services/codemodernizer/constants/CodeModernizerUIConstants.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ class CodeModernizerUIConstants {
163163
}
164164

165165
fun getGreenThemeFontColor(): Color = if (JBColor.isBright()) JBColor.GREEN.darker() else JBColor.GREEN
166-
fun getRedThemeFontColor(): Color = JBColor.RED
166+
fun getGrayThemeFontColor(): Color = JBColor.GRAY
167167
fun getLightYellowThemeBackgroundColor(): Color = JBColor.YELLOW.darker()
168168
fun getStepIcon() = if (JBColor.isBright()) AwsIcons.CodeTransform.TIMELINE_STEP_LIGHT else AwsIcons.CodeTransform.TIMELINE_STEP_DARK
169169
}

plugins/amazonq/codetransform/jetbrains-community/src/software/aws/toolkits/jetbrains/services/codemodernizer/panels/BuildProgressStepDetailsPanel.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,8 +91,8 @@ class BuildProgressStepDetailsPanel : JPanel(BorderLayout()) {
9191
// We don't show description text until step finished.
9292
when (it.status) {
9393
BuildStepStatus.DONE -> setForeground(CodeModernizerUIConstants.getGreenThemeFontColor())
94-
BuildStepStatus.ERROR -> setForeground(CodeModernizerUIConstants.getRedThemeFontColor())
95-
BuildStepStatus.WARNING -> setForeground(CodeModernizerUIConstants.getRedThemeFontColor())
94+
BuildStepStatus.ERROR -> setForeground(CodeModernizerUIConstants.getGrayThemeFontColor())
95+
BuildStepStatus.WARNING -> setForeground(CodeModernizerUIConstants.getGrayThemeFontColor())
9696
BuildStepStatus.WORKING -> text = null
9797
}
9898
}
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
// Copyright 2024 Amazon.com, Inc. or its affiliates. All Rights Reserved.
2+
// SPDX-License-Identifier: Apache-2.0
3+
4+
package software.aws.toolkits.jetbrains.core.notifications
5+
6+
object DisplayToastNotifications

plugins/core/jetbrains-community/tst/software/aws/toolkits/jetbrains/core/notifications/NotificationFormatUtilsTest.kt

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,9 @@ import io.mockk.mockkStatic
1313
import io.mockk.unmockkAll
1414
import org.assertj.core.api.Assertions.assertThat
1515
import org.junit.Rule
16-
import org.junit.jupiter.api.AfterAll
17-
import org.junit.jupiter.api.BeforeAll
16+
import org.junit.jupiter.api.AfterEach
17+
import org.junit.jupiter.api.BeforeEach
1818
import org.junit.jupiter.api.Test
19-
import org.junit.jupiter.api.TestInstance
2019
import org.junit.jupiter.api.assertDoesNotThrow
2120
import org.junit.jupiter.api.assertThrows
2221
import org.junit.jupiter.api.extension.ExtendWith
@@ -31,7 +30,6 @@ import java.nio.file.Paths
3130
import java.util.stream.Stream
3231

3332
@ExtendWith(ApplicationExtension::class)
34-
@TestInstance(TestInstance.Lifecycle.PER_CLASS)
3533
class NotificationFormatUtilsTest {
3634
@Rule
3735
@JvmField
@@ -40,7 +38,7 @@ class NotificationFormatUtilsTest {
4038
private lateinit var mockSystemDetails: SystemDetails
4139
private lateinit var exampleNotification: InputStream
4240

43-
@BeforeAll
41+
@BeforeEach
4442
fun setUp() {
4543
mockSystemDetails = SystemDetails(
4644
computeType = "Local",
@@ -68,7 +66,7 @@ class NotificationFormatUtilsTest {
6866
)
6967
}
7068

71-
@AfterAll
69+
@AfterEach
7270
fun tearDown() {
7371
unmockkAll()
7472
}

plugins/core/jetbrains-community/tst/software/aws/toolkits/jetbrains/core/notifications/NotificationFormatUtilsTestCases.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -301,7 +301,7 @@ val notificationWithValidConnectionData = NotificationData(
301301
AuthxType(
302302
feature = "q",
303303
type = NotificationExpression.AnyOfCondition(listOf("Idc", "BuilderId")),
304-
region = NotificationExpression.ComparisonCondition("us-east-1"),
304+
region = NotificationExpression.ComparisonCondition("us-west-2"),
305305
connectionState = NotificationExpression.ComparisonCondition("Connected"),
306306
ssoScopes = null
307307
)

plugins/core/resources/resources/software/aws/toolkits/resources/MessagesBundle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -612,7 +612,7 @@ codemodernizer.chat.message.hil.user_rejected=I'll continue upgrading your modul
612612
codemodernizer.chat.message.local_build_begin=I'm building your module. This can take up to 10 minutes, depending on the size of your module.
613613
codemodernizer.chat.message.local_build_failed=Sorry, I couldn't run the Maven clean install command to build your module.
614614
codemodernizer.chat.message.local_build_success=I was able to build your module and will start uploading your code.
615-
codemodernizer.chat.message.one_or_multiple_diffs=I can now divide the transformation results into diff patches (if applicable to the app) if you would like to review and accept each diff with fewer changes:\n\n\ - Minimal Compatible Library Upgrade to Java 17: Dependencies to the minimum compatible versions in Java 17, including Springboot, JUnit, and PowerMockito.\n\n\ - Popular Enterprise Specifications Application Frameworks: Popular enterprise and application frameworks like Jakarta EE, Hibernate, and Micronaut 3.\n\n\ - HTTP Client Utilities Web Frameworks: HTTP client libraries, Apache Commons utilities, and Struts frameworks.\n\n\ - Testing Tools Frameworks: Testing tools like ArchUnit, Mockito, and TestContainers and build tools like Jenkins and Maven Wrapper.\n\n\ - Miscellaneous Processing Documentation: Diverse set spanning ORMs, XML processing, and API documentation like Swagger to SpringDoc/OpenAPI.\n\n\ - Deprecated API replacement and dependency upgrades: Replaces deprecated APIs and makes additional dependency version upgrades.
615+
codemodernizer.chat.message.one_or_multiple_diffs=I can now divide the transformation results into diff patches (if applicable to the app) if you would like to review and accept each diff with fewer changes:\n\n\ - Minimal Compatible Library Upgrade to Java 17: Dependencies to the minimum compatible versions in Java 17, including Springboot, JUnit, and PowerMockito.\n\n\ - Popular Enterprise Specifications Application Frameworks: Popular enterprise and application frameworks like Jakarta EE, Hibernate, and Micronaut 3.\n\n\ - HTTP Client Utilities Web Frameworks: HTTP client libraries, Apache Commons utilities, and Struts frameworks.\n\n\ - Testing Tools Frameworks: Testing tools like ArchUnit, Mockito, and TestContainers and build tools like Jenkins and Maven Wrapper.\n\n\ - Miscellaneous Processing Documentation: Diverse set spanning ORMs, XML processing, and API documentation like Swagger to SpringDoc/OpenAPI.\n\n\ - Deprecated API replacement, dependency upgrades, and formatting: Replaces deprecated APIs, makes additional dependency version upgrades, and formats code changes.
616616
codemodernizer.chat.message.one_or_multiple_diffs_form.multiple_diffs=Multiple diffs
617617
codemodernizer.chat.message.one_or_multiple_diffs_form.one_diff=One diff
618618
codemodernizer.chat.message.one_or_multiple_diffs_form.response=Okay, I will create {0} when providing the proposed changes.

0 commit comments

Comments
 (0)