programsam / binkjs

Music archival site BINK, rewritten as a Node.js express app
0 stars 1 forks source link

Track/vid reordering #128

Closed programsam closed 2 months ago

programsam commented 3 years ago

Not really a need for pics because they are kind of a bundle/bag of things. But videos and tracks have a definitive order to them, which is why their dbs both have a .num field. Right now, this field is honored in terms of how these things are displayed in the UI (and in the admin UI), but let's make it so that you can click "Up" or "Down" at least and move them around. Eventually, look into BT (Bootstrap Table) options for dragging them around within the table -- is that possible?

programsam commented 3 years ago

BT has no drag and drop features unfortunately. So maybe… up and down swap buttons?

programsam commented 3 years ago

If the first three characters of your uploaded file contain a number, that will become the track number. So if you upload

example.mp3, that'll just be the highest-numbered track (starting with zero).

But if you upload

06 example.mp3 that will get set to have track number 6.

Same with videos.

That said, it still makes sense to allow track reordering buttons. Same w videos. Eventually, we'll do it for pictures -- but that's after we are free of this schema. See #132 for more info about that.

programsam commented 2 months ago

This is done for tracks.

programsam commented 2 months ago

This is officially done done.