mirror of
https://github.com/multica-ai/multica.git
synced 2026-07-05 13:29:44 +02:00
refactor(feedback): replace generic description with brand-colored GitHub CTA
The Feedback modal previously rendered three lines of grey copy before the editor — title, description, and the GitHub hint from #2451. The hint blended into the description, defeating its purpose of nudging users toward a tracked channel. Drop the generic description (placeholder already explains what to type) and restyle the hint so GitHub itself is the only brand-coloured anchor. The shorter sentence ("Want faster traction? Head to GitHub") puts the link at the natural end-of-line fixation point, where the colour shift actually registers. i18n splits into prefix + link (suffix would be empty), avoiding the sentence-order brittleness that 3-key splits usually introduce. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com> Co-authored-by: multica-agent <github@multica.ai>
This commit is contained in:
@@ -22,7 +22,6 @@
|
||||
},
|
||||
"feedback": {
|
||||
"title": "Feedback",
|
||||
"description": "We'd love to hear what's working, what isn't, or what you'd like to see next.",
|
||||
"placeholder": "Tell us about your experience, bugs you've found, or features you'd like to see…",
|
||||
"toast_uploading": "Please wait for uploads to finish…",
|
||||
"toast_too_long": "Message is too long",
|
||||
@@ -30,7 +29,8 @@
|
||||
"toast_failed": "Failed to send feedback",
|
||||
"send": "Send feedback",
|
||||
"sending": "Sending…",
|
||||
"github_hint": "Want to discuss or get faster traction? Open an issue on GitHub →"
|
||||
"github_hint_prefix": "Want faster traction? Head to ",
|
||||
"github_hint_link": "GitHub"
|
||||
},
|
||||
"issue_picker": {
|
||||
"search_placeholder": "Search issues...",
|
||||
|
||||
@@ -22,7 +22,6 @@
|
||||
},
|
||||
"feedback": {
|
||||
"title": "反馈",
|
||||
"description": "告诉我们哪些好用、哪些不好用、希望接下来做什么。",
|
||||
"placeholder": "聊聊你的体验、遇到的 bug,或想看到的功能...",
|
||||
"toast_uploading": "请等待上传完成...",
|
||||
"toast_too_long": "内容过长",
|
||||
@@ -30,7 +29,8 @@
|
||||
"toast_failed": "发送反馈失败",
|
||||
"send": "发送反馈",
|
||||
"sending": "发送中...",
|
||||
"github_hint": "想要讨论或更快的处理?来 GitHub 提 issue →"
|
||||
"github_hint_prefix": "想要更快的,请去 ",
|
||||
"github_hint_link": "GitHub"
|
||||
},
|
||||
"issue_picker": {
|
||||
"search_placeholder": "搜索 issue...",
|
||||
|
||||
@@ -5,7 +5,6 @@ import { toast } from "sonner";
|
||||
import {
|
||||
Dialog,
|
||||
DialogContent,
|
||||
DialogDescription,
|
||||
DialogHeader,
|
||||
DialogTitle,
|
||||
} from "@multica/ui/components/ui/dialog";
|
||||
@@ -93,17 +92,17 @@ export function FeedbackModal({ onClose }: { onClose: () => void }) {
|
||||
<DialogContent className="sm:max-w-2xl !h-[28rem] p-0 gap-0 flex flex-col overflow-hidden">
|
||||
<DialogHeader className="px-5 pt-4 pb-2 shrink-0">
|
||||
<DialogTitle>{t(($) => $.feedback.title)}</DialogTitle>
|
||||
<DialogDescription>
|
||||
{t(($) => $.feedback.description)}
|
||||
</DialogDescription>
|
||||
<a
|
||||
href="https://github.com/multica-ai/multica/issues"
|
||||
target="_blank"
|
||||
rel="noopener noreferrer"
|
||||
className="mt-1 text-xs text-muted-foreground underline-offset-2 hover:text-foreground hover:underline"
|
||||
>
|
||||
{t(($) => $.feedback.github_hint)}
|
||||
</a>
|
||||
<p className="mt-1 text-xs text-muted-foreground">
|
||||
{t(($) => $.feedback.github_hint_prefix)}
|
||||
<a
|
||||
href="https://github.com/multica-ai/multica/issues"
|
||||
target="_blank"
|
||||
rel="noopener noreferrer"
|
||||
className="text-brand underline decoration-brand/40 underline-offset-2 hover:decoration-brand"
|
||||
>
|
||||
{t(($) => $.feedback.github_hint_link)}
|
||||
</a>
|
||||
</p>
|
||||
</DialogHeader>
|
||||
|
||||
<div className="flex-1 min-h-0 px-5 pb-3">
|
||||
|
||||
Reference in New Issue
Block a user