Skip to content

xlang-ai/CUA-Gym / .claude/skills/mock_websites

mock_websites

Flagged

How to set up and manipulate mock web application state via HTTP APIs for CUA-Gym tasks. For setup-gen and reward-gen agents.

FileKindSize
REWARD_SKILL.mdmarkdown11.2 KB
SKILL.mdskill md13.2 KB
schemas/Canvas-LMS_mock.mdmarkdown15.0 KB
schemas/Expensify_mock.mdmarkdown29.5 KB
schemas/PACS-viewer_mock.mdmarkdown19.3 KB
schemas/SAP_mock.mdmarkdown10.0 KB
schemas/ServiceNow_mock.mdmarkdown19.7 KB
schemas/TradingView_mock.mdmarkdown24.1 KB
schemas/TurboTax_mock.mdmarkdown31.6 KB
schemas/Zendesk_mock.mdmarkdown19.6 KB
schemas/airtable_mock.mdmarkdown20.6 KB
schemas/amazon_mock.mdmarkdown14.4 KB
schemas/asana_mock.mdmarkdown5.1 KB
schemas/aws_console_mock.mdmarkdown4.9 KB
schemas/azure_mock.mdmarkdown29.9 KB
schemas/booking_com_mock.mdmarkdown14.7 KB
schemas/california_tax_mock.mdmarkdown19.7 KB
schemas/coinbase_mock.mdmarkdown15.4 KB
schemas/discord_mock.mdmarkdown7.1 KB
schemas/docusign_mock.mdmarkdown5.5 KB
schemas/ebay_mock.mdmarkdown12.9 KB
schemas/epic-health_mock.mdmarkdown28.8 KB
schemas/facebook_mock.mdmarkdown24.1 KB
schemas/github_mock.mdmarkdown4.9 KB
schemas/gitlab_mock.mdmarkdown4.5 KB
schemas/gmail_mock.mdmarkdown4.1 KB
schemas/google_calendar_mock.mdmarkdown10.2 KB
schemas/google_docs_mock.mdmarkdown9.1 KB
schemas/google_drive_mock.mdmarkdown6.4 KB
schemas/google_flights_mock.mdmarkdown15.4 KB
schemas/google_sheets_mock.mdmarkdown9.9 KB
schemas/hubspot_mock.mdmarkdown22.5 KB
schemas/instacart_mock.mdmarkdown21.7 KB
schemas/instagram_mock.mdmarkdown6.1 KB
schemas/jira_mock.mdmarkdown4.7 KB
schemas/linkedin_mock.mdmarkdown4.1 KB
schemas/lucidchart_mock.mdmarkdown17.8 KB
schemas/microsoft_teams_mock.mdmarkdown25.8 KB
schemas/miro_mock.mdmarkdown18.8 KB
schemas/monday_mock.mdmarkdown24.8 KB
schemas/multi_procedure_application_mock.mdmarkdown13.6 KB
schemas/notion_mock.mdmarkdown4.7 KB
schemas/outlook_web_mock.mdmarkdown22.6 KB
schemas/paypal_mock.mdmarkdown14.8 KB
schemas/pinterest_mock.mdmarkdown17.3 KB
schemas/postman_mock.mdmarkdown16.1 KB
schemas/premiere_pro_mock.mdmarkdown19.2 KB
schemas/quickbooks_mock.mdmarkdown21.0 KB
schemas/reddit_mock.mdmarkdown4.3 KB
schemas/robinhood_mock.mdmarkdown13.7 KB
schemas/salesforce_mock.mdmarkdown6.3 KB
schemas/shopify_admin_mock.mdmarkdown11.6 KB
schemas/slack_mock.mdmarkdown5.4 KB
schemas/stripe_dashboard_mock.mdmarkdown16.1 KB
schemas/trello_mock.mdmarkdown4.8 KB
schemas/twitter_mock.mdmarkdown4.7 KB
schemas/uber_eats_mock.mdmarkdown23.5 KB
schemas/usa-gov_mock.mdmarkdown25.1 KB
schemas/visa_portal_ds160_mock.mdmarkdown15.5 KB
schemas/visa_portal_mock.mdmarkdown23.7 KB
schemas/wandb_mock.mdmarkdown23.6 KB
schemas/wechat_mock.mdmarkdown16.0 KB
schemas/workday_mock.mdmarkdown18.7 KB
schemas/youtube_mock.mdmarkdown6.2 KB
schemas/zhihu_mock.mdmarkdown14.2 KB
schemas/zillow_mock.mdmarkdown16.4 KB
schemas/zoom_web_mock.mdmarkdown15.9 KB

schemas/airtable_mock.md

View on GitHub
# airtable_mock Schema

**Deploy order**: 0 (alphabetical among all *_mock dirs, BASE_PORT=8000 → port 8000)
**Base URL**: `http://172.17.46.46:8000/`
**Go Endpoint**: `GET /go?sid=<sid>` → `{initial_state, current_state, state_diff}`
**Inject**: `POST /post?sid=<sid>` with body `{"action":"set","state":{...}}`
**Set Current Only**: `POST /post?sid=<sid>` with body `{"action":"set_current","state":{...}}`
**Reset**: `POST /post?sid=<sid>` with body `{"action":"reset"}`
**Upload**: `POST /upload?sid=<sid>` (multipart/form-data) → `{files: [{url, original_name, stored_name, size, content_type}]}`
**Serve Files**: `GET /files/<sid>/<filename>` → file content with Content-Type

## Overview

Simulates the Airtable web application -- a spreadsheet-database hybrid with bases, tables, fields, records, and multiple view types (grid, kanban, gallery, form, calendar). Uses React Context + `useReducer` for state management. State key in localStorage: `airtable_mock_v1` (or `airtable_mock_v1_<sid>` with session).

## State Schema

| Key | Type | Description |
|-----|------|-------------|
| `currentUser` | `Collaborator` | The logged-in user (defaults to first collaborator, John Doe) |
| `collaborators` | `Collaborator[]` | Array of 5 collaborators available for assignment |
| `bases` | `Record<string, Base>` | Map of base ID to Base object (default: 1 base) |
| `tables` | `Record<string, Table>` | Map of table ID to Table object (default: 3 tables) |
| `activeBaseId` | `string` | Currently selected base ID (e.g. `"base_xxxxxxxxx"`) |
| `activeTableId` | `string` | Currently selected table ID (e.g. `"tbl_xxxxxxxxx"`) |
| `ui` | `UIState` | UI transient state (sidebar, expanded record, search) |

---

### `Collaborator`

| Field | Type | Description |
|-------|------|-------------|
| `id` | `string` | Unique user ID (e.g. `"user_1"` through `"user_5"`) |
| `name` | `string` | Display name |
| `email` | `string` | Email address |
| `avatar` | `string` | URL to avatar image (ui-avatars.com) |

**Default collaborators:**

| id | name | email |
|----|------|-------|
| `user_1` | John Doe | john.doe@example.com |
| `user_2` | Alice Chen | alice.chen@example.com |
| `user_3` | Bob Smith | bob.smith@example.com |
| `user_4` | Carol Williams | carol.williams@example.com |
| `user_5` | Dave Johnson | dave.johnson@example.com |

---

### `Base`

| Field | Type | Description |
|-------|------|-------------|
| `id` | `string` | Generated ID with `"base_"` prefix |
| `name` | `string` | Base name (default: `"Project Tracker"`) |
| `color` | `string` | Tailwind CSS class for header color (default: `"bg-teal-600"`) |
| `tables` | `string[]` | Ordered array of table IDs belonging to this base |

---

### `Table`

| Field | Type | Description |
|-------|------|-------------|
| `id` | `string` | Generated ID with `"tbl_"` prefix |
| `name` | `string` | Table name (e.g. `"Tasks"`, `"Team"`, `"Milestones"`) |
| `baseId` | `string` | ID of parent base |
| `fields` | `Field[]` | Ordered array of field definitions |
| `records` | `Record_[]` | Array of data records |
| `views` | `View[]` | Array of view definitions |
| `activeViewId` | `string` | Currently active view ID for this table |

---

### `Field`

| Field | Type | Description |
|-------|------|-------------|
| `id` | `string` | Generated ID with `"fld_"` prefix |
| `name` | `string` | Field display name |
| `type` | `string` | Field type (see Field Types below) |
| `primary` | `boolean?` | If `true`, this is the primary (first-column) field |
| `options` | `SelectOption[]?` | For `single_select` / `multiple_select` fields |
| `max` | `number?` | For `rating` fields, max stars (default 5) |

**Field Types (FIELD_TYPES enum):**

| Constant | Value | Description |
|----------|-------|-------------|
| `TEXT` | `"text"` | Single-line text |
| `LONG_TEXT` | `"long_text"` | Multi-line text |
| `NUMBER` | `"number"` | Numeric value |
| `CURRENCY` | `"currency"` | Currency value (displayed with `$` prefix) |
| `PERCENT` | `"percent"` | Percentage value (displayed with `%` suffix) |
| `SINGLE_SELECT` | `"single_select"` | Single-choice dropdown |
| `MULTIPLE_SELECT` | `"multiple_select"` | Multi-choice tags |
| `ATTACHMENT` | `"attachment"` | File attachments array |
| `CHECKBOX` | `"checkbox"` | Boolean checkbox |
| `DATE` | `"date"` | Date string (YYYY-MM-DD) |
| `PHONE` | `"phone"` | Phone number string |
| `EMAIL` | `"email"` | Email address string |
| `URL` | `"url"` | URL string |
| `RATING` | `"rating"` | Star rating (1 to max) |
| `DURATION` | `"duration"` | Duration in minutes |
| `FORMULA` | `"formula"` | Computed formula (read-only display) |
| `CREATED_TIME` | `"created_time"` | Auto-generated creation timestamp |
| `LAST_MODIFIED` | `"last_modified"` | Auto-generated modification timestamp |
| `BUTTON` | `"button"` | Clickable action button |
| `BARCODE` | `"barcode"` | Barcode string |
| `LINKED_RECORD` | `"linked_record"` | Link to another record |
| `USER` | `"user"` | Collaborator reference |

---

### `SelectOption`

| Field | Type | Description |
|-------|------|-------------|
| `id` | `string` | Unique option ID (e.g. `"status_todo"`, `"pri_high"`) |
| `name` | `string` | Display name (e.g. `"Todo"`, `"High"`) |
| `color` | `string` | Tailwind CSS class string for pill styling |

---

### `Record_` (table record / row)

| Field | Type | Description |
|-------|------|-------------|
| `id` | `string` | Generated ID with `"rec_"` prefix |
| `createdTime` | `string` | ISO 8601 timestamp of creation |
| `fields` | `Record<string, any>` | Map of field ID to cell value |

**Cell value types by field type:**

| Field Type | Cell Value Type | Example |
|------------|----------------|---------|
| `text`, `long_text`, `email`, `phone`, `url`, `barcode` | `string` | `"Website Redesign"` |
| `number`, `currency`, `percent`, `duration`, `rating` | `number` | `15000`, `4` |
| `single_select` | `string` | `"In Progress"` (option name) |
| `multiple_select` | `string[]` | `["Design", "Engineering"]` (option names) |
| `checkbox` | `boolean` | `true` |
| `date` | `string` | `"2024-03-15"` (YYYY-MM-DD) |
| `attachment` | `Attachment[]` | `[{url: "...", name: "mockup.png"}]` |
| `user` | `Collaborator` | `{id, name, email, avatar}` |
| `linked_record` | `{id, name}` | `{id: "lr1", name: "Project Alpha"}` |

---

### `Attachment`

| Field | Type | Description |
|-------|------|-------------|
| `url` | `string` | URL to the attachment file |
| `name` | `string` | Original filename |

---

### `View`

| Field | Type | Description |
|-------|------|-------------|
| `id` | `string` | Generated ID with `"view_"` prefix |
| `name` | `string` | View display name |
| `type` | `string` | View type: `"grid"`, `"kanban"`, `"gallery"`, `"form"`, or `"calendar"` |
| `filters` | `Filter[]?` | Array of filter conditions (grid views) |
| `sorts` | `Sort[]?` | Array of sort conditions (grid views) |
| `groupBy` | `GroupBy[]?` | Array of group-by conditions (grid views, max 1) |
| `hiddenFieldIds` | `string[]?` | Array of field IDs hidden in this view |
| `fieldWidths` | `Record<string, number>?` | Map of field ID to column width in pixels |
| `rowHeight` | `string?` | Row height setting: `"short"` (default) |
| `groupFieldId` | `string?` | For kanban views: field ID to group by |
| `dateFieldId` | `string?` | For calendar views: field ID for date display |

---

### `Filter`

| Field | Type | Description |
|-------|------|-------------|
| `id` | `string` | Generated ID with `"flt_"` prefix |
| `fieldId` | `string` | Field ID to filter on |
| `operator` | `string` | Filter operator (see below) |
| `value` | `any` | Filter value to compare against |

**Filter operators by field type:**

| Field Type | Operators |
|------------|-----------|
| text, long_text, email, url, phone | `contains`, `does_not_contain`, `is`, `is_not`, `is_empty`, `is_not_empty` |
| number, currency, percent, duration, rating | `=`, `!=`, `>`, `<`, `>=`, `<=`, `is_empty`, `is_not_empty` |
| single_select, multiple_select | `is`, `is_not`, `is_empty`, `is_not_empty` |
| checkbox | `is`, `is_not` |
| date, created_time, last_modified | `is`, `is_before`, `is_after`, `is_empty`, `is_not_empty` |

---

### `Sort`

| Field | Type | Description |
|-------|------|-------------|
| `id` | `string` | Generated ID with `"srt_"` prefix |
| `fieldId` | `string` | Field ID to sort by |
| `direction` | `string` | `"asc"` or `"desc"` |

---

### `GroupBy`

| Field | Type | Description |
|-------|------|-------------|
| `id` | `string` | Generated ID with `"grp_"` prefix |
| `fieldId` | `string` | Field ID to group by |
| `direction` | `string` | `"asc"` or `"desc"` |

---

### `UIState`

| Field | Type | Default | Description |
|-------|------|---------|-------------|
| `viewSidebarOpen` | `boolean` | `false` | Whether the left view sidebar panel is open |
| `expandedRecordId` | `string \| null` | `null` | ID of the currently expanded record (modal), or null |
| `searchQuery` | `string` | `""` | Current search/find text |
| `isSearching` | `boolean` | `false` | Whether search is active (derived from searchQuery length) |

---

## Default Tables Detail

### Table 1: "Tasks" (9 records, 12 fields, 5 views)

**Fields:**

| # | Name | Type | Options / Notes |
|---|------|------|-----------------|
| 1 | Name | `text` | Primary field |
| 2 | Status | `single_select` | Options: `Todo`, `In Progress`, `In Review`, `Done` |
| 3 | Priority | `single_select` | Options: `Critical`, `High`, `Medium`, `Low` |
| 4 | Assignee | `user` | Collaborator reference |
| 5 | Due Date | `date` | YYYY-MM-DD |
| 6 | Budget | `currency` | Numeric, displayed with `$` |
| 7 | Tags | `multiple_select` | Options: `Design`, `Engineering`, `Marketing`, `Research` |
| 8 | Attachments | `attachment` | Array of `{url, name}` |
| 9 | Notes | `long_text` | Multi-line text |
| 10 | Approved | `checkbox` | Boolean |
| 11 | Rating | `rating` | 1-5 stars (max: 5) |
| 12 | Email Contact | `email` | Email string |

**Default Records (9):**

| Name | Status | Priority | Assignee | Budget |
|------|--------|----------|----------|--------|
| Website Redesign | In Progress | High | Alice Chen | 15000 |
| Q1 Marketing Campaign | Todo | Critical | Bob Smith | 25000 |
| Mobile App MVP | In Progress | Critical | Carol Williams | 45000 |
| Database Migration | Done | Medium | Dave Johnson | 8000 |
| Brand Guidelines Update | In Review | Low | Carol Williams | 3000 |
| Customer Survey Analysis | Todo | Medium | John Doe | 1200 |
| API Documentation | Done | High | Alice Chen | 5000 |
| Security Audit | In Review | Critical | Bob Smith | 12000 |
| Onboarding Flow Redesign | In Progress | High | Carol Williams | 18000 |

**Views (5):**

| Name | Type | Notes |
|------|------|-------|
| All Tasks | `grid` | Default view, no filters/sorts |
| By Status | `kanban` | Grouped by Status field |
| Gallery | `gallery` | Card layout with cover images |
| Submit Task | `form` | Form for adding new records |
| Calendar | `calendar` | Date field: Due Date |

---

### Table 2: "Team" (5 records, 6 fields, 3 views)

**Fields:**

| # | Name | Type | Options / Notes |
|---|------|------|-----------------|
| 1 | Name | `text` | Primary field |
| 2 | Role | `single_select` | Options: `Manager`, `Designer`, `Engineer`, `Marketing` |
| 3 | Email | `email` | Email string |
| 4 | Phone | `phone` | Phone number string |
| 5 | Start Date | `date` | YYYY-MM-DD |
| 6 | Active | `checkbox` | Boolean |

**Default Records (5):**

| Name | Role | Email | Active |
|------|------|-------|--------|
| Alice Chen | Designer | alice.chen@example.com | true |
| Bob Smith | Engineer | bob.smith@example.com | true |
| Carol Williams | Marketing | carol.williams@example.com | true |
| Dave Johnson | Manager | dave.johnson@example.com | true |
| John Doe | Manager | john.doe@example.com | true |

**Views (3):**

| Name | Type | Notes |
|------|------|-------|
| All Members | `grid` | Default view |
| By Role | `kanban` | Grouped by Role field |
| Add Member | `form` | Form for adding team members |

---

### Table 3: "Milestones" (4 records, 6 fields, 3 views)

**Fields:**

| # | Name | Type | Options / Notes |
|---|------|------|-----------------|
| 1 | Milestone | `text` | Primary field |
| 2 | Phase | `single_select` | Options: `Planning`, `Execution`, `Review`, `Complete` |
| 3 | Target Date | `date` | YYYY-MM-DD |
| 4 | Owner | `user` | Collaborator reference |
| 5 | Progress | `percent` | 0-100 |
| 6 | Notes | `long_text` | Multi-line text |

**Default Records (4):**

| Milestone | Phase | Target Date | Owner | Progress |
|-----------|-------|-------------|-------|----------|
| Project Kickoff | Complete | 2024-01-15 | John Doe | 100 |
| Design Phase | Review | 2024-03-01 | Alice Chen | 85 |
| Development Sprint | Execution | 2024-05-15 | Bob Smith | 45 |
| Launch | Planning | 2024-06-30 | Dave Johnson | 10 |

**Views (3):**

| Name | Type | Notes |
|------|------|-------|
| All Milestones | `grid` | Default view |
| By Phase | `kanban` | Grouped by Phase field |
| Timeline | `calendar` | Date field: Target Date |

---

## Reducer Actions

| Action | Payload | Effect |
|--------|---------|--------|
| `SET_STATE` | `state` (full state object) | Replace entire state |
| `UPDATE_CELL` | `{tableId, recordId, fieldId, value}` | Update a single cell value in a record |
| `ADD_RECORD` | `{tableId, initialFields?}` | Append a new record (auto-generates `rec_` ID and `createdTime`) |
| `DELETE_RECORD` | `{tableId, recordId}` | Remove a record from a table |
| `SET_ACTIVE_TABLE` | `tableId` (string) | Switch the active table tab |
| `SET_ACTIVE_VIEW` | `{tableId, viewId}` | Switch the active view for a table |
| `ADD_FIELD` | `{tableId, field: {name, type, options?, max?}}` | Add a new field column to a table |
| `CREATE_TABLE` | `{baseId, name}` | Create a new table with default fields (Name, Notes, Status) |
| `CREATE_VIEW` | `{tableId, view}` | Add a new view to a table and make it active |
| `TOGGLE_VIEW_SIDEBAR` | (none) | Toggle `ui.viewSidebarOpen` |
| `SET_EXPANDED_RECORD` | `recordId \| null` | Open/close the expanded record modal |
| `SET_SEARCH_QUERY` | `string` | Set search text and update `ui.isSearching` |
| `UPDATE_VIEW` | `{tableId, viewId, updates}` | Merge updates into a view (filters, sorts, groupBy, hiddenFieldIds, fieldWidths) |
| `RENAME_TABLE` | `{tableId, name}` | Rename a table |

---

## Minimal Inject Example

```json
{
  "action": "set",
  "state": {
    "currentUser": {
      "id": "user_1",
      "name": "John Doe",
      "email": "john.doe@example.com",
      "avatar": "https://ui-avatars.com/api/?name=John+Doe&background=8B5CF6&color=fff"
    },
    "collaborators": [
      {"id": "user_1", "name": "John Doe", "email": "john.doe@example.com", "avatar": "https://ui-avatars.com/api/?name=John+Doe&background=8B5CF6&color=fff"},
      {"id": "user_2", "name": "Alice Chen", "email": "alice.chen@example.com", "avatar": "https://ui-avatars.com/api/?name=Alice+Chen&background=EC4899&color=fff"}
    ],
    "bases": {
      "base_001": {
        "id": "base_001",
        "name": "My Project",
        "color": "bg-teal-600",
        "tables": ["tbl_001"]
      }
    },
    "tables": {
      "tbl_001": {
        "id": "tbl_001",
        "name": "Tasks",
        "baseId": "base_001",
        "fields": [
          {"id": "fld_name", "name": "Name", "type": "text", "primary": true},
          {"id": "fld_status", "name": "Status", "type": "single_select", "options": [
            {"id": "s1", "name": "Todo", "color": "bg-[#FFDCE5] text-[#B31846]"},
            {"id": "s2", "name": "In Progress", "color": "bg-[#FFEAB6] text-[#8D6302]"},
            {"id": "s3", "name": "Done", "color": "bg-[#D1F7C4] text-[#2D7514]"}
          ]},
          {"id": "fld_assignee", "name": "Assignee", "type": "user"},
          {"id": "fld_date", "name": "Due Date", "type": "date"}
        ],
        "records": [
          {
            "id": "rec_001",
            "createdTime": "2024-01-15T09:00:00.000Z",
            "fields": {
              "fld_name": "Build landing page",
              "fld_status": "In Progress",
              "fld_assignee": {"id": "user_2", "name": "Alice Chen", "email": "alice.chen@example.com", "avatar": "https://ui-avatars.com/api/?name=Alice+Chen&background=EC4899&color=fff"},
              "fld_date": "2024-04-01"
            }
          }
        ],
        "views": [
          {"id": "view_001", "name": "Grid View", "type": "grid", "filters": [], "sorts": [], "groupBy": [], "hiddenFieldIds": [], "fieldWidths": {}, "rowHeight": "short"}
        ],
        "activeViewId": "view_001"
      }
    },
    "activeBaseId": "base_001",
    "activeTableId": "tbl_001",
    "ui": {
      "viewSidebarOpen": false,
      "expandedRecordId": null,
      "searchQuery": "",
      "isSearching": false
    }
  }
}
```

---

## Observable State Changes (for LLM evaluation)

| User Action | State Field Changed |
|-------------|---------------------|
| Edit a cell value (text, number, date, etc.) | `tables.<tableId>.records[i].fields.<fieldId>` |
| Toggle a checkbox | `tables.<tableId>.records[i].fields.<fieldId>` (boolean flip) |
| Click a star rating | `tables.<tableId>.records[i].fields.<fieldId>` (number 1-5) |
| Select single-select option | `tables.<tableId>.records[i].fields.<fieldId>` (string) |
| Toggle multiple-select tags | `tables.<tableId>.records[i].fields.<fieldId>` (string[]) |
| Assign a user/collaborator | `tables.<tableId>.records[i].fields.<fieldId>` (Collaborator object) |
| Add a new record (grid, kanban, gallery, form) | `tables.<tableId>.records` (new entry appended) |
| Delete a record | `tables.<tableId>.records` (entry removed) |
| Bulk delete selected records | `tables.<tableId>.records` (multiple entries removed) |
| Submit a form view | `tables.<tableId>.records` (new entry appended with form data) |
| Switch active table tab | `activeTableId` |
| Switch active view | `tables.<tableId>.activeViewId` |
| Toggle view sidebar | `ui.viewSidebarOpen` |
| Expand a record (open modal) | `ui.expandedRecordId` |
| Close expanded record | `ui.expandedRecordId` → `null` |
| Type in search box | `ui.searchQuery`, `ui.isSearching` |
| Clear search | `ui.searchQuery` → `""`, `ui.isSearching` → `false` |
| Add a filter condition | `tables.<tableId>.views[i].filters` (new Filter appended) |
| Remove a filter condition | `tables.<tableId>.views[i].filters` (entry removed) |
| Update filter field/operator/value | `tables.<tableId>.views[i].filters[j]` |
| Add a sort condition | `tables.<tableId>.views[i].sorts` (new Sort appended) |
| Remove a sort condition | `tables.<tableId>.views[i].sorts` (entry removed) |
| Update sort field/direction | `tables.<tableId>.views[i].sorts[j]` |
| Add grouping | `tables.<tableId>.views[i].groupBy` (new GroupBy appended) |
| Remove grouping | `tables.<tableId>.views[i].groupBy` (entry removed) |
| Hide/show fields | `tables.<tableId>.views[i].hiddenFieldIds` |
| Show all / hide all fields | `tables.<tableId>.views[i].hiddenFieldIds` (cleared or set to all non-primary) |
| Resize a column | `tables.<tableId>.views[i].fieldWidths.<fieldId>` |
| Create a new table | `bases.<baseId>.tables` (new ID appended), `tables` (new table added), `activeTableId` |
| Rename a table | `tables.<tableId>.name` |
| Add a new field/column | `tables.<tableId>.fields` (new Field appended) |
| Create a new view | `tables.<tableId>.views` (new View appended), `tables.<tableId>.activeViewId` |
| Drag kanban card to different column | `tables.<tableId>.records[i].fields.<groupFieldId>` (value changes to target column name) |

---

## Routes

| Path | Component | Description |
|------|-----------|-------------|
| `/` | `MainLayout` | Main application (Toolbar + active view + sidebar) |
| `/go` | `GoDebug` | State inspection endpoint (JSON viewer in page) |

## Notes

- All IDs are randomly generated at initialization time using `Math.random().toString(36)` with a prefix (e.g. `base_`, `tbl_`, `fld_`, `rec_`, `view_`). They change on every fresh initialization.
- When injecting state, use fixed IDs for predictability.
- The `Sidebar` component (dark sidebar with base list) exists in the codebase but is **not rendered** in the current `MainLayout` -- only the `Toolbar`, `ViewSidebar`, and active view are shown.
- The `/go` endpoint in the Vite server middleware performs a proper deep diff. The client-side `GoDebug` page shows a simpler diff.
- View types `"calendar"` is referenced in routing and view creation but no dedicated `CalendarView` component exists; unrecognized types fall back to `GridView`.
- Kanban view supports drag-and-drop between columns, updating the `groupFieldId` value on the record.
- Form view submits by dispatching `ADD_RECORD` with the collected form fields as `initialFields`.
- Search filtering is applied client-side across all visible fields in grid view.
- State auto-saves to localStorage on every state change via a `useEffect` in the `StoreProvider`.
reverse-engineer-anythingmorluto/reaReverse engineer native, managed, Electron/JavaScript, packaged, firmware, and browser targets with REA, and build agent environments (AgentEnv bundles) of web applications from a live instance or a capture, and of Linux desktop apps with a task from a request. Use shipped-artifact or requested runtime evidence to explain features, compare versions, decompile code, or guide a reconstruction. Skip REA for ordinary source-repository architecture analysis.Stars: 472kUpdated Claude CodeCodexVerifiedInstall
diagnosing-superpowersobra/superpowersUse when a superpowers session went wrong and your human partner wants to know why — repeated work, ignored plans, stumbles, poor results, a skill that didn't fire, "it took too long", "why is it so expensive", "what is it doing" — or wants to build a bug report for the superpowers maintainers, for the current session or a past one identified by id or path, on any harness.Stars: 323kUpdated Claude CodeCodexVerifiedInstall
dispatching-parallel-agentsobra/superpowersUse when facing 2+ independent tasks that can be worked on without shared state or sequential dependenciesStars: 323kUpdated Claude CodeCodexVerifiedInstall
executing-plansobra/superpowersUse when executing an implementation plan in the current session as the implementer yourself — your human partner chose inline execution, or no subagent tool is availableStars: 323kUpdated Claude CodeCodexVerifiedInstall