feat(chat): enhance chat functionality with song integration and UI improvements

- Updated ChatHeader and ChatMessage components to support song selection and display.
- Enhanced useContentPanel to handle both film and song content, allowing for richer interactions.
- Improved FilmCard and added SongCard components for better media representation.
- Refactored environment variables for better configuration management.
- Updated .gitignore to include development chat history.

Made-with: Cursor
This commit is contained in:
Dorian
2026-03-02 18:16:04 +00:00
parent 6f79f0860d
commit 80aeefa4bf
27 changed files with 1751 additions and 143 deletions
+106
View File
@@ -0,0 +1,106 @@
import type { Song } from '@aiui/core/types/content'
export const mockSongs: Song[] = [
{
id: 's1',
title: 'Never Meant',
artist: 'American Football',
album: 'American Football',
year: 1999,
coverUrl: undefined,
duration: 269,
genres: ['Math Rock', 'Emo', 'Indie'],
sources: [
{ type: 'spotify', name: 'Spotify', url: 'https://open.spotify.com/track/example', icon: 'spotify' },
{ type: 'youtube', name: 'YouTube', url: 'https://youtube.com/watch?v=example', icon: 'youtube' },
],
},
{
id: 's2',
title: 'The Kill',
artist: 'Toe',
album: 'The Book About My Idle Plot on a Vague Anxiety',
year: 2005,
coverUrl: undefined,
duration: 248,
genres: ['Math Rock', 'Post-Rock'],
sources: [{ type: 'spotify', name: 'Spotify', url: 'https://open.spotify.com/track/example2', icon: 'spotify' }],
},
{
id: 's3',
title: 'Caraphernelia',
artist: 'Pierce the Veil',
album: 'Selfish Machines',
year: 2010,
coverUrl: undefined,
duration: 234,
genres: ['Post-Hardcore', 'Math Rock'],
sources: [{ type: 'spotify', name: 'Spotify', url: 'https://open.spotify.com/track/example3', icon: 'spotify' }],
},
{
id: 's4',
title: 'Ghosts',
artist: 'Clever Girl',
album: 'No Drum and Bass in the Jazz Room',
year: 2016,
coverUrl: undefined,
duration: 312,
genres: ['Math Rock', 'Instrumental'],
sources: [{ type: 'spotify', name: 'Spotify', url: 'https://open.spotify.com/track/example4', icon: 'spotify' }],
},
{
id: 's5',
title: 'pon ponpon',
artist: 'TTNG',
album: 'Animals',
year: 2008,
coverUrl: undefined,
duration: 198,
genres: ['Math Rock', 'Indie'],
sources: [{ type: 'spotify', name: 'Spotify', url: 'https://open.spotify.com/track/example5', icon: 'spotify' }],
},
{
id: 's6',
title: 'Kié la, tricotées',
artist: 'Battles',
album: 'Mirrored',
year: 2007,
coverUrl: undefined,
duration: 427,
genres: ['Math Rock', 'Experimental'],
sources: [{ type: 'spotify', name: 'Spotify', url: 'https://open.spotify.com/track/example6', icon: 'spotify' }],
},
{
id: 's7',
title: 'Delivering the Groceries at 138 Beats Per Minute',
artist: 'Don Caballero',
album: 'American Don',
year: 2000,
coverUrl: undefined,
duration: 334,
genres: ['Math Rock', 'Instrumental'],
sources: [{ type: 'bandcamp', name: 'Bandcamp', url: 'https://doncaballero.bandcamp.com', icon: 'bandcamp' }],
},
{
id: 's8',
title: 'Frozen Zoo',
artist: 'Tera Melos',
album: 'Untitled',
year: 2005,
coverUrl: undefined,
duration: 189,
genres: ['Math Rock', 'Noise Rock'],
sources: [{ type: 'spotify', name: 'Spotify', url: 'https://open.spotify.com/track/example8', icon: 'spotify' }],
},
{
id: 's9',
title: 'Solid Ground',
artist: 'Maps & Atlases',
album: 'Trees, Swallows, Houses',
year: 2006,
coverUrl: undefined,
duration: 256,
genres: ['Math Rock', 'Indie'],
sources: [{ type: 'spotify', name: 'Spotify', url: 'https://open.spotify.com/track/example9', icon: 'spotify' }],
},
]