Fix TS build errors + add UX animations and Settings save feedback#8
Draft
Copilot wants to merge 2 commits intocopilot/move-api-keys-to-env-varsfrom
Draft
Fix TS build errors + add UX animations and Settings save feedback#8Copilot wants to merge 2 commits intocopilot/move-api-keys-to-env-varsfrom
Copilot wants to merge 2 commits intocopilot/move-api-keys-to-env-varsfrom
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
Co-authored-by: Achbelsdn <191762831+Achbelsdn@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Fix TypeScript errors in Sora application
Fix TS build errors + add UX animations and Settings save feedback
Feb 25, 2026
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.
Two TypeScript errors blocked the Vercel build. Additionally, the Settings tab lacked save feedback and loading animations were basic compared to modern AI UIs.
TypeScript fixes
??/||without parentheses (TS5076):goalOverride ?? assocGoal || undefined→goalOverride ?? (assocGoal || undefined)categoriesvariable (TS6133): removed fromMarketTabCSS additions (
src/index.css)New keyframes:
blink,pulse-glow,fadeSlideIn,dotBounce,orb-rotateNew utility classes:
.animate-fade-slide-in,.animate-pulse-glow,.animate-shimmer.typing-cursor::after— blinking▋cursor viablinkanimation.dot-bounce+.dot-thinking— CSS-driven bouncing dots (no JS animation delays).glass— glassmorphism backdrop blur.btn-glow— radial gradient hover via::beforepseudo-element.status-dot.active/.status-dot.thinking— pulsing status indicatorsApp changes (
src/App.tsx)animate-pulse-glowon click and shows"Paramètres sauvegardés ✓"for 2s via asavedstate flag; added "Réinitialiser" button that resets toDEFAULTS.dot-bounce .dot-thinkingclasses (staggered via CSS:nth-childdelays)animate-pulse-glowon cards whenaStatus === 'thinking'animate-fade-slide-infor smooth entrance on each messageOriginal prompt
Contexte
L'application Sora est une interface IA avec 4 onglets :
chat,market,repos,settings. Le build Vercel échoue et l'UX est incomplète.🔴 Erreurs TypeScript à corriger (PRIORITÉ 1 — bloquent le build)
Dans
src/App.tsx:Ligne ~270 —
error TS5076: '??' and '||' operations cannot be mixed without parentheses??et||sans parenthèses et ajouter des parenthèses pour clarifier la priorité des opérateurs. Exemple : remplacera ?? b || cpar(a ?? b) || coua ?? (b || c)selon la logique voulue.Ligne ~616 —
error TS6133: 'categories' is declared but its value is never readcategoriessi elle n'est pas utilisée, ou la prefixer avec_pour indiquer qu'elle est intentionnellement inutilisée.🟡 UX/UI Améliorations (PRIORITÉ 2 — next-gen design)
1. Bouton "Sauvegarder" dans les Paramètres (Settings)
La section Settings a des champs (supabaseUrl, supabaseKey, groqKey, githubToken, tinyfishKey, scraplingKey, model, temperature, maxTokens, systemPrompt, contextWindow, ragChunks, webEnabled, scrapingEnabled, persona) mais manque d'un bouton Sauvegarder en bas de page.
Ajouter en bas de la section Settings :
var(--red), fond sombre, bordure lumineuse)2. Animations "vivantes" lors des requêtes (comme Claude/Gemini/Grok)
Actuellement les animations de chargement sont basiques. Améliorer dans
src/index.cssetsrc/App.tsx:Dans
src/index.css, ajouter ces keyframes et classes CSS :3. Indicateur de "streaming" pendant la génération de réponse
Dans
src/App.tsx, lorsque l'IA est en train de générer (isProcessing = true), afficher :fadeSlideInau lieu d'apparaître brusquement4. Améliorations visuelles globales dans
src/index.cssMaintenir la palette de couleurs existante (
--red: #8b1a1a,--bg: #f7f4ef, etc.) mais ajouter :