Add tooltip documentation to plugin contributed editor tabs#1017
Add tooltip documentation to plugin contributed editor tabs#1017Daniel-ADFA merged 5 commits intostagefrom
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Pro Run ID: 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
📝 Walkthrough
Changes
Testing Recommendations
WalkthroughAdded a tooltip constant and wired long-press tooltip listeners to plugin tab views; removed verbose debug logs from plugin-tab selection logic. (20 words) Changes
Sequence Diagram(s)(Skipped — change is a localized UI enhancement and does not introduce complex multi-component control flow.) Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes Possibly related PRs
Suggested reviewers
Poem
🚥 Pre-merge checks | ✅ 1 | ❌ 2❌ Failed checks (1 warning, 1 inconclusive)
✅ Passed checks (1 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches
🧪 Generate unit tests (beta)
Tip Try Coding Plans. Let us write the prompt for your AI agent so you can ship faster (with fewer bugs). 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. Comment |
There was a problem hiding this comment.
🧹 Nitpick comments (1)
app/src/main/java/com/itsaky/androidide/activities/editor/EditorHandlerActivity.kt (1)
1113-1123: Bind the tooltip listener only to the newly created tab.At Line 1113, rebinding all plugin-tab listeners on each creation adds avoidable churn. Bind the listener once on
tab.viewfor this new tab.Refactor diff
- pluginTabIndices.forEach { - val tab = content.tabs.getTabAt(it.value) ?: return@forEach - tab.view.setOnLongClickListener { - TooltipManager.showIdeCategoryTooltip( - context = this@EditorHandlerActivity, - anchorView = tab.view, - tag = TooltipTag.PROJECT_PLUGIN_TAB, - ) - true - } - } + tab.view.setOnLongClickListener { + TooltipManager.showIdeCategoryTooltip( + context = this@EditorHandlerActivity, + anchorView = tab.view, + tag = TooltipTag.PROJECT_PLUGIN_TAB, + ) + true + }🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed. In `@app/src/main/java/com/itsaky/androidide/activities/editor/EditorHandlerActivity.kt` around lines 1113 - 1123, The current code iterates pluginTabIndices.forEach and rebinds the long-click tooltip listener for all plugin tabs each time a tab is created; instead, after creating the new tab in EditorHandlerActivity, get only that tab via content.tabs.getTabAt(newIndex) (using the index/value you just inserted into pluginTabIndices) and call setOnLongClickListener on its view to invoke TooltipManager.showIdeCategoryTooltip with TooltipTag.PROJECT_PLUGIN_TAB; remove the pluginTabIndices.forEach block and ensure you null-check the tab (?: return) and return true from the listener.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.
Nitpick comments:
In
`@app/src/main/java/com/itsaky/androidide/activities/editor/EditorHandlerActivity.kt`:
- Around line 1113-1123: The current code iterates pluginTabIndices.forEach and
rebinds the long-click tooltip listener for all plugin tabs each time a tab is
created; instead, after creating the new tab in EditorHandlerActivity, get only
that tab via content.tabs.getTabAt(newIndex) (using the index/value you just
inserted into pluginTabIndices) and call setOnLongClickListener on its view to
invoke TooltipManager.showIdeCategoryTooltip with TooltipTag.PROJECT_PLUGIN_TAB;
remove the pluginTabIndices.forEach block and ensure you null-check the tab (?:
return) and return true from the listener.
ℹ️ Review info
Configuration used: Organization UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (2)
app/src/main/java/com/itsaky/androidide/activities/editor/EditorHandlerActivity.ktidetooltips/src/main/java/com/itsaky/androidide/idetooltips/TooltipTag.kt
No description provided.