* Extracts user-applied tag labels from a recording, dropping blanks.
(recording: GrainRecording)
| 196 | * Extracts user-applied tag labels from a recording, dropping blanks. |
| 197 | */ |
| 198 | function recordingLabels(recording: GrainRecording): string[] { |
| 199 | return (recording.tags ?? []) |
| 200 | .map((tag) => tag?.trim()) |
| 201 | .filter((tag): tag is string => Boolean(tag)) |
| 202 | } |
| 203 | |
| 204 | /** |
| 205 | * Computes the metadata-based change-detection hash for a recording. |