Skip to content

Align custom query inputs with schema reference - #25

Merged
Ulthran merged 2 commits into
mainfrom
codex/refactor-custom-query-page-layout
Aug 6, 2025
Merged

Align custom query inputs with schema reference#25
Ulthran merged 2 commits into
mainfrom
codex/refactor-custom-query-page-layout

Conversation

@Ulthran

@Ulthran Ulthran commented Aug 6, 2025

Copy link
Copy Markdown
Contributor

Summary

  • Display SQL editor, NL query form, and schema reference in a single row
  • Give input forms equal column widths and matching primary submit buttons

Testing

  • black .
  • pytest tests/test_api.py::test_index -q (fails: ModuleNotFoundError: No module named 'langchain')

https://chatgpt.com/codex/tasks/task_e_689390c8128c8323ba225f27fab5c433

Copilot AI review requested due to automatic review settings August 6, 2025 17:36

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.

Pull Request Overview

This PR reorganizes the query interface layout by aligning three components (SQL editor, natural language query form, and schema reference) into a single horizontal row with equal column widths. The changes improve visual consistency by standardizing button styling and spacing across all forms.

  • Restructured layout from nested flex containers to Bootstrap grid system with equal column widths
  • Standardized submit button styling with consistent Bootstrap classes and spacing
  • Removed excessive padding and margins for a more compact layout

Comment thread app/templates/query.html
<form class="d-flex flex-column w-100" method="POST" action="{{ url_for('query') }}">
<label class="p-2">Custom Query</label>
<input type="hidden" id="query-input" name="query" value="{{ query }}">
<div id="query-editor" class="w-100 border" style="height: 300px;"></div>

Copilot AI Aug 6, 2025

Copy link

Choose a reason for hiding this comment

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

The inline style 'height: 300px;' should be moved to a CSS class for better maintainability and consistency with other styling approaches in the template.

Suggested change
<div id="query-editor" class="w-100 border" style="height: 300px;"></div>
<div id="query-editor" class="w-100 border query-editor-height"></div>

Copilot uses AI. Check for mistakes.
Comment thread app/templates/query.html
<div id="fields-container" class="mt-3">
<ul id="fields-list" class="mb-0"></ul>
<div class="col-md-4 p-2">
<div class="d-flex flex-column">

Copilot AI Aug 6, 2025

Copy link

Choose a reason for hiding this comment

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

[nitpick] The schema reference section uses a nested div with flex classes while the other two sections use form elements directly. Consider restructuring for consistency - either wrap all sections in similar containers or remove the unnecessary nested div here.

Copilot uses AI. Check for mistakes.
@Ulthran
Ulthran merged commit 2d6d4fb into main Aug 6, 2025
1 of 6 checks passed
@Ulthran
Ulthran deleted the codex/refactor-custom-query-page-layout branch August 6, 2025 17:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants