Skip to content

Implement Airtable-style UI with GridView, inline editing, and view switching#8

Merged
hotlong merged 6 commits intomainfrom
copilot/improve-ui-and-pages
Jan 9, 2026
Merged

Implement Airtable-style UI with GridView, inline editing, and view switching#8
hotlong merged 6 commits intomainfrom
copilot/improve-ui-and-pages

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented Jan 9, 2026

Adds production-ready Airtable-like data management UI to ObjectQL with inline editing, multiple field types, and view mode switching.

New Components

Grid & Views

  • GridView - Inline editable grid supporting text/number/date fields, read-only badges/selects/booleans
  • Toolbar + ViewSwitcher - Navigation header with table/grid mode toggle
  • Auto-detects field types from ObjectQL schema, generates column configs

Form Fields

  • SelectField, DateField, BadgeField - Type-specific form inputs
  • Badge - Status indicators with 5 color variants (success/warning/danger/info/default)
  • Select, Popover - Dropdown and menu primitives

Dashboard Integration

Enhanced dashboard view with:

  • View mode switcher (traditional table ↔ Airtable grid)
  • Inline editing fires PUT requests on cell changes
  • Auto-generated columns from schema field types
  • Consistent stone color palette throughout

Usage

import { GridView, Toolbar, ViewSwitcher } from '@objectql/ui'

const columns = [
  { id: 'name', label: 'Name', type: 'text', editable: true },
  { 
    id: 'status', 
    label: 'Status', 
    type: 'badge',
    options: [
      { value: 'active', label: 'Active', variant: 'success' }
    ]
  }
]

<GridView
  columns={columns}
  data={data}
  onCellEdit={(rowIdx, colId, value) => updateRecord(rowIdx, colId, value)}
  onRowClick={navigateToDetail}
/>

Technical Notes

  • Inline editing disabled for badge/select/boolean (use row click → form instead)
  • Keyboard nav: Enter saves, Escape cancels
  • Bundle: +12KB gzipped
  • Fully backward compatible

See AIRTABLE_GUIDE.md for API reference, airtable-example.tsx for complete example.

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • scarf.sh
    • Triggering command: /usr/local/bin/node node ./report.js (dns block)

If you need me to access, download, or install something from one of these locations, you can either:

Original prompt

帮我完善ui和页面,实现一个基本的Air table App app


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Copilot AI and others added 5 commits January 9, 2026 02:40
…pover and field types

Co-authored-by: hotlong <50353452+hotlong@users.noreply.github.com>
Co-authored-by: hotlong <50353452+hotlong@users.noreply.github.com>
Co-authored-by: hotlong <50353452+hotlong@users.noreply.github.com>
Co-authored-by: hotlong <50353452+hotlong@users.noreply.github.com>
Co-authored-by: hotlong <50353452+hotlong@users.noreply.github.com>
Copilot AI changed the title [WIP] Enhance UI and implement basic Air table app Implement Airtable-style UI with GridView, inline editing, and view switching Jan 9, 2026
Copilot AI requested a review from hotlong January 9, 2026 02:52
@hotlong hotlong marked this pull request as ready for review January 9, 2026 02:54
Comment thread AIRTABLE_UI_SUMMARY_CN.md
Comment on lines +244 to +252
- [ ] 列宽调整
- [ ] 列重新排序
- [ ] 多行选择
- [ ] 批量操作
- [ ] 虚拟滚动(超大数据集)
- [ ] 导出到 CSV/Excel
- [ ] 高级过滤 UI
- [ ] 列可见性切换
- [ ] 保存的视图/过滤器
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@copilot 安排任务

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

您好!请问您希望我:

  1. 实现这些功能(列宽调整、列重新排序等)?
  2. 将这些任务整理成GitHub issues?
  3. 对这些任务进行优先级排序?

请明确您的需求,我会相应处理。

Hello! Would you like me to:

  1. Implement these features (column resizing, reordering, etc.)?
  2. Organize these tasks into GitHub issues?
  3. Prioritize these tasks?

Please clarify your request so I can proceed accordingly.

@hotlong hotlong merged commit 83e2736 into main Jan 9, 2026
1 of 2 checks passed
Copilot AI requested a review from hotlong January 9, 2026 02:59
Copilot stopped work on behalf of hotlong due to an error January 9, 2026 02:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants