Skip to content

Comments

Use tags to get next/prev unreviewed files#363

Merged
naglepuff merged 6 commits intomainfrom
make-filter-tag-state-shared
Feb 19, 2026
Merged

Use tags to get next/prev unreviewed files#363
naglepuff merged 6 commits intomainfrom
make-filter-tag-state-shared

Conversation

@naglepuff
Copy link
Collaborator

No description provided.

@naglepuff naglepuff requested a review from BryonLewis February 18, 2026 22:48
@cloudflare-workers-and-pages
Copy link

cloudflare-workers-and-pages bot commented Feb 18, 2026

Deploying bats-ai with  Cloudflare Pages  Cloudflare Pages

Latest commit: 250fa42
Status: ✅  Deploy successful!
Preview URL: https://7948c312.bats-ai.pages.dev
Branch Preview URL: https://make-filter-tag-state-shared.bats-ai.pages.dev

View logs

Copy link
Collaborator

@BryonLewis BryonLewis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In Spectrogram.vue we also have RecordingList.vue which is a list of the top 20 recordings, we probably have to apply the same tag filtering to that if we are doing it for the next and previous.

Comment on lines 225 to 231
const currentRecording = await getRecording(props.id);
let tags = [];
if (currentRecording.data.owner_username === currentUser.value) {
tags = filterTags.value;
} else {
tags = sharedFilterTags.value;
}
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm wondering if this logic should be more complicated?

I know that our current users will have configuration.non_admin_upload_enabled set to false.

The next/previous is active on both the shared and their own filter tags. This logic would make the next/previous not cyclical. I.E if you go are going through shared recordings and happen to hit your own recording all of a sudden the list of recordings changes.

Posible solutions:

  1. Combining and getting a unique list of tags for your own and shared recordings I.E tags = [...FilterTags.value, ...sharedFilterTags.value].unique() (pseudocode)
  2. Swapping the backend so it takes the own recording tags and the shared filter tags separately. I.E the end point as ownedTags and sharedTags that are submitted when getting the next/previous

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's go with option 1 for now. If we need, we can revisit this logic.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

clearContours,
currentRecordingId,
viewMaskOverlay,
filterTags,
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we in the template show what the filtering tags are in the UI? I.E some indication that this is filtered data on a tag/tags?

Just thinking of the case of someone copying a link to another PC for a spectrogram (this wouldn't copy over the local storage tags) and they start hitting next/previous. Maybe inbetween the Prev/Next buttons adding the tag just as an indication that the data is filtered. Show the tag only if it exists.

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@naglepuff naglepuff force-pushed the make-filter-tag-state-shared branch from 37404d1 to 250fa42 Compare February 19, 2026 17:43
@naglepuff
Copy link
Collaborator Author

@BryonLewis

250fa42 - adds a template to the shared recordings list so tags are displayed

f6feda0 - filter recordings in the sidebar by tag when active

@naglepuff naglepuff requested a review from BryonLewis February 19, 2026 17:45
Copy link
Collaborator

@BryonLewis BryonLewis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@naglepuff naglepuff merged commit ce0b83f into main Feb 19, 2026
7 checks passed
@naglepuff naglepuff deleted the make-filter-tag-state-shared branch February 19, 2026 18:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants