Home / Function/ CardsReportIssue() — ui Function Reference

CardsReportIssue() — ui Function Reference

Architecture documentation for the CardsReportIssue() function in report-issue.tsx from the ui codebase.

Entity Profile

Dependency Diagram

graph TD
  6552e208_da9a_7d17_eb46_3c32d1aa830f["CardsReportIssue()"]
  7fc08248_26ce_2a61_04ec_3a86ee24b030["report-issue.tsx"]
  6552e208_da9a_7d17_eb46_3c32d1aa830f -->|defined in| 7fc08248_26ce_2a61_04ec_3a86ee24b030
  style 6552e208_da9a_7d17_eb46_3c32d1aa830f fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

apps/v4/components/cards/report-issue.tsx lines 24–100

export function CardsReportIssue() {
  const id = React.useId()

  return (
    <Card>
      <CardHeader>
        <CardTitle>Report an issue</CardTitle>
        <CardDescription>
          What area are you having problems with?
        </CardDescription>
      </CardHeader>
      <CardContent>
        <FieldGroup>
          <FieldGroup className="grid gap-4 sm:grid-cols-2">
            <Field>
              <FieldLabel htmlFor={`area-${id}`}>Area</FieldLabel>
              <Select defaultValue="billing">
                <SelectTrigger
                  id={`area-${id}`}
                  aria-label="Area"
                  className="w-full"
                >
                  <SelectValue placeholder="Select" />
                </SelectTrigger>
                <SelectContent>
                  <SelectItem value="team">Team</SelectItem>
                  <SelectItem value="billing">Billing</SelectItem>
                  <SelectItem value="account">Account</SelectItem>
                  <SelectItem value="deployments">Deployments</SelectItem>
                  <SelectItem value="support">Support</SelectItem>
                </SelectContent>
              </Select>
            </Field>
            <Field>
              <FieldLabel htmlFor={`security-level-${id}`}>
                Security Level
              </FieldLabel>
              <Select defaultValue="2">
                <SelectTrigger
                  id={`security-level-${id}`}
                  className="w-full [&_span]:!block [&_span]:truncate"
                  aria-label="Security Level"
                >
                  <SelectValue placeholder="Select level" />
                </SelectTrigger>
                <SelectContent>
                  <SelectItem value="1">Severity 1 (Highest)</SelectItem>
                  <SelectItem value="2">Severity 2</SelectItem>
                  <SelectItem value="3">Severity 3</SelectItem>
                  <SelectItem value="4">Severity 4 (Lowest)</SelectItem>
                </SelectContent>
              </Select>
            </Field>
          </FieldGroup>
          <Field>
            <FieldLabel htmlFor={`subject-${id}`}>Subject</FieldLabel>
            <Input id={`subject-${id}`} placeholder="I need help with..." />
          </Field>
          <Field>
            <FieldLabel htmlFor={`description-${id}`}>Description</FieldLabel>
            <Textarea
              id={`description-${id}`}
              placeholder="Please include all information relevant to your issue."
              className="min-h-24"
            />
          </Field>
          <Field orientation="horizontal" className="justify-end">
            <Button variant="ghost" size="sm">
              Cancel
            </Button>
            <Button size="sm">Submit</Button>
          </Field>
        </FieldGroup>
      </CardContent>
    </Card>
  )
}

Subdomains

Frequently Asked Questions

What does CardsReportIssue() do?
CardsReportIssue() is a function in the ui codebase, defined in apps/v4/components/cards/report-issue.tsx.
Where is CardsReportIssue() defined?
CardsReportIssue() is defined in apps/v4/components/cards/report-issue.tsx at line 24.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free