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

my packages empty screen user not logged in #14610

Merged
merged 1 commit into from
Nov 16, 2023

Conversation

dnenov
Copy link
Collaborator

@dnenov dnenov commented Nov 14, 2023

Purpose

A new empty screen message added when the user has not logged in. When going to the MyPackages tab, if the user has not logged in yet, the following screen will prompt them to.

image

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

  • now displays empty screen message if the user has not logged in

Reviewers

@reddyashish

FYIs

@Amoursol

- now displays empty screen message if the user has not logged in
@@ -634,8 +639,6 @@ private void PopulateMyPackages()
// We should have already populated the CachedPackageList by this step
if (PackageManagerClientViewModel.CachedPackageList == null ||
!PackageManagerClientViewModel.CachedPackageList.Any()) return;
// We need the user to be logged in, otherwise there is no point in runnig this routine
if (PackageManagerClientViewModel.LoginState != Greg.AuthProviders.LoginState.LoggedIn) return;
Copy link
Contributor

Choose a reason for hiding this comment

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

Shouldn't we return here in PopulateMyPackages() if the user is not logged in?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

We are, we are! This was an odd one, I don't know if it was me who coded this previously, but we had this check twice in a roll, which doesn't make any sense. Check out a tiny bit further down line 464:

https://github.com/DynamoDS/Dynamo/pull/14610/files/bb856d807375c41efd392535fda5206197e5915a#diff-bb521c95d6777ba5ae6d31b92bdd9cf63d44eae8b06941efac80648554ecc287R646

The only difference is that we are initializing the SearchMyResults, so it's not a null anymore, which allows us to set the screen later on.

@reddyashish reddyashish marked this pull request as ready for review November 14, 2023 22:24
@reddyashish reddyashish added this to the 3.0 milestone Nov 14, 2023
@reddyashish reddyashish merged commit 0d5e6cc into DynamoDS:master Nov 16, 2023
20 checks passed
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