# Linear preset

Linear's objects, as entity kinds. Pass to EntityKindsProvider: `<EntityKindsProvider kinds={linearKinds}>`. The nouns are the ones in Linear's conceptual model: team, project, issue, cycle and label, plus the initiative, which Linear describes as sitting "above projects" for broader strategic efforts. Linear's docs call that an initiative, not a roadmap, so there is no `roadmap` kind.

- Registry name: `linear-preset` (`@candor/linear-preset`)
- Tier: Pro. Installing it needs a Pro, Premium or Team licence key: the person runs `npx candor-ui key <key>` themselves; never ask for the key in chat or write it to a file.
- Docs: https://candor.themethodic.com/docs/linear-preset

## Install

```bash
npx candor-ui add linear-preset
```

Run `npx candor-ui@latest init` once first (https://candor.themethodic.com/get-started.md). Without the CLI: `npx shadcn@latest add @candor/linear-preset`.
It brings in: entity-chip, fill-strings, tokens.
npm packages: lucide-react@^1.67.0.

## Example

```tsx
"use client"

import { EntityChip, EntityKindsProvider } from "@/components/candor/entity-chip"
import { linearKinds } from "@/components/candor/linear-preset"

export default function Example() {
  return (
    <EntityKindsProvider kinds={linearKinds}>
      <p className="flex max-w-lg flex-wrap items-center gap-2 text-sm">
        <EntityChip entity={{ kind: "team", name: "Platform" }} onOpen={() => {}} />
        <EntityChip entity={{ kind: "project", name: "Billing rewrite" }} onOpen={() => {}} />
        <EntityChip entity={{ kind: "issue", name: "PLA-142" }} onOpen={() => {}} />
        <EntityChip entity={{ kind: "cycle", name: "Cycle 24" }} onOpen={() => {}} />
        <EntityChip entity={{ kind: "initiative", name: "Q4 reliability" }} onOpen={() => {}} />
        <EntityChip entity={{ kind: "label", name: "Bug" }} onOpen={() => {}} />
      </p>
    </EntityKindsProvider>
  )
}
```

## Values

### linearKinds

```ts
const linearKinds: Record<string, EntityKindInfo>
```

### linearNouns

Linear's nouns for LocaleProvider's `nouns`: an environment is a workspace.

```ts
const linearNouns: Partial<NounTable>
```

## Rules for using Candor UI

- Components take plain typed data. Never pass model output as HTML or render it as a link; messages are typed blocks.
- A control that can't be used says why: wrap it in `<Locked reason="…">`, don't just disable it.
- Don't show a value you don't have: leave it out (it renders as —) rather than guess. An estimate is labelled as one.
- Nothing is pre-selected in a decision a person makes, and the agent is named from your app's data, never from model output.
- Your app's words go in `LocaleProvider`: its fixed strings in `strings`, its nouns in `nouns`; entity kinds and agent roles in `EntityKindsProvider` and `AgentRolesProvider`.
