Skip to content

Commit 92afa1e

Browse files
committed
plugin: rename isInboxProject -> inboxProject
This changed in the API and was missed
1 parent 487574b commit 92afa1e

File tree

7 files changed

+9
-9
lines changed

7 files changed

+9
-9
lines changed

plugin/src/api/domain/project.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@ export type Project = {
55
parentId: ProjectId | null;
66
name: string;
77
order: number;
8-
isInboxProject: boolean;
8+
inboxProject: boolean;
99
color: string;
1010
};

plugin/src/data/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ const makeUnknownProject = (id: string): Project => {
170170
parentId: null,
171171
name: "Unknown Project",
172172
order: Number.MAX_SAFE_INTEGER,
173-
isInboxProject: false,
173+
inboxProject: false,
174174
color: "grey",
175175
};
176176
};

plugin/src/data/transformations/grouping.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ function makeProject(id: string, opts?: Partial<Project>): Project {
4747
parentId: opts?.parentId ?? null,
4848
name: opts?.name ?? "Project",
4949
order: opts?.order ?? 1,
50-
isInboxProject: false,
50+
inboxProject: false,
5151
color: "grey",
5252
};
5353
}

plugin/src/data/transformations/relationships.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ function makeTask(id: string, opts?: Partial<Task>): Task {
1919
name: "Foobar",
2020
order: 1,
2121
parentId: null,
22-
isInboxProject: false,
22+
inboxProject: false,
2323
color: "grey",
2424
},
2525
section: opts?.section,

plugin/src/data/transformations/sorting.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ function makeTask(id: string, opts?: Partial<Task>): Task {
2020
name: "Foobar",
2121
order: 1,
2222
parentId: null,
23-
isInboxProject: false,
23+
inboxProject: false,
2424
color: "grey",
2525
},
2626
section: opts?.section,

plugin/src/ui/createTaskModal/ProjectSelector.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ const SectionLabel: React.FC<{ section: Section }> = ({ section }) => {
225225
};
226226

227227
const ProjectLabel: React.FC<{ project: Project }> = ({ project }) => {
228-
const projectIcon = project.isInboxProject ? "inbox" : "hash";
228+
const projectIcon = project.inboxProject ? "inbox" : "hash";
229229

230230
return (
231231
<>
@@ -337,11 +337,11 @@ function buildProjectHierarchy(plugin: TodoistPlugin): ProjectHeirarchy {
337337

338338
// Sort roots, forcing the inbox to be first.
339339
roots.sort((a, b) => {
340-
if (a.project.isInboxProject) {
340+
if (a.project.inboxProject) {
341341
return -1;
342342
}
343343

344-
if (b.project.isInboxProject) {
344+
if (b.project.inboxProject) {
345345
return 1;
346346
}
347347

plugin/src/ui/createTaskModal/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ const getDefaultProject = (plugin: TodoistPlugin): ProjectIdentifier => {
211211
const projects = Array.from(todoist.data().projects.iter());
212212

213213
for (const project of projects) {
214-
if (project.isInboxProject) {
214+
if (project.inboxProject) {
215215
return {
216216
projectId: project.id,
217217
};

0 commit comments

Comments
 (0)