aikuma / aikuma-ng

Speech annotation web app for regular folk
22 stars 13 forks source link

Implement universal trash system #85

Closed Lingomat closed 8 years ago

Lingomat commented 8 years ago

We already delete annotations but there's no way to delete a respeaking.

Perhaps the trash should be a universal mechanism, e.g. back porting to this to the annotation delete.

This would require a new treatment on the trash (deleted items) view. Secondaries belong to a session, so the trash view would need to cycle through sessions, check for trashed items, and then display those items marking them clearly as belonging to a session.

One easy solution: extend the session list directive so that when operating in trash mode (which it supports now), trashed items are listed as the directive loops through sessions. However the session itself may or may not be trashed so this represents a minor UI challenge. Easiest would be to do this:

If session is not trashed: Just name session and ghost it out. List any trashed files underneath. If session is trashed: Looks like it does now. Don't bother listing trashed files since no restore is possible.

Lingomat commented 8 years ago

Well if no-one's bothered, I'm not :)