feat: Text2SQL views (dataset/tables/examples) + chat integration, full i18n#1
Closed
dividduang wants to merge 3 commits into
Closed
feat: Text2SQL views (dataset/tables/examples) + chat integration, full i18n#1dividduang wants to merge 3 commits into
dividduang wants to merge 3 commits into
Conversation
added 3 commits
June 22, 2026 22:34
- Add text2sql page: dataset, tables, examples panes - Update chat composables and sender toolbar - Add zh-CN/en-US i18n entries for text2sql - Register text2sql route
…fig refactor - Resolve conflicts in .gitignore, use-sender-toolbar.ts, chat/index.vue - Convert Text2SQL view imports #/plugins/ai/api -> ../../api (relative, matching upstream's standalone-plugin convention; plugin has no '#' alias) - Retain all Text2SQL views (data.ts, dataset-*-pane.vue, index.vue), api, i18n, route - Adopt upstream: chat streaming rewrite, config/default-model views, runtime/ layout
Externalize all hardcoded strings in views/text2sql/* through $t() from @vben/locales; add ai.text2sqlPage.* keys to both langs/zh-CN/ai.json and langs/en-US/ai.json with full parity (57 keys resolve in both locales). No logic changes -- string externalization only. Namespace is text2sqlPage (not text2sql) to avoid colliding with the flat 'text2sql' key used by routes/index.ts for the menu title.
Member
|
Replaced by fastapi-practices/plugins#53 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Frontend for Text2SQL: a dataset management page (dataset → tables → examples panes) and a chat sender-toolbar dataset toggle that injects the
text2sql_querycapability.i18n
Every user-facing string is routed through
$t()from@vben/locales; 57 keys live underai.text2sqlPage.*with full zh-CN / en-US parity (verified programmatically — zero dangling references, zero key drift). The namespace istext2sqlPage(nottext2sql) to avoid colliding with the flattext2sqlkey already used byroutes/index.tsfor the menu title.Conventions
Follows the plugin's existing views:
vxe-table,useVbenForm,useVbenModal,Page,confirm(), loading/empty/error states. API response types are declared and match the backendschema/text2sql.py. No logic changes to chat beyond the dataset toggle.Deps
Adds
@ag-ui/core,@antdv-next/x,@antdv-next/x-markdown,@antdv-next/x-sdk(catalog + app deps).