Fix inaccessible QGIS settings actions on short screens - #124
Fix inaccessible QGIS settings actions on short screens#124joao-jtjsoftware wants to merge 2 commits into
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: ASSERTIVE Plan: Pro Plus Run ID: 📒 Files selected for processing (2)
📝 WalkthroughWalkthroughThe settings dock wraps the Dependencies and Model tabs in scroll areas. Footer actions remain outside the Model scroll area. Floating docks now fit within the active screen’s available geometry. Regression tests cover both behaviors. ChangesSettings dock layout
Estimated code review effort: 3 (Moderate) | ~20 minutes Suggested reviewers: Poem
🚥 Pre-merge checks | ✅ 5✅ Passed checks (5 passed)
✨ Finishing Touches🧪 Generate unit tests (beta)
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.
Actionable comments posted: 2
🤖 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 `@qgis_geoagent/open_geoagent/dialogs/settings_dock.py`:
- Around line 445-455: Update the dock geometry logic around frameGeometry() so
the client width and height account for the native window-frame extents before
positioning: derive the frame margins, reduce the available client dimensions
accordingly, and resize before applying x/y clamps. Preserve the existing
on-screen positioning behavior, and add a regression test using available
geometry close to both dock dimensions to verify the entire floating dock
remains visible.
In `@qgis_geoagent/tests/test_settings_layout.py`:
- Around line 35-38: Update the regression test around
dock._fit_floating_dock_to_screen() to exercise the production showEvent() path:
show the floating dock, then call app.processEvents() so the queued fit callback
runs before geometry assertions. Remove the direct private-helper call unless
the test explicitly needs it for a separate case.
🪄 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: Organization UI
Review profile: ASSERTIVE
Plan: Pro Plus
Run ID: caa2bb03-8dbc-41b2-8cc2-6a2e576f6a0b
📒 Files selected for processing (2)
qgis_geoagent/open_geoagent/dialogs/settings_dock.pyqgis_geoagent/tests/test_settings_layout.py
Summary
Fixes #115.
Testing
Summary by CodeRabbit
Bug Fixes
Tests