Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Add tiling window manager for training mode #1150

Merged
merged 2 commits into from
Nov 27, 2023

Conversation

dominik003
Copy link
Contributor

@dominik003 dominik003 commented Oct 31, 2023

Resolves #990, Resolves #982, Resolves #985

Things still needed before merge:

  • trigger session resizing for session requirings this (e.g., capella)
  • add focus on the current session (required to have the keyboard input switched)
  • add possibility to set a session into fullscreen
  • removed filter from unfocuse session and execute "focusSession" only when session is not currently focused

@dominik003 dominik003 marked this pull request as draft October 31, 2023 13:17
@codecov
Copy link

codecov bot commented Oct 31, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (7af54dd) 72.50% compared to head (5f644ad) 72.50%.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #1150   +/-   ##
=======================================
  Coverage   72.50%   72.50%           
=======================================
  Files         162      162           
  Lines        5289     5289           
  Branches      592      592           
=======================================
  Hits         3835     3835           
  Misses       1322     1322           
  Partials      132      132           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@dominik003 dominik003 force-pushed the feat-training-mode-session-viewer branch 3 times, most recently from a4f52c2 to 05c7bca Compare October 31, 2023 17:13
@dominik003 dominik003 changed the title feat: Add tailing window manager for training mode feat: Add tiling window manager for training mode Nov 1, 2023
@dominik003 dominik003 force-pushed the feat-training-mode-session-viewer branch 4 times, most recently from a0e895a to 75792e7 Compare November 1, 2023 11:24
Copy link
Member

@MoritzWeber0 MoritzWeber0 left a comment

Choose a reason for hiding this comment

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

Great job, the slider works really good.

@dominik003 dominik003 force-pushed the feat-training-mode-session-viewer branch from 75792e7 to 3e18712 Compare November 6, 2023 08:25
@dominik003 dominik003 self-assigned this Nov 6, 2023
@dominik003 dominik003 force-pushed the feat-training-mode-session-viewer branch from 3e18712 to d05fc5a Compare November 6, 2023 17:23
@dominik003 dominik003 force-pushed the feat-training-mode-session-viewer branch from d05fc5a to 5f644ad Compare November 7, 2023 15:13
@dominik003 dominik003 marked this pull request as ready for review November 7, 2023 15:13
Copy link

sonarqubecloud bot commented Nov 7, 2023

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

Copy link
Member

@MoritzWeber0 MoritzWeber0 left a comment

Choose a reason for hiding this comment

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

LGTM; good improvement. Will move us forward on the journey towards the training mode.

@MoritzWeber0 MoritzWeber0 merged commit 3644d8c into main Nov 27, 2023
25 checks passed
@MoritzWeber0 MoritzWeber0 deleted the feat-training-mode-session-viewer branch November 27, 2023 16:41
@MoritzWeber0
Copy link
Member

I noticed in our staging environment that there is still a small bug: iFrame events are not disabled while moving the session. This leads to a buggy behaviour when the user moved the session to fast and moves the cursor in the actual iframe.

MoritzWeber0 added a commit that referenced this pull request Nov 28, 2023
This commit fixes a bug that was introduced in #1150.

When the pointer events are not disabled on the iframe, some pointer events
are "stolen" by the iframe. Therefore, they can not be used by our event handlers.
This leds to a "jumpy" behaviour while resizing.
MoritzWeber0 added a commit that referenced this pull request Nov 28, 2023
This commit fixes a small bug that was introduced in #1150.

When the pointer events are not disabled on the iframe, some pointer events
are "stolen" by the iframe. Therefore, they can not be used by our event handlers.
This leds to a "jumpy" behaviour while resizing.
MoritzWeber0 added a commit that referenced this pull request Nov 28, 2023
This commit fixes a small bug that was introduced in #1150.

When the pointer events are not disabled on the iframe, some pointer events
are "stolen" by the iframe. Therefore, they can not be used by our event handlers.
This led to a "jumpy" behaviour while resizing.
MoritzWeber0 added a commit that referenced this pull request Nov 28, 2023
This commit fixes a small bug that was introduced in #1150.

When the pointer events are not disabled on the iframe, some pointer events
are "stolen" by the iframe. Therefore, they can not be used by our event handlers.
This led to a "jumpy" behaviour while resizing.
romeonicholas pushed a commit that referenced this pull request Nov 28, 2023
This commit fixes a small bug that was introduced in #1150.

When the pointer events are not disabled on the iframe, some pointer events
are "stolen" by the iframe. Therefore, they can not be used by our event handlers.
This led to a "jumpy" behaviour while resizing.
romeonicholas added a commit that referenced this pull request Dec 12, 2023
fix: Get reorder path working

fix: Bad merge

fix: Hide reorder button from non-managers

refactor: remove unused comments

style: Clean up reorder modal

feat: Add function to update a group of models, use for model reordering

fix: Remove unused imports

feat: order models by id when no display order has been set

docs: Add missing license headers

fix: Remove excess declaration and format files

fix: Rename angular functions to meet linter standards

fix: eslint styling

fix: Move display order out of post model

test: Add test to patch model display order

fix: Revert unecessary angular function name changes

This reverts commit e876fed.

build: Update frontend versions

build(deps-dev): bump alembic from 1.12.0 to 1.12.1 in /backend

Bumps [alembic](https://github.com/sqlalchemy/alembic) from 1.12.0 to 1.12.1.
- [Release notes](https://github.com/sqlalchemy/alembic/releases)
- [Changelog](https://github.com/sqlalchemy/alembic/blob/main/CHANGES)
- [Commits](https://github.com/sqlalchemy/alembic/commits)

---
updated-dependencies:
- dependency-name: alembic
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

docs(user): Add instructions for secondary click on macOS

The usual option to press `Control` while clicking doesn't work
in RDP-sessions on macOS. The `Control` can't be evaluated and mapped
properly. It's passed to the Linux container, which can't handle the
`Control` key.

refactor: Create floating window mgr component

feat: Add tiling window manager with slider

build: Update frontend versions

fix(session-viewer): Disable pointer event while resizing sessions

This commit fixes a small bug that was introduced in #1150.

When the pointer events are not disabled on the iframe, some pointer events
are "stolen" by the iframe. Therefore, they can not be used by our event handlers.
This led to a "jumpy" behaviour while resizing.

fix: Get reorder path working

fix: Undo rebase errors

feat: Add tiling window manager with slider

fix: Get reorder path working

Revert "build: Update frontend versions"

This reverts commit 800f6ce.

build: Update frontend versions

build(deps-dev): bump alembic from 1.12.0 to 1.12.1 in /backend

Bumps [alembic](https://github.com/sqlalchemy/alembic) from 1.12.0 to 1.12.1.
- [Release notes](https://github.com/sqlalchemy/alembic/releases)
- [Changelog](https://github.com/sqlalchemy/alembic/blob/main/CHANGES)
- [Commits](https://github.com/sqlalchemy/alembic/commits)

---
updated-dependencies:
- dependency-name: alembic
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

docs(user): Add instructions for secondary click on macOS

The usual option to press `Control` while clicking doesn't work
in RDP-sessions on macOS. The `Control` can't be evaluated and mapped
properly. It's passed to the Linux container, which can't handle the
`Control` key.

refactor: Create floating window mgr component

feat: Add tiling window manager with slider

build: Update frontend versions

fix(session-viewer): Disable pointer event while resizing sessions

This commit fixes a small bug that was introduced in #1150.

When the pointer events are not disabled on the iframe, some pointer events
are "stolen" by the iframe. Therefore, they can not be used by our event handlers.
This led to a "jumpy" behaviour while resizing.

fix: Migrate logic for button showing to Angular 17 blocks

fix: replace if statement with rxjs filtering

fix: Remove unused matdialog declaration

fix: Shift logic for project check to come before sending data

fix: Refactor data model for reordering view

fix: Rename all related instances of reorderModels to reorderModelsDialog

fix: Update for loop of models to Angular 17 format

fix: Separate out patchModel to reduce duplication in model updates

fix: Manually format html

fix: use model ids in place of names and rename patch function
romeonicholas added a commit that referenced this pull request Dec 12, 2023
feat: update models table and functions for display order

fix: Get reorder path working

fix: Bad merge

fix: Hide reorder button from non-managers

refactor: remove unused comments

style: Clean up reorder modal

feat: Add function to update a group of models, use for model reordering

fix: Remove unused imports

feat: order models by id when no display order has been set

docs: Add missing license headers

fix: Remove excess declaration and format files

fix: Rename angular functions to meet linter standards

fix: eslint styling

fix: Move display order out of post model

test: Add test to patch model display order

fix: Revert unecessary angular function name changes

This reverts commit e876fed.

build: Update frontend versions

build(deps-dev): bump alembic from 1.12.0 to 1.12.1 in /backend

Bumps [alembic](https://github.com/sqlalchemy/alembic) from 1.12.0 to 1.12.1.
- [Release notes](https://github.com/sqlalchemy/alembic/releases)
- [Changelog](https://github.com/sqlalchemy/alembic/blob/main/CHANGES)
- [Commits](https://github.com/sqlalchemy/alembic/commits)

---
updated-dependencies:
- dependency-name: alembic
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

docs(user): Add instructions for secondary click on macOS

The usual option to press `Control` while clicking doesn't work
in RDP-sessions on macOS. The `Control` can't be evaluated and mapped
properly. It's passed to the Linux container, which can't handle the
`Control` key.

refactor: Create floating window mgr component

feat: Add tiling window manager with slider

build: Update frontend versions

fix(session-viewer): Disable pointer event while resizing sessions

This commit fixes a small bug that was introduced in #1150.

When the pointer events are not disabled on the iframe, some pointer events
are "stolen" by the iframe. Therefore, they can not be used by our event handlers.
This led to a "jumpy" behaviour while resizing.

fix: Get reorder path working

fix: Undo rebase errors

feat: Add tiling window manager with slider

fix: Get reorder path working

Revert "build: Update frontend versions"

This reverts commit 800f6ce.

build: Update frontend versions

build(deps-dev): bump alembic from 1.12.0 to 1.12.1 in /backend

Bumps [alembic](https://github.com/sqlalchemy/alembic) from 1.12.0 to 1.12.1.
- [Release notes](https://github.com/sqlalchemy/alembic/releases)
- [Changelog](https://github.com/sqlalchemy/alembic/blob/main/CHANGES)
- [Commits](https://github.com/sqlalchemy/alembic/commits)

---
updated-dependencies:
- dependency-name: alembic
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

docs(user): Add instructions for secondary click on macOS

The usual option to press `Control` while clicking doesn't work
in RDP-sessions on macOS. The `Control` can't be evaluated and mapped
properly. It's passed to the Linux container, which can't handle the
`Control` key.

refactor: Create floating window mgr component

feat: Add tiling window manager with slider

build: Update frontend versions

fix(session-viewer): Disable pointer event while resizing sessions

This commit fixes a small bug that was introduced in #1150.

When the pointer events are not disabled on the iframe, some pointer events
are "stolen" by the iframe. Therefore, they can not be used by our event handlers.
This led to a "jumpy" behaviour while resizing.

fix: Migrate logic for button showing to Angular 17 blocks

fix: replace if statement with rxjs filtering

fix: Remove unused matdialog declaration

fix: Shift logic for project check to come before sending data

fix: Refactor data model for reordering view

fix: Rename all related instances of reorderModels to reorderModelsDialog

fix: Update for loop of models to Angular 17 format

fix: Separate out patchModel to reduce duplication in model updates

fix: Manually format html

fix: use model ids in place of names and rename patch function
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants