Skip to content
This repository was archived by the owner on Jun 21, 2023. It is now read-only.

Conversation

@grokys
Copy link
Contributor

@grokys grokys commented Jun 20, 2016

We still need to decide on the wording for when the current Team Explorer context isn't a git repository.

grokys and others added 9 commits June 16, 2016 16:06
To GitHub pane. XAML compiler crashing on compiling the view though :(
It was null on load, and works without it.
Seems you can't assign text directly to the `Content` of a subclass of
`UserControl`.
…oller-properly' into fixes/356-not-a-github-repository

Conflicts:
src/GitHub.VisualStudio/UI/Views/GitHubPaneViewModel.cs
VM not actually doing anything yet though.
Shows the Team Explorer Sync page and opens the GitHub publish section.
When the GitHub pane is open and the project is not a git repository,
display a (placeholder) message.
Enterprise,
Other,
NonGitRepository,
}
Copy link
Contributor

@shana shana Jun 21, 2016

Choose a reason for hiding this comment

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

Move the Other value up to the first position, or add a None value. enums always have a default value, and distinguishing between DotCom and haven't probed yet / this is a default is hard if they're the same value.

EDIT: maybe Unknown...

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Well strictly speaking, the Unknown state is RepositoryOrigin == null as the RepositoryOrigin property is currently nullable, because it came from the nullable IsGitHubRepo property. However I agree that it would be better the have that Unknown value as an enum value rather than the null state: will change.

@shana
Copy link
Contributor

shana commented Jun 22, 2016

The current messages look fine for now. We can refine them during the beta phase.
All these strings should be in the resx file in GitHub.VisualStudio.UI. Check for existing strings in there that can be used, I'm sure the Getting Started phrase is in there already.

@shana
Copy link
Contributor

shana commented Jun 22, 2016

⚽ back to you!

grokys added 3 commits June 22, 2016 12:30
Make the `RepositoryOrigin` property non-nullable and use
`RepositoryOrigin.Unknown` as the unknown value.
@grokys
Copy link
Contributor Author

grokys commented Jun 22, 2016

Ok,.those changes made.

@shana
Copy link
Contributor

shana commented Jun 22, 2016

thumbs-up

@shana shana merged commit 8d08c3c into master Jun 22, 2016
@shana shana deleted the fixes/356-not-a-github-repository branch June 22, 2016 11:56
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants