Shot Table - Independent Frames Column Added โœ…

โœ… Implementation Complete

The shot table now has a separate "Frames" column that displays only the frame count number, independent of the "Frame Range" column.

๐Ÿ”„ Changes Made

๐Ÿ“Š Column Structure Comparison

โŒ Before

Frame Range Column: "1001-1120 (120 frames)" Only one column showing both range and count together

Issues:

  • Frame count mixed with range
  • No separate sortable frame count
  • Harder to scan frame counts

โœ… After

Frame Range Column: "1001-1120" Frames Column: "120" Two separate columns for different information

Benefits:

  • Clean separation of data
  • Sortable frame count column
  • Easy to scan frame counts
  • Better data organization

๐Ÿ—๏ธ Technical Implementation

// Frame Range column (updated) { accessorKey: 'frame_start', id: 'frameRange', header: 'Frame Range', cell: ({ row }) => { const shot = row.original return h('span', { class: 'text-sm' }, `${shot.frame_start}-${shot.frame_end}`) }, } // New Frames column { accessorKey: 'frame_end', id: 'frames', header: 'Frames', cell: ({ row }) => { const shot = row.original const frameCount = shot.frame_end - shot.frame_start + 1 return h('span', { class: 'text-sm font-medium' }, frameCount.toString()) }, }

๐ŸŽฏ Column Features

๐Ÿ“‹ Column Visibility Options

The column visibility control now includes both columns:

Column Visibility Options: โ”œโ”€โ”€ Thumbnail โ”œโ”€โ”€ Shot Name โ”œโ”€โ”€ Episode โ”œโ”€โ”€ Frame Range โ† Shows "start-end" โ”œโ”€โ”€ Frames โ† Shows count number (NEW) โ”œโ”€โ”€ Status โ”œโ”€โ”€ Description โ””โ”€โ”€ [Task Type Columns...]

๐Ÿ’ก Use Cases

๐Ÿ“ Files Modified

frontend/src/components/shot/columns.ts (UPDATED) โ”œโ”€โ”€ Added new "frames" column definition โ”œโ”€โ”€ Updated "frameRange" column to show only range โ”œโ”€โ”€ Removed unused TaskStatusBadge import โ””โ”€โ”€ Improved frame count calculation frontend/src/components/shot/ShotTableToolbar.vue (UPDATED) โ”œโ”€โ”€ Added "frames" to allColumns array โ””โ”€โ”€ Updated column visibility options

๐Ÿงช Testing Checklist

To verify the new frames column works correctly:

๐Ÿ“Š Example Data Display

Shot Name | Frame Range | Frames | Status -------------|-------------|--------|---------- SH010_010 | 1001-1120 | 120 | In Progress SH010_020 | 1121-1200 | 80 | Not Started SH010_030 | 1201-1350 | 150 | Completed SH020_010 | 2001-2024 | 24 | Approved

Users can now easily:

โœ… Status: Complete

The shot table now has an independent "Frames" column that displays the frame count as a clean number, separate from the "Frame Range" column. This provides better data organization and improved usability for production teams.