Skip to content

Add settings for ImageVector gutter icon visibility and prompt for IDE restart#1006

Merged
egorikftp merged 1 commit into
mainfrom
feature/idea/gutter-configuration
May 29, 2026
Merged

Add settings for ImageVector gutter icon visibility and prompt for IDE restart#1006
egorikftp merged 1 commit into
mainfrom
feature/idea/gutter-configuration

Conversation

@egorikftp

@egorikftp egorikftp commented May 29, 2026

Copy link
Copy Markdown
Member
Screen.Recording.2026-05-29.at.09.23.42.mov

📝 Changelog

If this PR introduces user-facing changes, please update the relevant Unreleased section in changelogs:

@coderabbitai

coderabbitai Bot commented May 29, 2026

Copy link
Copy Markdown

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro

Run ID: 841c5a9a-0c21-4884-9554-a4c13a0f76f3

📥 Commits

Reviewing files that changed from the base of the PR and between c654ac8 and 44596c7.

📒 Files selected for processing (8)
  • tools/idea-plugin/CHANGELOG.md
  • tools/idea-plugin/src/main/kotlin/io/github/composegears/valkyrie/gutter/ImageVectorGutterProvider.kt
  • tools/idea-plugin/src/main/kotlin/io/github/composegears/valkyrie/service/PersistentSettings.kt
  • tools/idea-plugin/src/main/kotlin/io/github/composegears/valkyrie/settings/InMemorySettings.kt
  • tools/idea-plugin/src/main/kotlin/io/github/composegears/valkyrie/ui/screen/settings/SettingsViewModel.kt
  • tools/idea-plugin/src/main/kotlin/io/github/composegears/valkyrie/ui/screen/settings/model/SettingsAction.kt
  • tools/idea-plugin/src/main/kotlin/io/github/composegears/valkyrie/ui/screen/settings/tabs/preview/ImageVectorPreviewSettingsScreen.kt
  • tools/idea-plugin/src/main/resources/messages/Valkyrie.properties
✅ Files skipped from review due to trivial changes (3)
  • tools/idea-plugin/src/main/kotlin/io/github/composegears/valkyrie/ui/screen/settings/model/SettingsAction.kt
  • tools/idea-plugin/src/main/resources/messages/Valkyrie.properties
  • tools/idea-plugin/CHANGELOG.md
🚧 Files skipped from review as they are similar to previous changes (4)
  • tools/idea-plugin/src/main/kotlin/io/github/composegears/valkyrie/service/PersistentSettings.kt
  • tools/idea-plugin/src/main/kotlin/io/github/composegears/valkyrie/ui/screen/settings/SettingsViewModel.kt
  • tools/idea-plugin/src/main/kotlin/io/github/composegears/valkyrie/settings/InMemorySettings.kt
  • tools/idea-plugin/src/main/kotlin/io/github/composegears/valkyrie/ui/screen/settings/tabs/preview/ImageVectorPreviewSettingsScreen.kt

Hidden review stack artifact

Walkthrough

This PR adds a new persistent setting to control the visibility of ImageVector gutter icons in the Valkyrie IntelliJ plugin. The setting is defined in the persistent state layer, propagated through in-memory settings, exposed in the settings UI with a restart confirmation dialog, and consumed by the gutter provider to conditionally skip marker collection. Localized UI strings for the new setting and restart dialog are included, and the changelog is updated to document the feature.

🚥 Pre-merge checks | ✅ 4 | ❌ 1

❌ Failed checks (1 warning)

Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (4 passed)
Check name Status Explanation
Title check ✅ Passed The title accurately describes the main change: adding settings for ImageVector gutter icon visibility and implementing IDE restart prompts.
Description check ✅ Passed The description includes a reference to issue #1004, a demonstration video, and completes the changelog checklist by marking the IntelliJ Plugin changelog as updated.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch feature/idea/gutter-configuration

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Actionable comments posted: 1

🤖 Prompt for all review comments with AI agents
Verify each finding against current code. Fix only still-valid issues, skip the
rest with a brief reason, keep changes minimal, and validate.

Inline comments:
In
`@tools/idea-plugin/src/main/kotlin/io/github/composegears/valkyrie/ui/screen/settings/tabs/preview/ImageVectorPreviewSettingsScreen.kt`:
- Around line 74-80: The CheckboxSettingsRow for the gutter icon toggle is
calling promptRestart when toggled; remove that prompt so toggling
UpdateImageVectorGutterIcon no longer triggers an IDE restart prompt —
ImageVectorGutterProvider.collectSlowLineMarkers already reads
persistentSettings.state.showImageVectorGutterIcon so the change is picked up at
runtime. Locate the CheckboxSettingsRow (text from
"settings.imagevector.preview.ide.option.guttericon") and in its onCheckedChange
handler keep the onAction(UpdateImageVectorGutterIcon(it)) call but eliminate
the promptRestart(component) invocation (or guard it behind a different
condition if other cases still require restart).
🪄 Autofix (Beta)

Fix all unresolved CodeRabbit comments on this PR:

  • Push a commit to this branch (recommended)
  • Create a new PR with the fixes

ℹ️ Review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro

Run ID: 709088aa-d43d-4ed1-9f3a-34d80768cad7

📥 Commits

Reviewing files that changed from the base of the PR and between 285e808 and c654ac8.

📒 Files selected for processing (8)
  • tools/idea-plugin/CHANGELOG.md
  • tools/idea-plugin/src/main/kotlin/io/github/composegears/valkyrie/gutter/ImageVectorGutterProvider.kt
  • tools/idea-plugin/src/main/kotlin/io/github/composegears/valkyrie/service/PersistentSettings.kt
  • tools/idea-plugin/src/main/kotlin/io/github/composegears/valkyrie/settings/InMemorySettings.kt
  • tools/idea-plugin/src/main/kotlin/io/github/composegears/valkyrie/ui/screen/settings/SettingsViewModel.kt
  • tools/idea-plugin/src/main/kotlin/io/github/composegears/valkyrie/ui/screen/settings/model/SettingsAction.kt
  • tools/idea-plugin/src/main/kotlin/io/github/composegears/valkyrie/ui/screen/settings/tabs/preview/ImageVectorPreviewSettingsScreen.kt
  • tools/idea-plugin/src/main/resources/messages/Valkyrie.properties

@egorikftp egorikftp force-pushed the feature/idea/gutter-configuration branch from c654ac8 to 44596c7 Compare May 29, 2026 09:24
@egorikftp egorikftp merged commit 19eec39 into main May 29, 2026
3 checks passed
@egorikftp egorikftp deleted the feature/idea/gutter-configuration branch May 29, 2026 14:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant