Skip to content

Commit

Permalink
BaseTaskPlannerIsolated use GlimmerComponent
Browse files Browse the repository at this point in the history
  • Loading branch information
richardhjtan committed Jan 17, 2025
1 parent c0f0003 commit 71bb5ba
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion packages/experiments-realm/components/base-task-planner.gts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import {
realmURL,
CardDef,
BaseDef,
CardContext,
} from 'https://cardstack.com/base/card-api';
import { tracked } from '@glimmer/tracking';
import { TrackedMap } from 'tracked-built-ins';
Expand Down Expand Up @@ -150,9 +151,19 @@ export interface TaskCollection {
columns: TaskColumn[];
}

export interface BaseTaskPlannerIsolatedSignature {
Args: {
model: CardDef;
context?: CardContext;
};
Element: HTMLDivElement;
}

export class BaseTaskPlannerIsolated<
T extends typeof CardDef = typeof CardDef,
> extends Component<T> {
> extends GlimmerComponent<
BaseTaskPlannerIsolatedSignature & { Args: { model: InstanceType<T> } }
> {
@tracked loadingColumnKey: string | undefined;
@tracked selectedFilter: FilterType | undefined;
config: TaskPlannerConfig;
Expand Down

0 comments on commit 71bb5ba

Please sign in to comment.