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) Some renaming, and smaller fixes #4548

Merged
merged 55 commits into from
May 30, 2024
Merged

(feat) Some renaming, and smaller fixes #4548

merged 55 commits into from
May 30, 2024

Conversation

nilscognite
Copy link
Contributor

@nilscognite nilscognite commented May 28, 2024

Type of change

Feat

Jira ticket 📘

https://cognitedata.atlassian.net/browse/

Description 📝

  • Made the font smaller in the Panel
  • Use the toolbar layout to set the toolbar at right position.
  • Make CommandsUpdater where updates in OnIdle. This will force the updating of the commands will happen only one time for each user interaction (click a button, delete or add an object, set object selected or visible)
  • Rename toolsController -> commandsController since it also store all commands (better naming)
  • Some other ranaming
  • Adding experimental crop box functionality, but not the UI for it
  • Just made the example code even better

How has this been tested? 🔍

Test instructions ℹ️

Checklist ☑️

  • I am proud of this feature.
  • I have performed a self-review of my own code.
  • I have added PR type (Feat, Bug, Chore, Test, Docs, Style, Refactor) to the PR title.
  • I have manually tested this for different scenarios (different models, formats, devices, browsers).
  • I have commented my code in hard-to-understand areas.
  • I have made corresponding changes to the public documentation.
  • I have added unit and visuals tests to prove that my feature works to the best of my ability.
  • I have refactored the code for readability to the best of my ability.
  • I have checked that my changes do not introduce regressions in the public documentation.
  • I have outlined any known defects / lacking capabilities in the contents of this PR.
  • I have listed any remaining work that should follow this PR in the description or jira/miro/etc.
  • I have added TSDoc to any public facing changes.
  • I have added "developer documentation" in any package README.md that is related / applicable to this PR.
  • I have noted down and am currently tracking any technical debt introduced in this PR.
  • I have thoroughly thought about the architecture of this implementation.
  • I have asked peers to test this feature.

@nilscognite nilscognite changed the title (feat) Crop box (feat) Some renaming, and smaller fixes May 29, 2024
@nilscognite nilscognite marked this pull request as ready for review May 30, 2024 09:01
if (this._idleCallbackId < 0) {
return;
}
window.cancelIdleCallback(this._idleCallbackId);
Copy link
Contributor

@pramodcog pramodcog May 30, 2024

Choose a reason for hiding this comment

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

missing renderTarget assignment to undefined in dispose which can cause a memory leak

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks! See f7be729

Copy link
Contributor

@pramodcog pramodcog left a comment

Choose a reason for hiding this comment

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

Nice

@nilscognite nilscognite enabled auto-merge (squash) May 30, 2024 12:26
@nilscognite nilscognite merged commit 0531899 into master May 30, 2024
14 checks passed
@nilscognite nilscognite deleted the np/crop-box branch May 30, 2024 12:29
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