Skip to content

Auto submit custom query after NLQ - #26

Merged
Ulthran merged 3 commits into
mainfrom
codex/update-custom-query-page-for-nlq
Aug 6, 2025
Merged

Auto submit custom query after NLQ#26
Ulthran merged 3 commits into
mainfrom
codex/update-custom-query-page-for-nlq

Conversation

@Ulthran

@Ulthran Ulthran commented Aug 6, 2025

Copy link
Copy Markdown
Contributor

Summary

  • Auto-submit a generated SQL query by wiring the NLQ form to fill and send the custom query form

Testing

  • black .
  • pytest tests/ (fails: ModuleNotFoundError: No module named 'marc_db')

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

Copilot AI review requested due to automatic review settings August 6, 2025 18:10

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 implements auto-submission of custom SQL queries after Natural Language Query (NLQ) processing by adding JavaScript to intercept the NLQ form submission, fetch the generated SQL, populate the custom query form, and automatically submit it.

  • Adds JavaScript to intercept NLQ form submission and auto-submit the resulting SQL query
  • Adds unique IDs to both forms to enable JavaScript targeting
  • Implements error handling for failed NLQ requests

Comment thread app/templates/query.html
Comment thread app/templates/query.html
Ulthran and others added 2 commits August 6, 2025 15:16
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@Ulthran
Ulthran merged commit 380f953 into main Aug 6, 2025
1 of 6 checks passed
@Ulthran
Ulthran deleted the codex/update-custom-query-page-for-nlq branch August 6, 2025 19:19
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