Skip to content

Conversation

@agnetemoos
Copy link
Contributor

@agnetemoos agnetemoos commented Sep 23, 2025

Link to ticket

Fixes os2display/display-api-service#309

Description

Template to show all todays BRND bookings for a sports center

@turegjorup turegjorup requested a review from tuj September 25, 2025 08:13
{
"title": "BRND sportcenter dagsprogram",
"icon": "",
"id": "01FRJPF4XATRN8PBZ35XN84PS6",
Copy link
Contributor

Choose a reason for hiding this comment

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

Important! The id of a new template should be a new ULID. This is the same as calendar template:
https://github.com/os2display/display-templates/blob/develop/src/calendar/calendar-config.json#L4

You can generate a new ULID with the following command (in API):
https://github.com/os2display/display-api-service/blob/develop/src/Command/GenerateUlid.php#L15

</ContentItemsWrapper>
<ContentItemsWrapper className="schedule-rows">
{bookings?.length > 0 &&
getSortedBookings(bookings).map((entry) => {
Copy link
Contributor

Choose a reason for hiding this comment

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

Why bind returnFragment to a variable and return it afterwards?

Suggested change
getSortedBookings(bookings).map((entry) => {
getSortedBookings(bookings).map((entry) => (
<Fragment>
</Fragment>
)

@tuj tuj added the enhancement New feature or request label Oct 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

BRND dataintegration

3 participants