feat: complete AI custom tag proposals integration
- Fixed data fetching in TastingNoteForm to include suggested_custom_tags - Verified Nebius service compatibility with updated AI prompts - Cleaned up artifacts and implementation plan
This commit is contained in:
@@ -47,13 +47,16 @@ export default function TastingNoteForm({ bottleId, sessionId }: TastingNoteForm
|
|||||||
// Fetch Bottle Suggestions
|
// Fetch Bottle Suggestions
|
||||||
const { data: bottleData } = await supabase
|
const { data: bottleData } = await supabase
|
||||||
.from('bottles')
|
.from('bottles')
|
||||||
.select('suggested_tags')
|
.select('suggested_tags, suggested_custom_tags')
|
||||||
.eq('id', bottleId)
|
.eq('id', bottleId)
|
||||||
.maybeSingle();
|
.maybeSingle();
|
||||||
|
|
||||||
if (bottleData?.suggested_tags) {
|
if (bottleData?.suggested_tags) {
|
||||||
setSuggestedTags(bottleData.suggested_tags);
|
setSuggestedTags(bottleData.suggested_tags);
|
||||||
}
|
}
|
||||||
|
if (bottleData?.suggested_custom_tags) {
|
||||||
|
setSuggestedCustomTags(bottleData.suggested_custom_tags);
|
||||||
|
}
|
||||||
|
|
||||||
// If Session ID, fetch session participants and pre-select them
|
// If Session ID, fetch session participants and pre-select them
|
||||||
if (effectiveSessionId) {
|
if (effectiveSessionId) {
|
||||||
|
|||||||
Reference in New Issue
Block a user