Open-source AI Security Operations Center: alert fusion, LLM-agent triage, MITRE ATT&CK investigation, and a replayable decision ledger for every agent step. Self-hostable, runs with no API keys, MIT licensed. Ships an MCP server for Claude, Cursor and Continue.
Python agentic-aiai-securityalert-triageblue-teamcybersecuritydetection-engineeringincident-responselanggraphllm-agentsmcpmitre-attackmodel-context-protocolpurple-teamsecurity-operationsself-hostedsiemsoarsocthreat-detectionthreat-intelligence
feat(web): re-introduce DraftFromPromptDialog Storybook story (#335)
Beenu Arora37a227cbc007
diff --git a/AISOC_V8_PROGRESS.md b/AISOC_V8_PROGRESS.mdindex d6c7e9e8d..91b312a59 100644--- a/AISOC_V8_PROGRESS.md+++ b/AISOC_V8_PROGRESS.md@@ -26,14 +26,19 @@ update this tracker after each landed task.| T5.3 | AIT-LDS + MITRE Engenuity loaders | P1 | M | ✅ **Done** (2026-06-27) | Two new fidelity loaders + 16 tests + date-stamped `benchmark.md` section (29/29 fidelity tests). || T4 wave-3 | Last 5–6 connectors (Abnormal Security, Box, Datadog, Dropbox, Lacework, OCI, Sublime Security) | P1 each | S–M each | ✅ **Done** (2026-06-27) | 6 new plugin manifests + 6 new docs pages + 39 new tests + 6 connector resilience fixes. Full connector suite 633/633. |-All four T-IDs land via dedicated feature branches:+All four T-IDs landed via dedicated PRs (merged 2026-06-27):-| T-ID | Branch |-|------|--------|-| T3.7 | `feat/v8-t37-nl-playbook-drafter` |-| T3.8 | (committed onto same T3.7 branch, will fork at PR time) |-| T5.3 | `feat/v8-t53-aitlds-mitre-engenuity` |-| T4 wave-3 | `feat/v8-t4-wave3-connector-scaffolding` |+| T-ID | PR | Branch | Merged at (UTC) |+|------|----|--------|-----------------|+| T3.7 | [#330](https://github.com/beenuar/AiSOC/pull/330) | `feat/v8-t37-nl-playbook-drafter` | 08:55:22 |+| T3.8 | [#331](https://github.com/beenuar/AiSOC/pull/331) | `feat/v8-t38-storybook-design-system` | 08:57:36 |+| T5.3 | [#332](https://github.com/beenuar/AiSOC/pull/332) | `feat/v8-t53-aitlds-mitre-engenuity` | 08:53:48 |+| T4 wave-3 | [#333](https://github.com/beenuar/AiSOC/pull/333) | `feat/v8-t4-wave3-connector-scaffolding` | 08:55:17 |+| Tracker | [#334](https://github.com/beenuar/AiSOC/pull/334) | `docs/v8-progress-tracker` | 08:57:39 |++Follow-up after merge: [`feat/v8-storybook-draftdialog-story`](https://github.com/beenuar/AiSOC/tree/feat/v8-storybook-draftdialog-story) re-introduces the+`DraftFromPromptDialog` Storybook story that was split out of #331+because it imported a component that only existed on #330.---@@ -117,9 +122,10 @@ All four T-IDs land via dedicated feature branches:## What's still open-- **Open one PR per T-ID** on the public repo and merge after CI is- green. The four feature branches are pushed; each commit body- carries a tight summary of the change for the PR description.+- **All five PRs are merged.** Follow-up to re-add the+ `DraftFromPromptDialog` Storybook story (was split out of #331+ because of cross-branch dependency on #330) is the only loose+ end and is staged on `feat/v8-storybook-draftdialog-story`.- This tracker should be updated on every merge with the PR URL andthe merge timestamp.diff --git a/apps/web/stories/composite/DraftFromPromptDialog.stories.tsx b/apps/web/stories/composite/DraftFromPromptDialog.stories.tsxnew file mode 100644index 000000000..033a61215--- /dev/null+++ b/apps/web/stories/composite/DraftFromPromptDialog.stories.tsx@@ -0,0 +1,79 @@+import type { Meta, StoryObj } from '@storybook/react-vite';+import React from 'react';+import { DraftFromPromptDialog } from '@/components/playbooks/DraftFromPromptDialog';++/**+ * Composite / DraftFromPromptDialog — T3.7 surface.+ *+ * The story stubs `fetch` and `next/navigation` so the dialog renders+ * its happy path without a backend. Hit "Draft playbook" to see the+ * confirmation flow.+ *+ * Originally part of the T3.8 design-system PR (#331) but split out+ * because the component lived on the T3.7 branch (#330). Re-added+ * after both T-IDs landed on `main` (2026-06-27).+ */++const meta: Meta<typeof DraftFromPromptDialog> = {+ title: 'Composite/DraftFromPromptDialog',+ component: DraftFromPromptDialog,+ parameters: {+ docs: {+ description: {+ component:+ 'NL → playbook drafter modal (T3.7). Posts to /api/v1/playbooks/draft-from-nl and routes to /playbooks/new with the draft parked in sessionStorage. In Storybook the network is stubbed to a deterministic success payload.',+ },+ },+ },+ decorators: [+ (Story) => {+ // Stub fetch and the next-navigation router so the story stays+ // hermetic. The decorator only runs once per story render.+ if (typeof window !== 'undefined') {+ window.fetch = async () =>+ ({+ ok: true,+ status: 200,+ text: async () => 'ok',+ json: async () => ({+ playbook: {+ id: 'demo-draft',+ name: 'Demo NL draft',+ description: 'Storybook demo prompt',+ version: '1.0.0',+ tags: ['nl-drafted', 'draft'],+ trigger: { on: 'alert', severity: ['high'] },+ steps: [],+ author: 'AiSOC',+ enabled: false,+ created_at: '2026-06-27T00:00:00Z',+ updated_at: '2026-06-27T00:00:00Z',+ },+ rationale: 'demo',+ used_llm: false,+ schema_validated: true,+ }),+ }) as unknown as Response;+ }+ return <Story />;+ },+ ],+};++export default meta;++type Story = StoryObj<typeof DraftFromPromptDialog>;++export const Open: Story = {+ args: {+ open: true,+ onClose: () => undefined,+ },+};++export const Closed: Story = {+ args: {+ open: false,+ onClose: () => undefined,+ },+};