-
-
Notifications
You must be signed in to change notification settings - Fork 39
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improve UI #240
Improve UI #240
Conversation
Also update the org.jetbrains.intellij plugin
Also add min supported version to verifier to ensure compat
@arturbosch can you approve the workflow to run? |
Wow, screenshots look really good. |
I have some minor tweaks to do to the v2 side of things after talking to folks on how to improve a couple of things, but should be pretty minor. I can get rid of a hack |
I'll review what's wrong with the CI shortly |
@arturbosch as expected tests are red, but unfortunately I can't see what failed because the test results output is not archived. Have you considered something like this? |
src/main/kotlin/io/gitlab/arturbosch/detekt/idea/ConfiguredService.kt
Outdated
Show resolved
Hide resolved
src/main/kotlin/io/gitlab/arturbosch/detekt/idea/config/ui/LegacyDetektConfigUiProvider.kt
Show resolved
Hide resolved
src/main/kotlin/io/gitlab/arturbosch/detekt/idea/util/PluginUtils.kt
Outdated
Show resolved
Hide resolved
src/main/kotlin/io/gitlab/arturbosch/detekt/idea/util/ProjectUtils.kt
Outdated
Show resolved
Hide resolved
I can confirm. Reverting the intellij plugin to 1.6.0 works. |
Please take a look at the attached video. It seems that resizing is a bit off for the page now for the lists |
This didn't work for me, but downgrading Gradle to 7.4.2 did the trick :) Will be pushing soon. EDIT: I had to downgrade both in the end :) |
As for the apply/reset button: yeah there's something that's missing there. Let me look into it. I'll push the rest of the fixes in the meantime. |
Yeah the minimum width is enforced by the UI DSL/list component itself, not something I have set. It looks like it's a bug with the DSL itself as this other page is also done with the DSL and exhibits the same behaviour: The page you were comparing to is not using the DSL, so it doesn't have the same issue. |
Can we somehow move the title just above the list like in this screenshot (Manage standalone scripts)? |
I asked my colleague who works on the DSL if there's a fix for this — you can see the Swagger settings have the same issue without having a label on the side :) |
FYI I tested without a label on the side and it makes no difference, it's definitely a DSL bug. |
👍🏼 ping me to test the apply changes and it's ready to merge (release) |
I think I fixed the apply/reset issues. I've tested on 22.1, need to test on 20.3 too but it should be ok. |
works now 👍🏼 Thanks for the awesome work! Please see my last comment and we are rdy to merge. |
I did test on 20.3 as part of the last few bugfixes. I'm pretty happy with how this turned out :) Will get the last thing done as soon as I have 5 min later today |
All done :) |
:partyparrot: |
This PR implements an all-new UI for the plugin configuration and solves a number of issues.
The new UI is created using the Kotlin UI DSL; since our minimum supported version is 2020.3, I needed to implement the UI twice, both in the v1 and v2 DSL, for IJ < 21.3 and >= 21.3 respectively. The UIs are almost indistinguishable from each other from a user's perspective (but this required some hacking around on both DSLs).
I have added explanations (with links to detekt.dev) for the file-related settings, and made it possible to have multiple config files and plugins, with a decent UI. The paths are also treated system-independently and thus they are correctly relativized by the IDE in the settings xml file.
The settings file has changed in format, and there is a best-effort attempt at migrating from the old to the new settings format.
Closes #231
Closes #135
Closes #117