The all-in-one local AI studio for your desktop: chat, image and video generation and a coding agent in one free, open source app. Windows and Linux. No Docker, no terminal, no cloud required.
TypeScript agentai-chatai-studioall-in-onecoding-agentdesktop-appfluximage-generationlinuxllmlocal-ailocal-llmopen-sourceprivacyself-hostedstable-diffusionuncensoreduncensored-aivideo-generationwindows
feat(create): a how-to next to the music lyrics box, with a one-time dot
purple9634b11e6d2a
diff --git a/src/components/create/experimental/SpecialIntentControls.tsx b/src/components/create/experimental/SpecialIntentControls.tsxindex 92686a8b..a252f2e0 100644--- a/src/components/create/experimental/SpecialIntentControls.tsx+++ b/src/components/create/experimental/SpecialIntentControls.tsx@@ -9,7 +9,7 @@import { useCallback, useEffect, useRef, useState } from 'react'import { AnimatePresence, motion } from 'framer-motion'import {- AudioLines, Download, Film, ImagePlus, Mic, Music2, Trash2, Upload, Wand2, X,+ AudioLines, Download, Film, ImagePlus, Info, Mic, Music2, Trash2, Upload, Wand2, X,} from 'lucide-react'import { useCreateStore, type CreateIntent, type MediaRef, type GalleryItem } from '../../../stores/createStore'import { useCloudCatalogStore, cloudModelById, modelForOp } from '../../../stores/cloudCatalogStore'@@ -683,7 +683,10 @@ function MusicControls() {// the other music endpoints write their own lyrics from the prompt, so// offering the box there would be a lie.const canLyrics = cloudModelById(modelForOp('audio', 'music', cloudOpModel))?.lyrics === true+ const musicHowtoSeen = useCreateStore((s) => s.musicHowtoSeen)+ const setMusicHowtoSeen = useCreateStore((s) => s.setMusicHowtoSeen)const [lyricsOpen, setLyricsOpen] = useState(musicLyrics.length > 0)+ const [howtoOpen, setHowtoOpen] = useState(false)return (<div className="space-y-2">@@ -716,7 +719,45 @@ function MusicControls() {This model writes its own lyrics from the prompt. Pick ACE-Step 1.5 to sing yours.</span>)}+ <div className="relative">+ <button+ onClick={() => {+ setHowtoOpen((o) => !o)+ if (!musicHowtoSeen) setMusicHowtoSeen(true)+ }}+ className={cn(+ 't-control flex items-center gap-1.5 px-2.5 h-[var(--control-h-sm)] rounded-md border transition-colors',+ howtoOpen+ ? 'bg-white/[0.06] border-white/10 text-gray-200'+ : 'bg-white/[0.03] border-white/[0.06] text-gray-400 hover:text-gray-200',+ )}+ >+ <Info size={12} /> How to+ </button>+ {!musicHowtoSeen && (+ <span aria-hidden className="absolute top-0 right-0 w-1.5 h-1.5 rounded-full bg-lu-accent pointer-events-none" />+ )}+ </div></div>+ <AnimatePresence>+ {howtoOpen && (+ <motion.div+ initial={{ height: 0, opacity: 0 }}+ animate={{ height: 'auto', opacity: 1 }}+ exit={{ height: 0, opacity: 0 }}+ className="overflow-hidden"+ >+ <div className="t-control px-3 py-2 rounded-md bg-white/[0.03] border border-white/[0.06] text-gray-400 space-y-1 text-left">+ <p className="text-gray-200">Make it sing your words</p>+ <p>The prompt sets the style: comma-separated tags like slow jazz, smoky female vocals, upright bass.</p>+ <p>Only ACE-Step 1.5 sings your own lyrics. The other music models write theirs from the prompt.</p>+ <p>Structure your lines with [Verse], [Chorus] and [Bridge] markers so the model sings them. Plain lines get wrapped in a [Verse] for you.</p>+ <p>Leave the lyrics box empty for an instrumental track, and write in the language you want sung.</p>+ <p>The length slider bills per second, tracks can run up to 4 minutes.</p>+ </div>+ </motion.div>+ )}+ </AnimatePresence><AnimatePresence>{canLyrics && lyricsOpen && (<motion.divdiff --git a/src/stores/__tests__/createStore-music-howto.test.ts b/src/stores/__tests__/createStore-music-howto.test.tsnew file mode 100644index 00000000..a3455f29--- /dev/null+++ b/src/stores/__tests__/createStore-music-howto.test.ts@@ -0,0 +1,18 @@+// The music how-to dot: unseen by default, retired forever after one open.+import { readFileSync } from 'node:fs'+import { join } from 'node:path'+import { describe, it, expect } from 'vitest'+import { useCreateStore } from '../createStore'++describe('music how-to notification dot', () => {+ it('is unseen by default and retires after the first open', () => {+ expect(useCreateStore.getState().musicHowtoSeen).toBe(false)+ useCreateStore.getState().setMusicHowtoSeen(true)+ expect(useCreateStore.getState().musicHowtoSeen).toBe(true)+ })++ it('survives a reload: partialize persists the flag (source guard)', () => {+ const src = readFileSync(join(__dirname, '../createStore.ts'), 'utf8')+ expect(src).toContain('musicHowtoSeen: state.musicHowtoSeen')+ })+})diff --git a/src/stores/createStore.ts b/src/stores/createStore.tsindex b0accc90..48a64864 100644--- a/src/stores/createStore.ts+++ b/src/stores/createStore.ts@@ -234,6 +234,9 @@ interface CreateState {musicDuration: number/** Music: optional lyrics passed to models that take them. Runtime-only. */musicLyrics: string+ /** Music: the how-to note next to the lyrics box was opened once, which+ * retires its notification dot. Persisted. */+ musicHowtoSeen: boolean/** Upscale target for the cloud super-resolution endpoint. */targetResolution: '2k' | '4k' | '8k'showNegative: boolean@@ -348,6 +351,7 @@ interface CreateState {setExtendSource: (s: { jobId: string; url: string; label: string } | null) => voidsetMusicDuration: (s: number) => voidsetMusicLyrics: (l: string) => void+ setMusicHowtoSeen: (v: boolean) => voidsetSource: (img: ImageRef | null) => voidsetMask: (img: ImageRef | null) => voidsetBackend: (backend: CreateBackend) => void@@ -427,6 +431,7 @@ export const useCreateStore = create<CreateState>()(extendSource: null as { jobId: string; url: string; label: string } | null,musicDuration: 60,musicLyrics: '',+ musicHowtoSeen: false,targetResolution: '4k' as '2k' | '4k' | '8k',showNegative: false,selectedLoras: [] as { name: string; strength: number }[],@@ -646,6 +651,7 @@ export const useCreateStore = create<CreateState>()(setExtendSource: (extendSource) => set({ extendSource }),setMusicDuration: (s2) => set({ musicDuration: Math.max(5, Math.min(240, Math.floor(s2))) }),setMusicLyrics: (musicLyrics) => set({ musicLyrics: musicLyrics.slice(0, 2000) }),+ setMusicHowtoSeen: (musicHowtoSeen) => set({ musicHowtoSeen }),setSource: (source) => set({ source, sourceSetAt: source ? Date.now() : 0, ...(source ? {} : { mask: null }) }),setMask: (mask) => set({ mask }),// Flipping to local clears the intents that have no local lane@@ -737,6 +743,7 @@ export const useCreateStore = create<CreateState>()(// 2.5.8 cloud categories: only the cheap scalar prefs persist — the// staged media (blobs / object URLs) and cloudOp are runtime-only.musicDuration: state.musicDuration,+ musicHowtoSeen: state.musicHowtoSeen,triggerWord: state.triggerWord,trainSteps: state.trainSteps,}),