Skip to content

Conversation

@umbobabo
Copy link
Contributor

@umbobabo umbobabo commented Sep 22, 2025

Create a timeline and timeline-event nodes so we can move timeline name out of the Layout node. We want to move away from experimental tags that requires to discontinue the usage of Layouts from the bodyXML.

@umbobabo umbobabo requested review from a team as code owners September 22, 2025 14:22
README.md Outdated
### Timeline

```ts
type TimelineLayoutWidth = Extract<LayoutWidth, "full-width" | "inset-left">
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@todor-videv1 I would like to avoid the empty string here, we can perhaps fix old content with the full-width value and keep this strict.

@umbobabo umbobabo force-pushed the CI-3097 branch 2 times, most recently from 7943d0e to d0fcdee Compare September 23, 2025 11:34
}
interface TimelineEvent extends Parent {
type: "timeline-event";
dateLabel: string;
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agreed with @adgad

Suggested change
dateLabel: string;
title: string;

interface TimelineEvent extends Parent {
type: "timeline-event";
dateLabel: string;
children: Paragraph[];
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agreed with @adgad to support ImageSet as child here

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

type: "timeline-event"
/** The title of the event */
title: string
children: (Paragraph | ImageSet)[]
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@adgad @nadiasuleyman @todor-videv1 This would be more accurate. Same for L783

Suggested change
children: (Paragraph | ImageSet)[]
/** At least one Paragraph or one ImageSet should be provided **/
children: [Paragraph | ImageSet, ...(Paragraph | ImageSet)[]];

title: string
/** The layout width for the timeline */
layoutWidth: TimelineLayoutWidth
children: TimelineEvent[]
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See below comment

Suggested change
children: TimelineEvent[]
/** Must contain at least one TimelineEvent */
children: [TimelineEvent, ...TimelineEvent[]];

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants