Skip to content

Feature/frontend workbench#89

Open
sudo-mahi28 wants to merge 10 commits into
developfrom
feature/frontend-workbench
Open

Feature/frontend workbench#89
sudo-mahi28 wants to merge 10 commits into
developfrom
feature/frontend-workbench

Conversation

@sudo-mahi28
Copy link
Copy Markdown
Contributor

Fixes #<issue_number_goes_here>

It's a good idea to open an issue first for discussion.

  • Tests pass
  • Appropriate changes to documentation are included in the PR

Copy link
Copy Markdown

@github-actions github-actions Bot left a comment

Choose a reason for hiding this comment

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

## 📋 Review Summary

This PR introduces updates to the frontend workbench by adding new icons, modifying UI layouts, and managing clip visibility and locking mechanisms. It also includes an unexpected change to the backend source_asset_service.py that appears to be an incorrect reassignment of original_gcs_uri.

🔍 General Feedback

  • Correctness: The backend change has a high probability of causing a bug or data loss as it sets original_gcs_uri to the new final_gcs_uri. Please double check if this is intended.
  • HTML Integrity: There is an instance of a nested <button> element which is invalid HTML and can cause click handling to fail.
  • Code Cleanup: There are some minor spacing issues and unused or empty functions (hideCurrentVideo) that should be removed to maintain code hygiene.
  • Redundancies: Simplified some redundant null checks (!clip) which were repeated right after the initial check.

Comment thread backend/src/source_assets/source_asset_service.py
Comment thread frontend/src/app/workbench/workbench.component.html
Comment thread frontend/src/app/workbench/workbench.component.html
Comment thread frontend/src/app/workbench/workbench.component.ts Outdated
Comment thread frontend/src/app/workbench/workbench.component.ts Outdated
Comment thread frontend/src/app/workbench/workbench.component.ts Outdated
sudo-mahi28 and others added 3 commits March 10, 2026 16:55
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Copy link
Copy Markdown

@github-actions github-actions Bot left a comment

Choose a reason for hiding this comment

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

## 📋 Review Summary

This Pull Request introduces significant UI enhancements to the frontend workbench, adding new timeline controls such as clip locking and visibility toggling, alongside a backend logic update for asset uploading. While the logic to manage timeline layers and track overlays is a solid improvement, there are critical syntax errors and logical flaws that must be addressed before this branch can be merged, specifically in the Angular HTML template and TypeScript components.

🔍 General Feedback

  • The new feature icons (visibility-off, lock-open-right) have been cleanly integrated into the frontend assets directory and correctly registered in the workbench component.
  • The resolveOverlaps method in the workbench component received a major rewrite with an improved "plow/ripple insert" logic that seems well-structured.
  • Ensure all variable references are carefully checked after performing code deletions or refactoring to prevent ReferenceErrors.
  • An empty method (hideCurrentVideo()) was added in the workbench.component.ts file without implementation. Consider either implementing it, adding a // TODO comment, or removing it entirely to maintain code cleanliness.

Comment thread backend/src/source_assets/source_asset_service.py
Comment thread frontend/src/app/workbench/workbench.component.html Outdated
Comment thread frontend/src/app/workbench/workbench.component.html
Comment thread frontend/src/app/workbench/workbench.component.ts
Comment thread frontend/src/app/workbench/workbench.component.scss
Comment thread frontend/src/app/workbench/workbench.component.html Outdated
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Copy link
Copy Markdown

@github-actions github-actions Bot left a comment

Choose a reason for hiding this comment

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

## 📋 Review Summary

This Pull Request introduces significant UI enhancements to the workbench, including new track locking and visibility toggle features. While the additions improve the application's capabilities, several critical syntax and logic issues were identified that require correction before merging.

🔍 General Feedback

  • The introduction of per-clip locking and visibility controls is a great addition to the timeline functionality.
  • Several HTML syntax errors were introduced in the component template, including missing closing tags and nested buttons.
  • Ensure that variable references are fully updated during refactoring (e.g., removing id references in the TypeScript file).
  • Keep the codebase clean by removing empty, unused functions before merging.

Comment thread backend/src/source_assets/source_asset_service.py
Comment thread frontend/src/app/workbench/workbench.component.html Outdated
Comment thread frontend/src/app/workbench/workbench.component.html
Comment thread frontend/src/app/workbench/workbench.component.ts
Comment thread frontend/src/app/workbench/workbench.component.ts Outdated
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Copy link
Copy Markdown

@github-actions github-actions Bot left a comment

Choose a reason for hiding this comment

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

## 📋 Review Summary

The pull request introduces new visual features and lock/visibility controls for the timeline workbench in the frontend, along with an update to asset handling in the backend. While the general approach is well-structured, there are a few critical errors that must be addressed before merging, including an Angular template compilation error, runtime reference errors, and an invalid HTML structure.

🔍 General Feedback

  • Frontend Template Integrity: Be cautious when using @let syntax in Angular templates. Ensure variables are not re-declared in the same logical scope to avoid build failures.
  • HTML Validity: Ensure elements like <button> are not nested within one another, as this violates HTML specifications and breaks accessibility tools.
  • Variable Cleanup: When refactoring out variables (like id), always double-check the surrounding conditions to ensure they are fully removed to prevent runtime ReferenceErrors.
  • Backend Data Integrity: Pay close attention to data assignments to ensure existing tracking fields (like original_gcs_uri) aren't unintentionally overwritten.

Comment thread backend/src/source_assets/source_asset_service.py
Comment thread frontend/src/app/workbench/workbench.component.html
Comment thread frontend/src/app/workbench/workbench.component.html
Comment thread frontend/src/app/workbench/workbench.component.ts
Copy link
Copy Markdown

@github-actions github-actions Bot left a comment

Choose a reason for hiding this comment

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

## 📋 Review Summary

This PR introduces valuable enhancements to the frontend workbench, including new clip locking and visibility features. The implementation is generally solid, though there are a few styling, formatting, and HTML structure issues that should be addressed.

🔍 General Feedback

  • Formatting: Several places in the code have incorrect indentation (e.g., using 4 or 6 spaces instead of 2 in the Angular components) and whitespace around keyword arguments in Python.
  • Accessibility/HTML: Be careful with nesting interactive elements like <button> tags, as this leads to invalid HTML and accessibility concerns.
  • Redundancy: Watch out for redundant conditional checks, such as checking for a null clip right after already checking and returning on the same condition.

Comment thread backend/src/source_assets/source_asset_service.py
Comment thread backend/src/source_assets/source_asset_service.py
Comment thread frontend/src/app/workbench/workbench.component.html
Comment thread frontend/src/app/workbench/workbench.component.ts
Comment thread frontend/src/app/workbench/workbench.component.ts
Copy link
Copy Markdown

@github-actions github-actions Bot left a comment

Choose a reason for hiding this comment

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

## 📋 Review Summary

This Pull Request introduces significant enhancements to the frontend workbench, adding clip-level locking and visibility controls along with necessary UI updates and SVG icons. However, the review revealed a critical HTML validity issue with nested buttons and a bug in the backend where the original GCS URI was incorrectly overwritten.

🔍 General Feedback

  • Constructive Addition: The overall structure of the new timeline clip controls (locking, visibility) is well integrated into the existing layout and component logic.
  • Code Consistency: Several newly introduced variables in the template use loose equality (==) which deviates from standard TypeScript/Angular practices preferring strict equality (===).
  • Formatting: Minor code formatting inconsistencies, such as extraneous blank lines or slightly altered indentation in workbench.component.ts, should be cleaned up before merging.

Comment thread backend/src/source_assets/source_asset_service.py
Comment thread frontend/src/app/workbench/workbench.component.html
Comment thread frontend/src/app/workbench/workbench.component.html
Comment thread frontend/src/app/workbench/workbench.component.html
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.

1 participant