updated chip
input type in MockDreams
: replaced description
with text
, adjusted Dream
type, and extended UI components for consistent rendering across DreamPage
and DreamCard
Signed-off-by: Matthias Puchstein <matthias@puchstein.bayern>
This commit is contained in:
@@ -48,7 +48,8 @@ export default function DreamCard({dream, user, animationDelay = 0}: DreamCardPr
|
|||||||
<p className="mt-2 line-clamp-2 text-left" style={getTextStyle()}>
|
<p className="mt-2 line-clamp-2 text-left" style={getTextStyle()}>
|
||||||
{(dream.input.inputType === 'text' && dream.input.input)
|
{(dream.input.inputType === 'text' && dream.input.input)
|
||||||
|| (dream.input.inputType === 'audio' && dream.input.transcript)
|
|| (dream.input.inputType === 'audio' && dream.input.transcript)
|
||||||
|| (dream.input.inputType === 'image' && dream.input.description)}
|
|| (dream.input.inputType === 'image' && dream.input.description)
|
||||||
|
|| (dream.input.inputType === 'chip' && dream.input.text)}
|
||||||
</p>
|
</p>
|
||||||
<div className="flex justify-between items-center mt-4">
|
<div className="flex justify-between items-center mt-4">
|
||||||
<p className="timestamp text-left" style={getTextStyle('muted')}>
|
<p className="timestamp text-left" style={getTextStyle('muted')}>
|
||||||
|
@@ -128,8 +128,8 @@ export const mockDreams: Dream[] = [
|
|||||||
date: new Date('2025-07-17T05:28:57Z'),
|
date: new Date('2025-07-17T05:28:57Z'),
|
||||||
tags: ['KI', 'Bewusstsein', 'Kontrolle'],
|
tags: ['KI', 'Bewusstsein', 'Kontrolle'],
|
||||||
input: {
|
input: {
|
||||||
inputType: "chip",
|
inputType: 'chip',
|
||||||
description: 'Du hast von einem riesigen neuronalen Netzwerk, wo Gedanken als leuchtende Impulse zwischen synaptischen Verbindungen tanzten, geträumt.',
|
text: 'Du hast von einem riesigen neuronalen Netzwerk, wo Gedanken als leuchtende Impulse zwischen synaptischen Verbindungen tanzten, geträumt.',
|
||||||
eeg: {
|
eeg: {
|
||||||
alpha: [
|
alpha: [
|
||||||
21.49, 19.59, 21.94, 24.57, 19.30, 19.30, 24.74, 22.30, 18.59, 21.63,
|
21.49, 19.59, 21.94, 24.57, 19.30, 19.30, 24.74, 22.30, 18.59, 21.63,
|
||||||
|
@@ -70,7 +70,10 @@ export default function DreamPage() {
|
|||||||
{dream.input.inputType === 'image' && (<img alt={dream.input.imgAlt}></img>)}
|
{dream.input.inputType === 'image' && (<img alt={dream.input.imgAlt}></img>)}
|
||||||
</div>)}
|
</div>)}
|
||||||
<p className="leading-relaxed text-base sm:text-lg">
|
<p className="leading-relaxed text-base sm:text-lg">
|
||||||
{(dream.input.inputType === 'text' && dream.input.input) || (dream.input.inputType === 'audio' && dream.input.transcript) || (dream.input.inputType === 'image' && dream.input.description)}
|
{(dream.input.inputType === 'text' && dream.input.input)
|
||||||
|
|| (dream.input.inputType === 'audio' && dream.input.transcript)
|
||||||
|
|| (dream.input.inputType === 'image' && dream.input.description)
|
||||||
|
|| (dream.input.inputType === 'chip' && dream.input.text)}
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
@@ -18,7 +18,7 @@ export type AudioInput = {
|
|||||||
|
|
||||||
export type ChipInput = {
|
export type ChipInput = {
|
||||||
inputType: "chip";
|
inputType: "chip";
|
||||||
description: string;
|
text: string;
|
||||||
eeg: {
|
eeg: {
|
||||||
alpha: number[];
|
alpha: number[];
|
||||||
beta: number[];
|
beta: number[];
|
||||||
|
Reference in New Issue
Block a user