Skip to content
This repository has been archived by the owner on Nov 16, 2023. It is now read-only.

Basic project cleanup tasks #15

Merged
merged 14 commits into from
Sep 26, 2017
Merged

Basic project cleanup tasks #15

merged 14 commits into from
Sep 26, 2017

Conversation

sthewissen
Copy link
Contributor

No description provided.

@jamesmontemagno
Copy link
Member

I had a few comments, mostly on making sure not to break UWP/Android.

@@ -75,7 +76,7 @@ public static MyProfileViewModel Instance
private string _strMeImage = "Me.png";
private string _strNotificationsImage = "Notifications.png";
private string _strSupportImage = "Support.png";
private string _strSettingsImage = "Settings.png";
private string _strSettingsImage = "icon_settings.png";
Copy link
Member

Choose a reason for hiding this comment

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

We need to be careful here. I don't like how these are all setup and we should standardize on a name for all icons.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I'm not even sure why these are being bound. Looks like its done to have the same image be culture specific, but there are better ways to do that I'd say (e.g. a ValueConverter). For cleanliness sake I wouldn't want this kind of stuff in the business part (where it is now) since it's a UI thing.

Copy link
Member

Choose a reason for hiding this comment

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

I added a new document, we should to through ALL of the images, rename them and then do a OnPlatform for UWP for the Assets folder where they actually belong.

Copy link
Member

Choose a reason for hiding this comment

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

I agree, they should NOT be in there at all (the viewmodels that is). It doesn't feel right and isn't necessary.

@@ -19,6 +19,8 @@ public partial class App : Application

#region Public Fields

public static App Instance;
Copy link
Member

Choose a reason for hiding this comment

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

App already has an instance to itself with Application.Current

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Updated code using Application.Current instead and removed Instance.

<?xml version="1.0" encoding="utf-8" ?>
<ContentPage xmlns="http://xamarin.com/schemas/2014/forms"
<?xml version="1.0" encoding="utf-8" ?>
<local:ModalPage Title="Sign in" xmlns="http://xamarin.com/schemas/2014/forms"
Copy link
Member

Choose a reason for hiding this comment

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

Why do we have a modal page? I am going to wrap all modal pages in a navigation page with a close button on the top right.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

This was done for iOS because it behaves badly when modal pages and status/navigation bar colors are concerned. What would happen is when you tapped the Sign in button (white status bar) the modal page shows (black status bar) but going back the statusbar won't turn white again. This is fixed through a custom renderer based on ModalPage. If there's a way to check if ContentPage is currently shown modal I'd love to hear it.

Copy link
Member

Choose a reason for hiding this comment

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

So this wont be a problem if we wrap the page in a NavigationPage! I added this to the guidelines. This will ensure that it is correct.

Copy link

@edsnider edsnider Sep 22, 2017

Choose a reason for hiding this comment

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

Shouldn't "Close"/"Cancel" go in the top left for iOS modals? My understanding is top right is for things like "Save"/"Done" or to take some type of action.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Most likely should. Will change it ASAP.

Copy link
Member

Choose a reason for hiding this comment

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

Yeah, so I think we should not add a custom renderer for that as it isn't really needed and will cause some weird stuff on other platforms.

On the bottom of a page can be Save button and then on the top right will be Close/Cancel always. This just simplifies it across all platforms

- Renamed existing images
- Trimmed away a lot of images
- Moved stuff into asset catalogs
@jamesmontemagno
Copy link
Member

So @sthewissen, we will also need to update UWP and Android icons names to match so they run correctly to. Additionally since all UWP images should be in the "Assets" folder we should update all of them to use the OnPlatform so they display correct.

Are you up to do that in this PR?

@sthewissen
Copy link
Contributor Author

sthewissen commented Sep 22, 2017

Sure, can do that. I still have a whole lot of images in the iOS side of things that I think aren't being used. Let me get rid of those first so I have some sort of baseline to tweak the other ones to :)

Also this kind of stuff: https://github.com/Microsoft/mvp/blob/master/MVP/MVP/MVP/Helpers/CommonConstants.cs#L91

I can leave it in there for now, might take some effort to get rid of it all. Especially since I have no way of testing all the functionality since there's no "dummy" MVP in there.

@jamesmontemagno
Copy link
Member

I think the contribution type icons that are hard coded should be in a converter.

I appreciate it and we should remove any images that aren't needed from others as it is confusing.

@sthewissen
Copy link
Contributor Author

  • Moved the type icon to a converter, but it's still working on some string matching magic which I don't consider ideal. For now it's moved as is.
  • Cleaned up all unused images for all platforms (tested on Droid and iOS, WinPhone verification needed).
  • Removed the activities part on the profile page and moved it to contributions tab

@jamesmontemagno
Copy link
Member

I should be able to test out Windows 10 on Sunday.

@sthewissen sthewissen changed the title Basic iOS look and feel update Basic project cleanup tasks Sep 25, 2017
@microsoft microsoft deleted a comment from msftclas Sep 26, 2017
@microsoft microsoft deleted a comment from msftclas Sep 26, 2017
@jamesmontemagno
Copy link
Member

jamesmontemagno commented Sep 26, 2017

Was able to pull this down today.

Only issue was in : SignOutHelper in Android needs a new namespace to be brought in.

This will eventually go away though to be honest as the signout should just bring you back to the sign in page :)

After that, I approve!

@jamesmontemagno jamesmontemagno changed the base branch from master to pr_review September 26, 2017 20:25
@jamesmontemagno
Copy link
Member

Guess who has permissions to this repo now!!!! <3 I think I figure this stuff out

@jamesmontemagno jamesmontemagno changed the base branch from pr_review to master September 26, 2017 20:26
@jamesmontemagno jamesmontemagno changed the base branch from master to dev September 26, 2017 20:31
@jamesmontemagno jamesmontemagno merged commit 6bb023a into microsoft:dev Sep 26, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants