Repository navigation
π¨ Palette: κ΄λ¦¬μ λμ보λ λ³΅μ¬ λ²νΌ UX λ° μ κ·Όμ± κ°μ #796
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weβll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: developmental
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,7 +1,7 @@ | ||
| 'use client' | ||
|
|
||
| import { useEffect, useMemo, useState } from 'react' | ||
| import { Copy, Link2, LogIn, LogOut, Search } from 'lucide-react' | ||
| import { Check, Copy, Link2, LogIn, LogOut, Search } from 'lucide-react' | ||
| import { useRouter } from 'next/navigation' | ||
|
|
||
| import { Alert, AlertDescription, AlertTitle } from '@/components/ui/alert' | ||
|
|
@@ -147,6 +147,7 @@ export function AdminDashboard() { | |
| if (!resetLink) return | ||
| await navigator.clipboard.writeText(resetLink.url) | ||
| setCopied(true) | ||
| setTimeout(() => setCopied(false), 2000) | ||
| } | ||
|
|
||
| return ( | ||
|
|
@@ -278,9 +279,15 @@ export function AdminDashboard() { | |
| <Label htmlFor="reset-link">Generated link</Label> | ||
| <Input id="reset-link" value={resetLink.url} readOnly /> | ||
| </div> | ||
| <Button variant="outline" className="w-full" onClick={handleCopy}> | ||
| <Copy className="size-4" aria-hidden="true" /> | ||
| {copied ? 'Copied' : 'Copy link'} | ||
| <Button variant="outline" className="w-full" onClick={handleCopy} aria-pressed={copied}> | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. π― Functional Correctness | π‘ Minor | β‘ Quick win λ³΅μ¬ λͺ
λ Ή λ²νΌμμ μ΄ λ²νΌμ ν κΈμ΄ μλλΌ λ³΅μ¬ λͺ
λ Ήμ μ€ννλ©°, λ μ΄λΈλ Also applies to: 289-289 π€ Prompt for AI Agents |
||
| {copied ? ( | ||
| <Check className="size-4" aria-hidden="true" /> | ||
| ) : ( | ||
| <Copy className="size-4" aria-hidden="true" /> | ||
| )} | ||
| <span aria-live="polite"> | ||
| {copied ? 'Copied' : 'Copy link'} | ||
| </span> | ||
|
Comment on lines
+288
to
+290
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
| </Button> | ||
| <p className="text-xs text-muted-foreground"> | ||
| Expires {new Date(resetLink.expiresAt).toLocaleString()} | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
π― Functional Correctness | π‘ Minor | β‘ Quick win
μ΄μ νμ΄λ¨Έλ₯Ό μ·¨μν λ€ μ νμ΄λ¨Έλ₯Ό μ€μ νμΈμ.
λ³΅μ¬ λ²νΌμ μ°μμΌλ‘ ν΄λ¦νλ©΄ 첫 λ²μ§Έ νμ΄λ¨Έκ° λ¨Όμ μ€νλ©λλ€. κ·Έ κ²°κ³Ό μ΅κ·Ό λ³΅μ¬ μ±κ³΅ νμκ° 2μ΄κ° μ§λκΈ° μ μ μ¬λΌμ§ μ μμ΅λλ€. νμ΄λ¨Έ IDλ₯Ό μ μ₯νκ³ μ νμ΄λ¨Έλ₯Ό μ€μ νκΈ° μ μ μ΄μ νμ΄λ¨Έλ₯Ό μ·¨μνμΈμ.
π€ Prompt for AI Agents