mirror of
https://github.com/alkimake/paperclip.git
synced 2026-06-16 19:00:38 +09:00
fix(issues): support hidden issue flows and filter hidden activity
This commit is contained in:
parent
8f3fc077fa
commit
f766478f5a
6 changed files with 50 additions and 8 deletions
|
|
@ -235,6 +235,13 @@ export function IssueDetail() {
|
|||
</nav>
|
||||
)}
|
||||
|
||||
{issue.hiddenAt && (
|
||||
<div className="flex items-center gap-2 rounded-md border border-destructive/30 bg-destructive/10 px-3 py-2 text-sm text-destructive">
|
||||
<EyeOff className="h-4 w-4 shrink-0" />
|
||||
This issue is hidden
|
||||
</div>
|
||||
)}
|
||||
|
||||
<div className="space-y-3">
|
||||
<div className="flex items-center gap-2">
|
||||
<StatusIcon
|
||||
|
|
@ -249,7 +256,7 @@ export function IssueDetail() {
|
|||
|
||||
<Popover open={moreOpen} onOpenChange={setMoreOpen}>
|
||||
<PopoverTrigger asChild>
|
||||
<Button variant="ghost" size="icon-xs">
|
||||
<Button variant="ghost" size="icon-xs" className="ml-auto">
|
||||
<MoreHorizontal className="h-4 w-4" />
|
||||
</Button>
|
||||
</PopoverTrigger>
|
||||
|
|
@ -259,7 +266,7 @@ export function IssueDetail() {
|
|||
onClick={() => {
|
||||
updateIssue.mutate(
|
||||
{ hiddenAt: new Date().toISOString() },
|
||||
{ onSuccess: () => navigate("/issues") },
|
||||
{ onSuccess: () => navigate("/issues/all") },
|
||||
);
|
||||
setMoreOpen(false);
|
||||
}}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue