pages.slice(0, -1));
+ setPlaceholder("Type a command or search...");
+ }
+ }}
>
- {issueDetails && (
-
- {projectDetails?.identifier}-{issueDetails.sequence_id} {issueDetails.name}
-
- )}
- {projectId && (
-
-
-
setIsWorkspaceLevel((prevData) => !prevData)}
- className="flex-shrink-0"
- >
- Workspace Level
-
-
setIsWorkspaceLevel((prevData) => !prevData)}
- />
+
+ {issueDetails && (
+
+ {projectDetails?.identifier}-{issueDetails.sequence_id} {issueDetails.name}
-
- )}
-
-
-
- setSearchTerm(e)}
- autoFocus
- tabIndex={1}
- />
-
+ )}
+ {projectId && (
+
+
+ setIsWorkspaceLevel((prevData) => !prevData)}
+ className="flex-shrink-0"
+ >
+ Workspace Level
+
+ setIsWorkspaceLevel((prevData) => !prevData)}
+ />
+
+
+ )}
+
+
+
+ setSearchTerm(e)}
+ autoFocus
+ tabIndex={1}
+ />
+
-
- {searchTerm !== "" && (
-
- Search results for{" "}
-
- {'"'}
- {searchTerm}
- {'"'}
- {" "}
- in {!projectId || isWorkspaceLevel ? "workspace" : "project"}:
-
- )}
+
+ {searchTerm !== "" && (
+
+ Search results for{" "}
+
+ {'"'}
+ {searchTerm}
+ {'"'}
+ {" "}
+ in {!projectId || isWorkspaceLevel ? "workspace" : "project"}:
+
+ )}
- {!isLoading && resultsCount === 0 && searchTerm !== "" && debouncedSearchTerm !== "" && (
- No results found.
- )}
+ {!isLoading && resultsCount === 0 && searchTerm !== "" && debouncedSearchTerm !== "" && (
+ No results found.
+ )}
- {(isLoading || isSearching) && (
-
-
-
-
-
-
-
-
- )}
+ {(isLoading || isSearching) && (
+
+
+
+
+
+
+
+
+ )}
- {debouncedSearchTerm !== "" && (
-
- )}
+ {debouncedSearchTerm !== "" && (
+
+ )}
- {!page && (
- <>
- {/* issue actions */}
- {issueId && (
- setPages(newPages)}
- setPlaceholder={(newPlaceholder) => setPlaceholder(newPlaceholder)}
- setSearchTerm={(newSearchTerm) => setSearchTerm(newSearchTerm)}
- />
- )}
-
- {
- closePalette();
- setTrackElement("Command Palette");
- toggleCreateIssueModal(true);
- }}
- className="focus:bg-custom-background-80"
- >
-
-
- Create new issue
-
- C
-
-
-
- {workspaceSlug && (
-
+ {!page && (
+ <>
+ {/* issue actions */}
+ {issueId && (
+ setPages(newPages)}
+ setPlaceholder={(newPlaceholder) => setPlaceholder(newPlaceholder)}
+ setSearchTerm={(newSearchTerm) => setSearchTerm(newSearchTerm)}
+ />
+ )}
+
{
closePalette();
- setTrackElement("Command palette");
- toggleCreateProjectModal(true);
+ setTrackElement("Command Palette");
+ toggleCreateIssueModal(true);
+ }}
+ className="focus:bg-custom-background-80"
+ >
+
+
+ Create new issue
+
+ C
+
+
+
+ {workspaceSlug && (
+
+ {
+ closePalette();
+ setTrackElement("Command palette");
+ toggleCreateProjectModal(true);
+ }}
+ className="focus:outline-none"
+ >
+
+
+ Create new project
+
+ P
+
+
+ )}
+
+ {/* project actions */}
+ {projectId && }
+
+
+ {
+ setPlaceholder("Search workspace settings...");
+ setSearchTerm("");
+ setPages([...pages, "settings"]);
}}
className="focus:outline-none"
>
-
- Create new project
+
+ Search settings...
+
+
+
+
+
+
+
+ Create new workspace
+
+
+ {
+ setPlaceholder("Change interface theme...");
+ setSearchTerm("");
+ setPages([...pages, "change-interface-theme"]);
+ }}
+ className="focus:outline-none"
+ >
+
+
+ Change interface theme...
- P
- )}
- {/* project actions */}
- {projectId && }
+ {/* help options */}
+
+ >
+ )}
-
- {
- setPlaceholder("Search workspace settings...");
- setSearchTerm("");
- setPages([...pages, "settings"]);
- }}
- className="focus:outline-none"
- >
-
-
- Search settings...
-
-
-
-
-
-
-
- Create new workspace
-
-
- {
- setPlaceholder("Change interface theme...");
- setSearchTerm("");
- setPages([...pages, "change-interface-theme"]);
- }}
- className="focus:outline-none"
- >
-
-
- Change interface theme...
-
-
-
+ {/* workspace settings actions */}
+ {page === "settings" && workspaceSlug && (
+
+ )}
- {/* help options */}
-
- >
- )}
+ {/* issue details page actions */}
+ {page === "change-issue-state" && issueDetails && (
+
+ )}
+ {page === "change-issue-priority" && issueDetails && (
+
+ )}
+ {page === "change-issue-assignee" && issueDetails && (
+
+ )}
- {/* workspace settings actions */}
- {page === "settings" && workspaceSlug && (
-
- )}
-
- {/* issue details page actions */}
- {page === "change-issue-state" && issueDetails && (
-
- )}
- {page === "change-issue-priority" && issueDetails && (
-
- )}
- {page === "change-issue-assignee" && issueDetails && (
-
- )}
-
- {/* theme actions */}
- {page === "change-interface-theme" && (
- {
- closePalette();
- setPages((pages) => pages.slice(0, -1));
- }}
- />
- )}
-
-
-
-
-
+ {/* theme actions */}
+ {page === "change-interface-theme" && (
+