Skip to content

Dev - #20

Merged
theAfish merged 3 commits into
mainfrom
dev
May 29, 2026
Merged

Dev#20
theAfish merged 3 commits into
mainfrom
dev

Conversation

@theAfish

Copy link
Copy Markdown
Owner

No description provided.

Copilot AI review requested due to automatic review settings May 29, 2026 08:20

Copilot AI left a comment

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.

Pull request overview

This PR updates the projections section table UX by changing section-wide selection behavior and adding direct table-header controls for column ordering and resizing.

Changes:

  • Makes the header checkbox select/deselect projections across the whole section instead of only the visible page.
  • Replaces picker-based column move/width controls with header drag-and-drop and resize handles.
  • Adds @tanstack/react-table to frontend dependencies, though it is not currently used.

Reviewed changes

Copilot reviewed 2 out of 3 changed files in this pull request and generated 5 comments.

File Description
frontend/src/components/projections/SectionTable.tsx Updates selection semantics, column visibility UI, drag reorder, resize behavior, and row keys.
frontend/package.json Adds @tanstack/react-table dependency.
frontend/package-lock.json Locks the newly added TanStack table packages.
Files not reviewed (1)
  • frontend/package-lock.json: Language not supported

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

onChange={toggleSectionAll}
className="accent-teal-500"
title="Select all rows on this page"
title={allSectionSelected ? 'Deselect all rows in this section' : `Select all ${allPageProjectionIds.length} rows in this section (across all pages)`}
if (!r) return
const delta = e.clientX - r.startX
const newWidth = Math.max(40, Math.min(1200, Math.round(r.startWidth + delta)))
setPrefs(p => ({ ...p, widths: { ...p.widths, [r.col]: newWidth } }))
Comment on lines +299 to +300
vis.splice(fromIdx, 1)
vis.splice(toIdx, 0, from)
Comment thread frontend/package.json
"preview": "vite preview"
},
"dependencies": {
"@tanstack/react-table": "^8.21.3",
@@ -73,12 +73,19 @@ export default function SectionTable({
const rowKey = (row: Record<string, string>) => row.projection_id || ''
const pageProjectionIds = Array.from(new Set(pageRows.map(rowKey).filter(Boolean)))
@theAfish
theAfish merged commit 563ee3a into main May 29, 2026
1 check passed
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