Skip to content

Show selected file's full path - #816

Merged
joshaber merged 6 commits into
masterfrom
test
Jan 18, 2017
Merged

joshaber merged 6 commits into
masterfrom
test

Conversation

@iAmWillShepherd

Copy link
Copy Markdown
Contributor

This PR fixes issue #693

Adds the selected file's full path above the diff viewer. This PR is ready for review.

Before

nofilename

After

fullfilename

@donokuda would you mind styling this?

@joshaber joshaber self-assigned this Jan 18, 2017

@joshaber joshaber left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🎢

Comment thread app/src/ui/changes/index.tsx Outdated
const file = this.props.changes.selectedFile
let filePath: string | null = null

if (file) {

This comment was marked as spam.

import * as React from 'react'

interface IChangedFileDetailsProps {
readonly filePath: string | null

This comment was marked as spam.

This comment was marked as spam.

This comment was marked as spam.

readonly filePath: string | null
}

export class ChangedFileDetails extends React.Component<IChangedFileDetailsProps, void> {

This comment was marked as spam.

@joshaber joshaber left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

🔊

Comment thread app/src/ui/changes/index.tsx Outdated
)
}

filePath = file.path

This comment was marked as spam.

import * as React from 'react'

interface IChangedFileDetailsProps {
readonly filePath: string | null

This comment was marked as spam.

@joshaber

Copy link
Copy Markdown
Contributor

💥

@joshaber
joshaber merged commit 94768dc into master Jan 18, 2017
@joshaber
joshaber deleted the test branch January 18, 2017 19:21
@shiftkey

Copy link
Copy Markdown
Member

One side-effect of this change is that the diff is no longer expanded to fill the available space:

@niik

niik commented Jan 20, 2017

Copy link
Copy Markdown
Member

@donokuda would you mind styling this?

I think a better approach going forward is if we have at least the rudimentary styling in place before a PR gets merged. Me and @donokuda are certainly more than happy adding that last ✨ but I'd love it if we didn't land completely unstyled components. In this case a little padding, a border and an icon would have gotten us almost all the way and we're both here to help with that.

In more complex scenarios when leaving styling out of the PR I think we're going to need something less ephemeral then a mention so maybe a dedicated issue in that case?

@desktop/core 🆒?

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.

4 participants