Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: time of day pieces #43

Open
wants to merge 4 commits into
base: bbc-release52
Choose a base branch
from
Open

Conversation

Julusian
Copy link
Collaborator

@Julusian Julusian commented Jan 8, 2025

No description provided.

@Julusian Julusian force-pushed the feat/time-of-day-pieces branch from da6c1b5 to 9f6afb7 Compare January 8, 2025 14:49
@Julusian Julusian force-pushed the feat/time-of-day-pieces branch from 3096a98 to c01f9b8 Compare February 4, 2025 13:02
@Julusian Julusian force-pushed the feat/time-of-day-pieces branch 2 times, most recently from 43f94cd to 1e3735e Compare February 12, 2025 13:43
@Julusian Julusian force-pushed the feat/time-of-day-pieces branch from 1e3735e to 5023596 Compare February 12, 2025 14:06
@Julusian Julusian marked this pull request as ready for review February 12, 2025 14:41
Copy link
Collaborator

@mint-dewit mint-dewit left a comment

Choose a reason for hiding this comment

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

LGTM in general

@@ -221,7 +221,7 @@ export function useSelectedElements(
const computation = Tracker.nonreactive(() =>
Tracker.autorun(() => {
const piece = Pieces.findOne(selectedElement?.elementId)
const part = UIParts.findOne({ _id: piece ? piece.startPartId : selectedElement?.elementId })
const part = UIParts.findOne({ _id: piece?.startPartId ? piece.startPartId : selectedElement?.elementId })
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think this could be simplified

Suggested change
const part = UIParts.findOne({ _id: piece?.startPartId ? piece.startPartId : selectedElement?.elementId })
const part = UIParts.findOne({ _id: piece?.startPartId ?? selectedElement?.elementId })

enable: {
start: regenerateTimelineAt,
},
layer: '__timeline_regeneration_trigger__', // Some unique name, as callbacks need to be on a layer
Copy link
Collaborator

Choose a reason for hiding this comment

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

Perhaps we should collect layer names like this somewhere and document them? Although I have my doubts about anyone ever finding that documentation

}

// /** Whether and how the piece is infinite */
// lifespan: PieceLifespan
Copy link
Collaborator

Choose a reason for hiding this comment

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

Possibly to be removed?

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.

2 participants