Skip to content
This repository has been archived by the owner on Apr 18, 2024. It is now read-only.

feat: OPTIC-9: Event logging prework #264

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/components/Common/MediaPlayer/MediaSeeker.js
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export const MediaSeeker = ({ currentTime, duration, buffer, onSeekStart, onSeek
const { left, width } = seekerRef.current.getBoundingClientRect();
const initialX = e.pageX - (left + 5);
const clickedProgress = duration * Math.max(0, Math.min(initialX / width, 1));

const seekProgress = (e) => {
const newX = e.pageX - (left + 5);
const newProgress = duration * Math.max(0, Math.min(newX / width, 1));
Expand Down
3 changes: 2 additions & 1 deletion src/sdk/lsf-sdk.js
Original file line number Diff line number Diff line change
Expand Up @@ -589,6 +589,7 @@ export class LSFWrapper {

if (status === 200 || status === 201) this.datamanager.invoke("toast", { message: "Annotation saved successfully", type: "info" });
else if (status !== undefined) this.datamanager.invoke("toast", { message: "There was an error saving your Annotation", type: "error" });
// fb-optic-9: event logging: annotation submitted
};

/** @private */
Expand Down Expand Up @@ -617,7 +618,7 @@ export class LSFWrapper {

if (status === 200 || status === 201) this.datamanager.invoke("toast", { message: "Annotation updated successfully", type: "info" });
else if (status !== undefined) this.datamanager.invoke("toast", { message: "There was an error updating your Annotation", type: "error" });

//fb-optic-9: event logging: update Annotation
this.datamanager.invoke("updateAnnotation", ls, annotation, result);

if (exitStream) return this.exitStream();
Expand Down