Rename 'scheduler' to 'sequencer' in App.tsx and ProjectSchedulePane.tsx
This commit is contained in:
@@ -4155,7 +4155,7 @@ export function App({ store, initialStatusMessage }: AppProps) {
|
|||||||
editorState.projectDocument.scheduler.routines[routineId] ?? null;
|
editorState.projectDocument.scheduler.routines[routineId] ?? null;
|
||||||
|
|
||||||
if (currentRoutine === null) {
|
if (currentRoutine === null) {
|
||||||
setStatusMessage("Selected schedule routine no longer exists.");
|
setStatusMessage("Selected sequencer clip no longer exists.");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -4200,7 +4200,7 @@ export function App({ store, initialStatusMessage }: AppProps) {
|
|||||||
|
|
||||||
if (targetOption === null) {
|
if (targetOption === null) {
|
||||||
setStatusMessage(
|
setStatusMessage(
|
||||||
"Author a scheduler-addressable control target before creating a schedule routine."
|
"Author a sequencer-addressable control target before creating a clip."
|
||||||
);
|
);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@@ -4233,8 +4233,8 @@ export function App({ store, initialStatusMessage }: AppProps) {
|
|||||||
|
|
||||||
applyProjectScheduler(
|
applyProjectScheduler(
|
||||||
nextScheduler,
|
nextScheduler,
|
||||||
"Create project schedule routine",
|
"Create project sequencer clip",
|
||||||
`Created schedule routine for ${targetOption.label}.`
|
`Created sequencer clip for ${targetOption.label}.`
|
||||||
);
|
);
|
||||||
setSchedulePaneOpen(true);
|
setSchedulePaneOpen(true);
|
||||||
setSelectedScheduleRoutineId(nextRoutine.id);
|
setSelectedScheduleRoutineId(nextRoutine.id);
|
||||||
@@ -4251,8 +4251,8 @@ export function App({ store, initialStatusMessage }: AppProps) {
|
|||||||
|
|
||||||
applyProjectScheduler(
|
applyProjectScheduler(
|
||||||
nextScheduler,
|
nextScheduler,
|
||||||
"Delete project schedule routine",
|
"Delete project sequencer clip",
|
||||||
"Deleted schedule routine."
|
"Deleted sequencer clip."
|
||||||
);
|
);
|
||||||
if (selectedScheduleRoutineId === routineId) {
|
if (selectedScheduleRoutineId === routineId) {
|
||||||
setSelectedScheduleRoutineId(null);
|
setSelectedScheduleRoutineId(null);
|
||||||
|
|||||||
@@ -14,16 +14,16 @@ import {
|
|||||||
type ProjectScheduler,
|
type ProjectScheduler,
|
||||||
type ProjectScheduleRoutine,
|
type ProjectScheduleRoutine,
|
||||||
type ProjectScheduleWeekday
|
type ProjectScheduleWeekday
|
||||||
} from "../scheduler/project-scheduler";
|
} from "../sequencer/project-sequencer";
|
||||||
import {
|
import {
|
||||||
getProjectScheduleEffectOptionId,
|
getProjectScheduleEffectOptionId,
|
||||||
getProjectScheduleTargetOptionForRoutine,
|
getProjectScheduleTargetOptionForRoutine,
|
||||||
listProjectScheduleEffectOptions,
|
listProjectScheduleEffectOptions,
|
||||||
type ProjectScheduleEffectOptionId,
|
type ProjectScheduleEffectOptionId,
|
||||||
type ProjectScheduleTargetOption
|
type ProjectScheduleTargetOption
|
||||||
} from "../scheduler/project-schedule-control-options";
|
} from "../sequencer/project-sequencer-control-options";
|
||||||
|
|
||||||
interface ProjectSchedulePaneProps {
|
interface ProjectSequencerPaneProps {
|
||||||
targetOptions: ProjectScheduleTargetOption[];
|
targetOptions: ProjectScheduleTargetOption[];
|
||||||
scheduler: ProjectScheduler;
|
scheduler: ProjectScheduler;
|
||||||
selectedRoutineId: string | null;
|
selectedRoutineId: string | null;
|
||||||
@@ -188,7 +188,7 @@ function groupTargetOptions(
|
|||||||
}));
|
}));
|
||||||
}
|
}
|
||||||
|
|
||||||
export function ProjectSchedulePane({
|
export function ProjectSequencerPane({
|
||||||
targetOptions,
|
targetOptions,
|
||||||
scheduler,
|
scheduler,
|
||||||
selectedRoutineId,
|
selectedRoutineId,
|
||||||
@@ -214,7 +214,7 @@ export function ProjectSchedulePane({
|
|||||||
onSetActorRoutinePath,
|
onSetActorRoutinePath,
|
||||||
onSetActorRoutinePathSpeed,
|
onSetActorRoutinePathSpeed,
|
||||||
onSetActorRoutinePathLoop
|
onSetActorRoutinePathLoop
|
||||||
}: ProjectSchedulePaneProps) {
|
}: ProjectSequencerPaneProps) {
|
||||||
const selectedRoutine =
|
const selectedRoutine =
|
||||||
selectedRoutineId === null ? null : scheduler.routines[selectedRoutineId] ?? null;
|
selectedRoutineId === null ? null : scheduler.routines[selectedRoutineId] ?? null;
|
||||||
const selectedTargetOption =
|
const selectedTargetOption =
|
||||||
@@ -253,12 +253,12 @@ export function ProjectSchedulePane({
|
|||||||
const hourTicks = Array.from({ length: HOURS_PER_DAY }, (_, hour) => hour);
|
const hourTicks = Array.from({ length: HOURS_PER_DAY }, (_, hour) => hour);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<section className="schedule-pane" data-testid="project-schedule-pane">
|
<section className="schedule-pane" data-testid="project-sequencer-pane">
|
||||||
<div className="schedule-pane__header">
|
<div className="schedule-pane__header">
|
||||||
<div>
|
<div>
|
||||||
<div className="label">Schedule</div>
|
<div className="label">Sequencer</div>
|
||||||
<div className="schedule-pane__summary">
|
<div className="schedule-pane__summary">
|
||||||
Scheduler-owned orchestration over typed control targets and global
|
Time-windowed sequencer clips over typed control targets and global
|
||||||
project time.
|
project time.
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -273,7 +273,7 @@ export function ProjectSchedulePane({
|
|||||||
)
|
)
|
||||||
}
|
}
|
||||||
>
|
>
|
||||||
Add Routine
|
Add Clip
|
||||||
</button>
|
</button>
|
||||||
<button
|
<button
|
||||||
className="toolbar__button toolbar__button--compact"
|
className="toolbar__button toolbar__button--compact"
|
||||||
@@ -300,7 +300,7 @@ export function ProjectSchedulePane({
|
|||||||
|
|
||||||
{targetOptions.length === 0 ? (
|
{targetOptions.length === 0 ? (
|
||||||
<div className="schedule-pane__empty">
|
<div className="schedule-pane__empty">
|
||||||
No scheduler-addressable control targets are authored in this
|
No sequencer-addressable control targets are authored in this
|
||||||
project yet.
|
project yet.
|
||||||
</div>
|
</div>
|
||||||
) : (
|
) : (
|
||||||
@@ -372,7 +372,7 @@ export function ProjectSchedulePane({
|
|||||||
<aside className="schedule-pane__editor">
|
<aside className="schedule-pane__editor">
|
||||||
{selectedRoutine === null || selectedTargetOption === null ? (
|
{selectedRoutine === null || selectedTargetOption === null ? (
|
||||||
<div className="schedule-pane__empty">
|
<div className="schedule-pane__empty">
|
||||||
Select a routine block or create a new schedule routine.
|
Select a clip block or create a new sequencer clip.
|
||||||
</div>
|
</div>
|
||||||
) : (
|
) : (
|
||||||
<>
|
<>
|
||||||
@@ -902,3 +902,5 @@ export function ProjectSchedulePane({
|
|||||||
</section>
|
</section>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export const ProjectSchedulePane = ProjectSequencerPane;
|
||||||
|
|||||||
Reference in New Issue
Block a user