Repository navigation
Conversation
Currently displays the file name, but no reason this cannot be expanded to display additional info.
| const file = this.props.changes.selectedFile | ||
| let filePath: string | null = null | ||
|
|
||
| if (file) { |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
| import * as React from 'react' | ||
|
|
||
| interface IChangedFileDetailsProps { | ||
| readonly filePath: string | null |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
| readonly filePath: string | null | ||
| } | ||
|
|
||
| export class ChangedFileDetails extends React.Component<IChangedFileDetailsProps, void> { |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
| ) | ||
| } | ||
|
|
||
| filePath = file.path |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
| import * as React from 'react' | ||
|
|
||
| interface IChangedFileDetailsProps { | ||
| readonly filePath: string | null |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
|
💥 |
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 🆒? |

This PR fixes issue #693
Adds the selected file's full path above the diff viewer. This PR is ready for review.
Before
After
@donokuda would you mind styling this?