Skip to content

Commit

Permalink
Merge branch 'release/v1.2.0' of https://github.com/voxel51/fiftyone
Browse files Browse the repository at this point in the history
…into develop
  • Loading branch information
voxel51-bot committed Dec 18, 2024
2 parents b81c1e7 + 94c3fe9 commit 888ad9d
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 11 deletions.
11 changes: 6 additions & 5 deletions app/packages/looker/src/elements/video.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,17 +65,18 @@ export class LoaderBar extends BaseElement<VideoState> {
}: Readonly<VideoState>) {
const shown =
!error && hovering && (waitingForVideo || buffering || waitingToStream);

if (shown === this.shown) {
return this.element;
}

const start = lockedToSupport ? support[0] : 1;
const end = lockedToSupport
? support[1]
: getFrameNumber(duration, duration, frameRate);
if (shown === this.shown || start === end) {
return this.element;
}

this.shown = shown;

if (this.shown) {
if (this.shown && start !== end) {
this.element.style.display = "block";
} else {
this.element.style.display = "none";
Expand Down
2 changes: 2 additions & 0 deletions app/packages/looker/src/lookers/video.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ export class VideoLooker extends AbstractLooker<VideoState, VideoSample> {
if (LOOKER_WITH_READER === this) {
clearReader();
LOOKER_WITH_READER = null;
this.state.buffers = this.initialBuffers(this.state.config);
}
super.detach();
}
Expand Down Expand Up @@ -361,6 +362,7 @@ export class VideoLooker extends AbstractLooker<VideoState, VideoSample> {
if (LOOKER_WITH_READER === this) {
if (this.state.config.thumbnail && !this.state.hovering) {
clearReader();
this.state.buffers = this.initialBuffers(this.state.config);
LOOKER_WITH_READER = null;
}
}
Expand Down
17 changes: 11 additions & 6 deletions e2e-pw/src/oss/specs/grid-tagging.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -44,17 +44,22 @@ test("grid tagging", async ({ fiftyoneLoader, grid, page, sidebar }) => {
await sidebar.clickFieldCheckbox("filepath");
await sidebar.clickFieldCheckbox("tags");
await grid.scrollBottom();
await expect(await grid.locator).toHaveScreenshot("grid-untagged.png", {
animations: "allow",
});
for (let i = 31; i <= 54; i++) {
const locator = grid.locator.getByText(`/tmp/${i}.png`);
await expect(locator).toBeVisible();
}

await grid.run(async () => {
await grid.actionsRow.toggleTagSamplesOrLabels();
await grid.tagger.setActiveTaggerMode("sample");
await grid.tagger.addNewTag("sample", "grid-test");
});

await expect(await grid.locator).toHaveScreenshot("grid-tagged.png", {
animations: "allow",
});
for (let i = 31; i <= 54; i++) {
const locator = grid.locator.getByText(`/tmp/${i}.png`);
await expect(locator).toBeVisible();
await expect(
locator.locator("..").getByTestId("tag-tags-grid-test")
).toBeVisible();
}
});

0 comments on commit 888ad9d

Please sign in to comment.