Add method to manually add artist metadata #55

Closed
opened 2023-05-06 10:31:38 +02:00 by wojtek · 4 comments
Owner

Artist metadata is generally not read from the library so it must be provided by the user. Add some TUI method to provide this information.

Artist metadata is generally not read from the library so it must be provided by the user. Add some TUI method to provide this information.
wojtek added the
enhancement
label 2023-05-06 10:31:38 +02:00
wojtek added this to the Artist tracking project 2023-05-06 10:31:38 +02:00
wojtek added this to the v0.2.0 milestone 2023-05-06 10:55:02 +02:00
Author
Owner
Example: https://github.com/tui-rs-revival/ratatui/blob/main/examples/user_input.rs
wojtek added reference 55---add-method-to-manually-add-artist-metadata-from-tui 2023-05-21 23:09:43 +02:00
Author
Owner
  • Add edit mode which can be activated at any time (whether in overlay mode or not).
  • Edit mode at first displays all the options to edit as a single list.
  • Options either display the value or "NEW VALUE".
  • Vectors display all elements and always an extra "NEW VALUE".
  • Pressing enter on a selection will allow to edit that particular entry.
  • Empty string is always interpreted as None.
  • Non-empty strings are always validated - invalid strings are never accepted and the old value is retained.
* [ ] Add edit mode which can be activated at any time (whether in overlay mode or not). * [ ] Edit mode at first displays all the options to edit as a single list. * [ ] Options either display the value or "NEW VALUE". * [ ] Vectors display all elements and always an extra "NEW VALUE". * [ ] Pressing enter on a selection will allow to edit that particular entry. * [ ] Empty string is always interpreted as `None`. * [ ] Non-empty strings are always validated - invalid strings are never accepted and the old value is retained.
wojtek removed this from the v0.2.0 milestone 2024-01-05 20:56:07 +01:00
wojtek removed this from the Artist tracking project 2024-01-05 20:56:11 +01:00
wojtek removed reference 55---add-method-to-manually-add-artist-metadata-from-tui 2024-01-05 21:09:50 +01:00
wojtek changed title from Add method to manually add artist metadata from TUI to Add method to manually add artist metadata 2024-01-06 20:03:25 +01:00
Author
Owner

Adding code to add info via a TUI is quite intensive and most likely not worth the extra effort. Instead, in this issue, add a CLI tool to add items to the database.

This CLI tool can be either invoked through a new binary or as a subcommand of the main binary.

Adding code to add info via a TUI is quite intensive and most likely not worth the extra effort. Instead, in this issue, add a CLI tool to add items to the database. This CLI tool can be either invoked through a new binary or as a subcommand of the main binary.
wojtek added this to the Artist tracking project 2024-01-06 20:05:30 +01:00
wojtek added this to the v0.2.0 milestone 2024-01-06 20:05:32 +01:00
Author
Owner

Create additional binary with four subcommands:

  1. Add - adds a new entry; returns error if value already exists where multiple values are not allowed.
  2. Remove - removes an entry; entry is only removed if the match is perfect (up to upper/lower case).
  3. Set - sets the entire entry to the new value overwriting the old value(s).
  4. Clear - removes all entries for this particular field.
Create additional binary with four subcommands: 1. Add - adds a new entry; returns error if value already exists where multiple values are not allowed. 2. Remove - removes an entry; entry is only removed if the match is perfect (up to upper/lower case). 3. Set - sets the entire entry to the new value overwriting the old value(s). 4. Clear - removes all entries for this particular field.
wojtek added reference 55---add-method-to-manually-add-artist-metadata 2024-01-07 10:23:14 +01:00
Sign in to join this conversation.
No Milestone
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: wojtek/musichoard#55
No description provided.