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

Improve file history picker UX #2785

Merged
merged 4 commits into from
Mar 12, 2021
Merged

Improve file history picker UX #2785

merged 4 commits into from
Mar 12, 2021

Conversation

grouma
Copy link
Member

@grouma grouma commented Mar 11, 2021

Related to #2784

Mirror the file picker UX in Chrome which shows file results in two lines, the first line is simply the file name, the second line is the entire path potentially truncated. This helps for very long files as it's difficult to distinguish between truncated file names, especially in the history workflow as we do not have a tooltip.

Screen Shot 2021-03-10 at 5 10 15 PM

@grouma grouma requested a review from kenzieschmoll March 11, 2021 01:13
@@ -353,6 +353,9 @@ class FileNode extends TreeNode<FileNode> {
}

class ScriptRefUtils {
static String fileName(ScriptRef scriptRef) =>
Copy link
Member

Choose a reason for hiding this comment

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

wasn't this landed in your last PR?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yeh. Just need to merge master.

scriptRef.uri,
overflow: TextOverflow.ellipsis,
maxLines: 1,
style: const TextStyle(fontSize: 14.0, color: Colors.grey),
Copy link
Member

Choose a reason for hiding this comment

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

can you used theme.subtleTextStyle here instead?

Copy link
Member Author

Choose a reason for hiding this comment

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

Done.

Copy link
Member

Choose a reason for hiding this comment

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

also not sure if i missed this in your last PR, but if we are changing the color manually to gray there too, can we use subtle instead?

Copy link
Member Author

Choose a reason for hiding this comment

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

I'll update it in this PR and land it here.

@grouma grouma merged commit a05ebe4 into master Mar 12, 2021
@grouma grouma deleted the history-picker branch March 12, 2021 00:27
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