PageSourceSearch

https://linkstash.ai/assets/SuggestFeature-CNLl42Zz.js

js linkstash.ai collected 2026-10-05 14:56:44 UTC 4,099 bytes, 1 lines download raw bytes

1import{w as j,r as s,l as v,j as e,t as w,C as N,a as S}from"./index-WxW1_FTW.js";import{L as y}from"./LinkstashLogo-_OYk2FGr.js";import{B as r}from"./button-Dfj20x_w.js";import{B as k,a as L,b as a,e as d,c as u,d as F}from"./breadcrumb-COH1GcP9.js";import{T}from"./textarea-CX_F6NA3.js";import{I as B}from"./input-BMuNSmaa.js";import{L as x}from"./label-BM1OVeBp.js";import{A as C}from"./arrow-left-CQ2-vGql.js";import{S as D}from"./send-ClRmHkjl.js";import{L as W}from"./lightbulb-DZYWXVKP.js";import"./chevron-right-h6ooyqmc.js";function J(){const[z,i]=j(),[o,n]=s.useState(!1),[h,p]=s.useState(!1),[l,f]=s.useState(""),[c,b]=s.useState(""),{toast:m}=v(),g=t=>{if(t.preventDefault(),!l.trim()||!c.trim()){m({title:"Missing information",description:"Please fill out both the feature title and description fields.",variant:"destructive"});return}n(!0),setTimeout(()=>{n(!1),p(!0),m({title:"Feature suggestion received!",description:"Thank you for your suggestion. We'll review it and reach out if we need more information."}),setTimeout(()=>{i("/support")},2e3)},1500)};return e.jsxs("div",{className:"min-h-screen bg-muted/30",children:[e.jsx("div",{className:"bg-gray-50 border-b",children:e.jsx("div",{className:"container mx-auto px-4 py-3",children:e.jsx(k,{children:e.jsxs(L,{children:[e.jsx(a,{children:e.jsx(d,{href:"/",children:"Home"})}),e.jsx(u,{}),e.jsx(a,{children:e.jsx(d,{href:"/support",children:"Support"})}),e.jsx(u,{}),e.jsx(a,{children:e.jsx(F,{children:"Suggest Feature"})})]})})})}),e.jsxs("div",{className:"container max-w-4xl mx-auto px-4 pt-8 pb-10",children:[e.jsx("div",{className:"mb-6",children:e.jsxs(r,{variant:"ghost",className:"flex items-center gap-2 mb-4 text-gray-600 hover:text-gray-900 pl-0",onClick:()=>window.history.back(),children:[e.jsx(C,{className:"h-4 w-4"}),"Back to Support"]})}),e.jsxs("div",{className:"flex flex-col items-center mb-8",children:[e.jsx(w,{href:"/",className:"flex items-center mb-6",children:e.jsx(y,{className:"h-8",darkMode:!0})}),e.jsx("h1",{className:"text-3xl font-bold text-center mb-2",children:"Suggest a Feature"}),e.jsx("p",{className:"text-center text-muted-foreground mb-6 max-w-xl",children:"Have an idea for how we can make Linkstash better? Let us know! We're always looking for ways to improve."})]}),e.jsx(N,{className:"mb-10",children:e.jsx(S,{className:"p-6 md:p-8",children:h?e.jsxs("div",{className:"py-8 text-center",children:[e.jsxs("div",{className:"bg-green-50 text-green-700 p-6 rounded-lg mb-6",children:[e.jsx(W,{className:"w-12 h-12 mx-auto mb-4 text-green-500"}),e.jsx("h3",{className:"text-xl font-semibold mb-2",children:"Thanks for your suggestion!"}),e.jsx("p",{children:"We've received your feature idea and will review it soon."})]}),e.jsx(r,{variant:"ghost",className:"text-primary hover:text-primary/80",onClick:()=>i("/support"),children:"Return to Support Center"})]}):e.jsxs("form",{onSubmit:g,className:"space-y-6",children:[e.jsxs("div",{className:"space-y-2",children:[e.jsx(x,{htmlFor:"featureTitle",children:"Feature Title"}),e.jsx(B,{id:"featureTitle",placeholder:"E.g., Folder organization for saved links",value:l,onChange:t=>f(t.target.value)})]}),e.jsxs("div",{className:"space-y-2",children:[e.jsx(x,{htmlFor:"featureDescription",children:"Feature Description"}),e.jsx(T,{id:"featureDescription",placeholder:"Describe your feature idea in detail. What problem would it solve? How would it work?",rows:6,value:c,onChange:t=>b(t.target.value)})]}),e.jsx("div",{className:"pt-4",children:e.jsx(r,{type:"submit",className:"w-full md:w-auto",size:"lg",disabled:o,children:o?e.jsxs(e.Fragment,{children:[e.jsx("div",{className:"animate-spin mr-2 h-4 w-4 border-2 border-current border-t-transparent rounded-full"}),"Submitting..."]}):e.jsxs(e.Fragment,{children:[e.jsx(D,{className:"mr-2 h-4 w-4"}),"Submit Suggestion"]})})})]})})}),e.jsx("div",{className:"text-center text-sm text-muted-foreground mt-10",children:e.jsx("p",{children:"Your feedback helps us shape the future of Linkstash. We review all suggestions and prioritize based on user needs."})})]})]})}export{J as default};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.