Skip to content

Participants page & Transcripts page UX#104

Merged
robertfromont merged 14 commits intonzilbb:mainfrom
djvill:participants-transcripts
Mar 24, 2026
Merged

Participants page & Transcripts page UX#104
robertfromont merged 14 commits intonzilbb:mainfrom
djvill:participants-transcripts

Conversation

@djvill
Copy link
Copy Markdown
Member

@djvill djvill commented Dec 4, 2025

No description provided.

@djvill
Copy link
Copy Markdown
Member Author

djvill commented Jan 23, 2026

Hang on--I forgot to check that 54f979a worked. Filling in an episode yields "invalid query". Maybe that's why it was commented out with TODO before!

transcriptDescription = ""; // Human readable description of transcript query
defaultTranscriptFilter = "";
// hints for 'system layers'
participantLayerHint = "Participant";
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

These should all be tagged with // TODO i18n

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Fixed in 90004ea.

participant="{{true}}" transcript="{{true}}"
span="{{true}}" phrase="{{true}}" word="{{true}}" segment="{{true}}"
selected="{{[schema.wordLayerId]}}"
selected="{{[schema.utteranceLayerId, schema.wordLayerId]}}"
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

The reason it's not selected by default is that all formats that need the utterance layer to make sense should load it anyway.
Have you found that's not the case?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

It is the case. I like having it preselected because (1) that communicates that it'll be exported by default for formats that need it, (2) it's a sensible default. But I'm happy to revert for upstream if you'd like!

if (!this.showAttributesSelection) { // show options
this.showAttributesSelection = true;
} else { // options selected, so go ahead and do it
if (this.selectedIds.length == 0 && this.matchCount > 10) {
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

How about upping the limit instead? There are some very large LaBB-CAT corpora out there for which accidentally starting an export of everything would be problematic.
So maybe this.matchCount > 1000 instead?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Sure! Modified in 03cd995

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Sure! Modified in 03cd995

djvill added 3 commits March 23, 2026 12:41
N.B. For disabling 'List Transcripts' based on episode, I went with the
approach from 3b7143b and 6b5da1f rather than 3f52854;
if participant checkboxes are selected, this overrides the effect of any
filters and doesn't yield an error.
@djvill
Copy link
Copy Markdown
Member Author

djvill commented Mar 23, 2026

This is ready for your review now! FYI in the merge-commit, I went with the
approach from 3b7143b and 6b5da1f rather than 3f52854 for disabling 'List Transcripts' based on episode; if participant checkboxes are selected, this overrides the effect of any filters and doesn't yield an error.

@robertfromont
Copy link
Copy Markdown
Member

This is ready for your review now! FYI in the merge-commit, I went with the approach from 3b7143b and 6b5da1f rather than 3f52854 for disabling 'List Transcripts' based on episode; if participant checkboxes are selected, this overrides the effect of any filters and doesn't yield an error.

No worries, as long as you've tested it - when I tried to do it that way, it worked until I ticked checkboxes, and then the button enabled again and gave en error when pressed.

@djvill
Copy link
Copy Markdown
Member Author

djvill commented Mar 24, 2026

Here's the behavior I'm seeing in this branch:

  • Specify episode - List Transcripts disabled
  • Specify episode and tick checkbox(es) - List Transcripts enabled, doesn't error when clicked
  • Specify episode, tick checkbox(es), untick all - List Transcripts disabled

Are you seeing something different?

@djvill
Copy link
Copy Markdown
Member Author

djvill commented Mar 24, 2026

This is in APLS-Dev, for what it's worth.

@robertfromont robertfromont merged commit d521c3f into nzilbb:main Mar 24, 2026
@robertfromont
Copy link
Copy Markdown
Member

Turns out the error I was seeing was because I ticked all the checkboxes (there was only one) - this leads to an error when clicking List Transcripts but I've just pushed a fix for that.

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