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

DYN-7945 pin home button when reducing library size #15692

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

dnenov
Copy link
Collaborator

@dnenov dnenov commented Nov 29, 2024

Purpose

We calculate and limit the leftmost position of the tabs in the Dynamo screen. After recently implementing a Home button, this PR ensures we follow a similar principle for pinning the Home button consistent with the Tab Items.

UI Changes

DynamoSandbox_8ehs6RDdFP

The Home button will now only travel as far to the left as required to not overlap the button row.

Declarations

Check these if you believe they are true

  • The codebase is in a better state after this PR
  • Is documented according to the standards
  • The level of testing this PR includes is appropriate
  • User facing strings, if any, are extracted into *.resx files
  • All tests pass using the self-service CI.
  • Snapshot of UI changes, if any.
  • Changes to the API follow Semantic Versioning and are documented in the API Changes document.
  • This PR modifies some build requirements and the readme is updated
  • This PR contains no files larger than 50 MB

Release Notes

  • pin the home button similar to the tab items

Reviewers

@QilongTang

FYIs

(FILL ME IN, Optional) Names of anyone else you wish to be notified of

Copy link

github-actions bot commented Nov 29, 2024

UI Smoke Tests

Test: success. 11 passed, 0 failed.
TestComplete Test Result
Workflow Run: UI Smoke Tests
Check: UI Smoke Tests

@@ -3085,6 +3088,28 @@ private void TabItem_MouseLeftButtonUp(object sender, MouseButtonEventArgs e)
this.dynamoViewModel.ShowStartPage = false;
}

private void PinHomeButton()
{
const int FirstTabItemMinimumLeftMarginOffset = 230;
Copy link
Contributor

Choose a reason for hiding this comment

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

These constants are defined in UpdateWorkspaceTabSizes also, can you put them in the class and remove duplicates.

@reddyashish
Copy link
Contributor

LGTM with one comment.

@QilongTang QilongTang changed the title pin home button DYN-7945 pin home button when reducing library size Dec 2, 2024
@QilongTang QilongTang added this to the 3.5 milestone Dec 2, 2024
Copy link

@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.

See the ticket for this pull request: https://jira.autodesk.com/browse/DYN-7945

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.

3 participants