This update adds two major features to the List Sorter application:
- Drag-and-Drop functionality for fine-tuning tier placements
- Advanced Settings panel for customizing tier percentages
- Reorder within tiers: Drag items to reorder them within the same tier
- Move between tiers: Drag items from one tier to another to adjust their ranking
- Visual feedback:
- Drag handle icon appears on each item
- Items highlight when hovering
- Placeholder shows where the item will be dropped
- Smooth animations during drag operations
- Auto-save: Changes are automatically saved to the database
Located in the results view, this collapsible panel allows you to:
- Customize tier percentages: Adjust the percentage of items in each tier (S, A, B, C, D, F)
- Real-time total: See the total percentage as you adjust sliders
- Apply changes: Recalculate tier distribution with new percentages
- Reset to defaults: Restore default percentages (S: 10%, A: 20%, B: 30%, C: 25%, D: 10%, F: 5%)
- Complete a sort to view the tier list
- Hover over any item to see the drag handle icon (☰)
- Click and drag the handle to move the item
- Drop it in a new position within the same tier or in a different tier
- Changes are saved automatically
- In the results view, click "Advanced Settings" to expand the panel
- Use the sliders to adjust tier percentages
- Watch the total percentage update in real-time
- Click "Apply & Recalculate" to redistribute items based on new percentages
- Click "Reset to Defaults" to restore original percentages
- Angular CDK Drag-Drop: Provides drag-and-drop functionality
- Angular Material Expansion Panel: Collapsible settings panel
- Angular Material Slider: Percentage adjustment controls
onItemDrop(): Handles drag-and-drop eventsrecalculateTiers(): Redistributes items based on new percentagesgetConnectedLists(): Enables cross-tier draggingsaveCurrentList(): Auto-saves changes to PouchDB
- Custom drag preview with elevated shadow
- Drag handle with hover effects
- Color-coded tier badges in settings
- Smooth transitions and animations
- Responsive design for mobile devices
- Intuitive controls: Familiar drag-and-drop interaction
- Visual feedback: Clear indicators for dragging and dropping
- Flexibility: Both manual (drag-drop) and automatic (percentage) adjustments
- Persistence: All changes saved automatically
- Non-destructive: Can always recalculate or manually adjust
Potential improvements could include:
- Export tier list as image
- Share tier list via URL
- Undo/redo functionality
- Tier naming customization
- Color theme customization