Skip to content

fix: use shared "AQL: Extensions" panel for inherited queries - #178

Open
ryanwelcher wants to merge 1 commit into
trunkfrom
fix/inherited-extensions-panel
Open

fix: use shared "AQL: Extensions" panel for inherited queries#178
ryanwelcher wants to merge 1 commit into
trunkfrom
fix/inherited-extensions-panel

Conversation

@ryanwelcher

Copy link
Copy Markdown
Owner

Fixes #177

Summary

  • Extract a single ExtensionsPanel component (a PanelBody titled "AQL: Extensions" that renders nothing when no fills are registered) and use it in both the custom and inherited branches of src/variations/controls.js.
  • Inherited queries no longer render an always-visible, empty "Advanced Query Settings" panel. AQLControlsInheritedQuery fills now render in the trailing "AQL: Extensions" panel after "AQL: Order by" and "AQL: Advanced", matching custom queries.
  • Update CLAUDE.md, extending-aql.md, and the 5.0.0 changelog in readme.txt.

Test plan

  • Insert an AQL block with Inherit query from template enabled and no extensions active: no "Advanced Query Settings" or "AQL: Extensions" panel appears.
  • Register an AQLControlsInheritedQuery fill: an "AQL: Extensions" panel appears last, after "AQL: Advanced".
  • Disable inherit and register an AQLControls fill: the trailing "AQL: Extensions" panel behaves as before.
  • npm run lint:js and npm run build pass.

🤖 Generated with Claude Code

https://claude.ai/code/session_018hshEoBHWTf326ViYno6g2

Inherited queries always rendered an empty "Advanced Query Settings"
panel ahead of the built-in panels. Extract a single ExtensionsPanel
used by both branches so extensions render in the same trailing
"AQL: Extensions" panel, only when a fill is registered.

Fixes #177

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_018hshEoBHWTf326ViYno6g2

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🟢 Approval recommended

The change is a small, low-risk UI refactor that matches the documented expected behavior and removes an always-visible empty panel without altering query logic.

Pull request overview

This PR fixes the inherited-query editor UX for Advanced Query Loop by consolidating third‑party SlotFill rendering into the same conditional trailing “AQL: Extensions” panel used for non-inherited queries, eliminating an always-visible empty panel.

Changes:

  • Extracts a shared ExtensionsPanel component that renders only when SlotFills exist, and reuses it for both inherited and non-inherited query modes.
  • Removes the inherited-mode “Advanced Query Settings” wrapper panel and relocates AQLControlsInheritedQuery fills to the trailing “AQL: Extensions” panel.
  • Updates developer/docs references and the 5.0.0 changelog entry to match the new panel behavior.
File summaries
File Description
src/variations/controls.js Adds shared ExtensionsPanel and uses it for both inherited and non-inherited SlotFill rendering, removing the empty inherited panel.
readme.txt Notes the inherited-query UI change in the 5.0.0 changelog.
extending-aql.md Updates extension documentation to reflect the shared trailing “AQL: Extensions” panel behavior.
CLAUDE.md Updates architecture documentation to reflect the inherited-query extensions panel behavior.
Review details
  • Files reviewed: 4/4 changed files
  • Comments generated: 0
  • Review effort level: Lite

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

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.

Inherited queries show an empty "Advanced Query Settings" panel and place extensions differently than custom queries

2 participants