---
type: note
tags: [mine, new requirement, timecode, lovable]
created: 2025-10-27T09:17:57.483Z
---# Timecode card type

🆕 Card Type: timecode
🧩 Shared Schema Integration
This card type inherits the following shared columns:

Shared Column	Purpose
url	Stores the source video link (e.g., YouTube, Vimeo).
label	Optional short label/title for the timecode segment.
content	Freeform description or note (max 400 words).
🔧 Additional Fields (Specific to timecode)
Field	Type	Description
in_point	number	Start time in seconds (parsed from URL or manually entered).
out_point	number	End time in seconds (same format as in_point).
🧠 Parsing Logic
Accept URLs like https://youtu.be/AJf8LEXXDsA?t=250.

Extract time from ?t= or &t= and convert to seconds.

Store raw seconds in in_point or out_point.

Display both:

Raw seconds (e.g., 250)

Formatted time:

MM:SS if under 1 hour

HH:MM:SS if 1 hour or more

Hide HH: when not needed

🖼️ Display View
Show:

label (if present)

url as clickable link

in_point and out_point in both formats: 250s (04:10)

content (truncated if needed)

Optional: Embed video preview or thumbnail

📝 Description Field (content)
Max length: 400 words

UX suggestion:

Truncate with “Read more” toggle

Consider reducing to 250–300 words if inline display is preferred


---
**Keywords:** mine, new requirement, timecode, lovable
