Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion frontend/src/App.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
import { setOnUnauthorized } from "$lib/api/client";
import AppShell from "$lib/components/AppShell.svelte";
import { Toaster } from "$lib/components/ui/sonner";
import { untrack } from "svelte";

import HomePage from "./pages/home.svelte";
import LoginPage from "./pages/login.svelte";
Expand Down Expand Up @@ -49,7 +50,9 @@

$effect(() => {
const syncRecent = () => {
trackRecentFromPath(window.location.hash.slice(1) || "/");
untrack(() => {
trackRecentFromPath(window.location.hash.slice(1) || "/");
});
};
syncRecent();
window.addEventListener("hashchange", syncRecent);
Expand Down
15 changes: 8 additions & 7 deletions frontend/src/lib/pages/task-detail.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -181,15 +181,16 @@
<div class="flex items-start justify-between gap-4">
<div>
<p class="text-muted-foreground mb-1 text-sm">
<button
class="hover:text-foreground cursor-pointer underline underline-offset-2"
onclick={() => navigate("/projects")}>Projects</button
<a
href="#/projects"
class="hover:text-foreground underline underline-offset-2"
>Projects</a
>
/
<button
class="hover:text-foreground cursor-pointer underline underline-offset-2"
onclick={() => navigate(`/projects/${task?.project.id}`)}
>{task.project.name}</button
<a
href={`#/projects/${task.project.id}`}
class="hover:text-foreground underline underline-offset-2"
>{task.project.name}</a
>
/
<span class="text-muted-foreground font-mono">#{task.number}</span>
Expand Down
Loading