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

2/3 - Add new decorations #265

Merged
merged 2 commits into from
Apr 13, 2021
Merged

2/3 - Add new decorations #265

merged 2 commits into from
Apr 13, 2021

Conversation

mattseddon
Copy link
Member

@mattseddon mattseddon commented Apr 13, 2021

Addresses several of the points in #207.

Adds decoration to each of the different status types.

@mattseddon mattseddon self-assigned this Apr 13, 2021
@mattseddon mattseddon changed the base branch from master to update-scm-and-decoration April 13, 2021 02:54
}

private static DecorationNotInCache: FileDecoration = {
badge: 'NC',
Copy link
Member Author

Choose a reason for hiding this comment

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

[Q] No idea what to match this one to.

Copy link
Contributor

Choose a reason for hiding this comment

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

I think the ideal color here depends on what action a user is supposed to take on "Not in Cache" files.

If it's best practice to add these files cache ASAP and doing so is easy, we can use colors.conflict to signify that this file should be added to cache.

If "Not in Cache" files are normal, we should pick a more benign Git color to match: conceptually it seems closest to "Modified", but that's just a hunch. If the solution to DVC "Not in Cache" is similar to DVC "modified", then I think using colors.modified for both decorations and depending on badge/tooltip to distinguish the two would be a fine way to go about it.

This is definitely something that'll be good to bring up at a meeting.

@mattseddon mattseddon marked this pull request as ready for review April 13, 2021 03:26
@mattseddon mattseddon changed the title Add new decorations 2/3 - Add new decorations Apr 13, 2021
Copy link
Contributor

@rogermparent rogermparent left a comment

Choose a reason for hiding this comment

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

I think it's best to Approve now to fill in the placeholders and set the stage for 3/3, then address the "Not in Cache" color after.

Base automatically changed from update-scm-and-decoration to master April 13, 2021 19:08
@mattseddon mattseddon merged commit 30998f1 into master Apr 13, 2021
@mattseddon mattseddon deleted the add-new-decorations branch April 13, 2021 19:13
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