Repository navigation
fix: give the diff AI each change with its values, and translate the diff summary - #16
Merged
Merged
Conversation
…diff summary "Analyze with AI" sent "changed fields: email" without the old and new type or nullability, no type for added fields and no definition for added tables, so the model answered that the diff lacked details. It now gets every change as old -> new, added and removed relationships and indexes, and the whole new schema. The summary banner and toast use the interface strings instead of the toolkit's English sentence. Refs #15
The summary now reads "Added Tables: 1", so /Added Tables/ also matched the banner and the toast. Refs #15
|
🎉 This PR is included in version 2.1.3 🎉 The release is available on: Your semantic-release bot 📦🚀 |
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.
Closes #15
Found in production with a real model: comparing the Analytics Dashboard example with a version where
users.emailbecameVARCHAR(320) NOT NULL,widgetswas dropped andalertsadded, the AI answered that "the diff lacks details needed to fully judge the email change and the new alerts table".type VARCHAR(255) -> VARCHAR(320); nullable true -> false, added/removed relationships and indexes, and includes the whole new schema (schemaToPromptContext); the current one is already in the system prompt.Tables ajoutées : 1 · …) instead of the toolkit's English sentence.Checks: lint, typecheck, app 127 tests (1 new).