Commit Graph

10 Commits

Author SHA1 Message Date
Misaka_Company
f8dcc268c6 Add implementation plan for row highlight and column filters
Six tasks: pure logic + Vitest, FilterDropdown component, click-to-lock
row highlight, filterable column config + persistence, controlled table
filters + clear button, then build/deploy to 114.

Co-Authored-By: Claude <noreply@anthropic.com>
2026-06-18 09:28:28 +08:00
Misaka_Company
c39c2761d4 Add design spec for row highlight and column-header filters
- Row highlight: hover + click-to-pin via onRow/rowClassName, persists across
  horizontal scroll and filtering (keyed by rowKey=ID)
- Column filters: antd controlled filterDropdown per column, type auto-inferred
  (date/category/text), multi-column AND; which columns are filterable is chosen
  by the user in the existing column-settings modal and persisted to localStorage
- New module src/app/table-filters.tsx for FilterDropdown + type inference
- 'Clear filters' button in the search bar
- Long-content display explicitly deferred to a later iteration

Co-Authored-By: Claude <noreply@anthropic.com>
2026-06-18 09:21:03 +08:00
Misaka_Company
db58148746 Increase database request timeout to 60s for fuzzy search queries
The LIKE-based fuzzy matching can return larger result sets than exact
match, requiring more query time. Raise requestTimeout from the default
15s to 60s on both production-data and export-excel API routes.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-06-11 09:07:09 +08:00
Misaka_Company
aaff8b410b Update search placeholder to indicate fuzzy search support
The stored procedure now supports LIKE matching on 车间号,
so update the placeholder hint to inform users they can enter
partial workshop numbers for fuzzy matching.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-06-11 08:39:08 +08:00
Misaka_Company
0ac67bbfe8 Add CLAUDE.local.md to .gitignore
Local deployment notes file, not tracked in version control.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-06-10 18:18:31 +08:00
Misaka_Company
8235a29f82 Add Excel export feature for full production data
Add "导出全部" button that exports all contract production data to an
.xlsx file via a new API endpoint using exceljs, with formatted headers,
date columns, auto-width, and frozen header row.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-06-10 17:35:48 +08:00
Misaka_Company
2c66faf207 Add search history with AutoComplete dropdown
- Show last 10 search records on input focus with clock icon
- Filter history as user types
- Click history item to search directly
- Deduplicate and persist to localStorage

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-06-10 12:19:24 +08:00
Misaka_Company
aac2e9ceca Add column visibility toggle and drag-sort via settings modal
- Remove default workshop number from search input
- Add ColumnSettingsModal with checkboxes for show/hide per column
- Add drag-and-drop reordering using @dnd-kit/sortable
- Persist column config to localStorage across sessions
- Include search filter, select all/deselect all/reset defaults

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-06-10 11:31:05 +08:00
Misaka_Company
93564c6f4e Add production data table with Ant Design and SQL Server integration
- Add API route to execute stored procedure and query production data
- Build search bar with isolated component to prevent input lag on large datasets
- Configure Ant Design Table with sticky header and horizontal scroll for 56 columns
- Add antd, @ant-design/icons, mssql dependencies
- Configure allowedDevOrigins for LAN access

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-06-10 10:05:32 +08:00
Misaka_Company
38adf674e8 Initial commit: Web Table project scaffolded with Next.js
Created using create-next-app with TypeScript, Tailwind CSS, ESLint, and App Router.
2026-06-10 09:08:41 +08:00