BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/motiq/collaboration-pack

Collaboration Pack

motiq/collaboration-pack
FreeBlock

The complete Collaboration Pack — installs the Collaborative Review Workspace block and its four components (Live Presence Stack, Activity Stream, Approval Workflow, Comment Thread) as editable source, deduping shared utilities.

Install it

npx shadcn@latest add https://www.motiq.dev/r/collaboration-pack.json

Source

registry/blocks/collaborative-review-workspace.tsxwww.motiq.dev/r/collaboration-pack.json · first 6 KB
1"use client";
2
3import * as React from "react";
4
5import { cn } from "@/lib/utils";
6import { getStatusMeta, statusVars } from "@/lib/motiq";
7
8import {
9 LivePresenceStack,
10 type PresenceUser,
11} from "@/components/motiq/live-presence-stack";
12import {
13 ApprovalWorkflow,
14 type ApprovalWorkflowData,
15 type ApprovalAction,
16 type ActionContext,
17 type ApprovalStatus,
18 type Decision,
19 type Reviewer,
20 type WorkflowStage,
21} from "@/components/motiq/approval-workflow";
22import {
23 CommentThread,
24 type Comment,
25 type CommentAuthor,
26 type CommentDraft,
27} from "@/components/motiq/comment-thread";
28import {
29 ActivityStream,
30 type ActivityEvent,
31 type ActivityActor,
32} from "@/components/motiq/activity-stream";
33
34/* --------------------------------------------------------------------------
35 * CollaborativeReviewWorkspace — a composed review surface that wires four
36 * released collaboration components into one realistic screen: the presence of
37 * who's here, an app-owned approval workflow as the main column, the discussion
38 * thread under it, and an activity feed as the right rail.
39 *
40 * It owns a small in-memory demo state machine that connects the components'
41 * callbacks: approving a stage advances the workflow AND appends an activity
42 * event; posting a comment appears in the thread AND the activity; resolving the
43 * discussion updates the thread AND records it. Preset buttons load the review
44 * lifecycle states so you can see every phase without scripting.
45 *
46 * Presentation only — clearly fictional users, no real persistence or
47 * authorization. In a real app you would replace the demo state with your own
48 * data source and let these same callbacks drive real mutations. Clean-room
49 * original.
50 * ----------------------------------------------------------------------- */
51
52const MIN = 60_000;
53const HOUR = 3_600_000;
54const DAY = 86_400_000;
55/** Fixed epoch anchoring the demo timeline for the first render (never Date.now
56 * during render/init). Re-anchored to the real clock in a mount effect so the
57 * relative timestamps read naturally. */
58const T0 = 1_800_000_000_000;
59
60const VIEWER_ID = "you";
61
62/* -- fictional cast ------------------------------------------------------ */
63
64const PEOPLE = {
65 you: { id: "you", name: "You" },
66 mira: { id: "mira", name: "Mira Delacroix" },
67 devon: { id: "devon", name: "Devon Achebe" },
68 rosa: { id: "rosa", name: "Rosa Whitfield" },
69 kai: { id: "kai", name: "Kai Ferreira" },
70 june: { id: "june", name: "June Park" },
71// … truncated

What it pulls in

npm packages

  • motion

Other registry items

  • https://motiq.dev/r/live-presence-stack.json
  • https://motiq.dev/r/approval-workflow.json
  • https://motiq.dev/r/comment-thread.json
  • https://motiq.dev/r/activity-stream.json
  • https://motiq.dev/r/utils.json
  • https://motiq.dev/r/primitives.json

Files it writes

  • registry/blocks/collaborative-review-workspace.tsx

Facts

Registry
motiq
Type
registry:block
Access
Free
Files written
1
Licence
MIT
First indexed
2026-08-12
Last confirmed
today

Go to the source

Docs on motiq www.motiq.dev RMahammad/motiq on GitHub Raw registry item This item as JSON

More from motiq

All 100 items
Same registry, same kind — the ones you would have found next
ComponentRegistryKindAccessInstallsCommand
Agent Operations Heroagent-operations-heromotiqBlocksFree1 dep
AI Agent Workspaceai-agent-workspacemotiqBlocksFree1 dep
AI Interface Packai-interface-packmotiqBlocksFree1 dep
Collaborative Launch Herocollaborative-launch-heromotiqBlocksFree1 dep
Collaborative Review Workspacecollaborative-review-workspacemotiqBlocksFree1 dep
Data Motion Packdata-motion-packmotiqBlocksFree1 dep
Deployment Command Centerdeployment-command-centermotiqBlocksFree1 dep
Deployment Control Herodeployment-control-heromotiqBlocksFree1 dep
BlockDex

Built by

Kynth Studios

the studio behind StoreReady, ToolDrift and BreachProbe

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

© 2026 BlockDex. A Kynth Studios product.

BlockDex

BlockDex

Built by

Kynth Studios

the studio behind StoreReady, ToolDrift and BreachProbe

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

© 2026 BlockDex. A Kynth Studios product.

BlockDex

BlockDex

Built by

Kynth Studios

the studio behind StoreReady, ToolDrift and BreachProbe

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

© 2026 BlockDex. A Kynth Studios product.

BlockDex