Skip to content

Conversation

@Will-ShaoHua
Copy link
Contributor

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)

Description

Checklist

  • My code follows the code style of this project
  • I have added tests to cover my changes
  • A short description of the change has been added to the CHANGELOG if the change is customer-facing in the IDE.
  • I have added metrics for my changes (if required)

License

I confirm that my contribution is made under the terms of the Apache 2.0 license.

@Will-ShaoHua Will-ShaoHua requested review from a team as code owners April 10, 2025 08:30
@Will-ShaoHua Will-ShaoHua mentioned this pull request Apr 10, 2025
// TODO: design and improve the API here

prepareUi(state: BrowserSetupData) {
prepareUi(state: any) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

?


private fun handleListProfilesMessage() {
ApplicationManager.getApplication().executeOnPooledThread {
var errorMessage: String = ""
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
var errorMessage: String = ""
var errorMessage = ""

@Will-ShaoHua Will-ShaoHua changed the title profile loading ux fix(amazonq): confusing message during loading profiles Apr 10, 2025
Comment on lines +290 to +301
{
stage: '$stage',
regions: $regions,
idcInfo: {
profileName: '${lastLoginIdcInfo.profileName}',
startUrl: '${lastLoginIdcInfo.startUrl}',
region: '${lastLoginIdcInfo.region}'
},
cancellable: ${state.browserCancellable},
feature: '${state.feature}',
existConnections: ${writeValueAsString(selectionSettings.values.map { it.currentSelection }.toList())},
}
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

want to make all these messages from ide to webview typesafe as well, future work

Comment on lines +351 to +356
{
stage: 'PROFILE_SELECT',
status: '${if (profiles != null) "succeeded" else "failed"}',
profiles: ${writeValueAsString(profiles ?: "")},
errorMessage: '$errorMessage'
}
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ideally should polymorphism but haven't got enough time to figure it out

@rli rli merged commit 330f565 into aws:main Apr 10, 2025
3 of 11 checks passed
@Will-ShaoHua Will-ShaoHua deleted the fix-v2 branch April 10, 2025 18:23
Will-ShaoHua added a commit to Will-ShaoHua/aws-toolkit-jetbrains that referenced this pull request Apr 10, 2025
rli added a commit that referenced this pull request Apr 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants