-
Notifications
You must be signed in to change notification settings - Fork 543
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
Combined Resources View #987
Conversation
This looks fantastic @tlmii! Did you try having a separate "ID" column rather than appending it to the name? Just curious how that looks and feels for quickly scanning. |
Looks great! Might be overlooking, but when results are filtered by Resource Type, is there an easy way to tell they are filtered? |
/azp where |
Azure DevOps orgs getting events for this repository: |
@DamianEdwards I did, and it was fine. But the minimum width required for a column and the small amount of data in it for the PID or shortened container ID seemed a bit wasteful when other columns were ending up truncated very quickly. The scanning was definitely a bit better, though the PID/CID combined into one column still leaves some visual scanning issues. I can bring that back if you'd prefer, though. |
@tlmii I wouldn't block on it now. I imagine we'll be making lots of changes to this view for a while yet 😄 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approving from a purely "product" point of view. I'll let others handle the code 😄
Can't wait to get this change in!
Why is "All" checked if "Project" is unchecked? It would be nice if the UI showed that half-checked box (a dash or square?) in "All". See https://developer.mozilla.org/en-US/docs/Web/CSS/:indeterminate I don't think FluentUI supports it though. cc @vnbaaij The source column is really large. It looks fine in this screenshot, but a lot of people will have small screens. They'll see a lot of truncated columns. I wonder if there is something we can do to truncate source paths in a more intelligent way so we can reduce the source column size. Today the content is always trimmed at the end. We really want the opposite. For example, trimming
This feels like a common problem. Is there a JS library for truncating paths? Could be a future issue. |
Maybe just get rid of "All". |
Definitely don't block on this but I kind of like the idea of a card view. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Merge it!
Its not exposed in the blazor component, and its only awkwardly exposed in the underlying web component. But Fluent UI does actually support it. I figured out how to get it working:
Agree completely on this. I debated for a bit seeing if we could do something where we only showed what was different between the projects. E.g:
But I figured it warranted some more investigation into the standard/common way of doing this (as well as what libraries are available) and that didn't fit well with this PR. I'll file another issue. |
I changed it so the button is highlighted if anything is filtered out, e.g.: And I added a title and an aria-label to the button that says whether it is filtered or not. This may not be enough long-term but I think its a good start. |
<FluentNavLink Icon="@(new Icons.Regular.Size24.BinFull())" Href="/Containers">Containers</FluentNavLink> | ||
<FluentNavLink Icon="@(new Icons.Regular.Size24.AppGeneric())" Href="/Executables">Executables</FluentNavLink> | ||
<FluentNavLink Icon="@(new Icons.Regular.Size24.AppFolder())" Href="/" Match="NavLinkMatch.All">Resources</FluentNavLink> | ||
@* <FluentNavLink Icon="@(new Icons.Regular.Size24.BinFull())" Href="/Containers">Containers</FluentNavLink> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove
private async Task WriteProjectChange(ProjectViewModel projectViewModel, ObjectChangeType changeType = ObjectChangeType.Modified) | ||
{ | ||
await _projectViewModelChangesChannel.Writer.WriteAsync( | ||
new ResourceChanged<ProjectViewModel>(changeType, projectViewModel), _cancellationToken) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can create resourechanged only once and reuse.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The generic type is different (ResourceChanged<ProjectViewModel>
vs ResourceChanged<ResourceViewModel>
) so we can't do that. I guess maybe we could add an IResourceChanged and use generic variance to make it work? But that seemed outside the scope.
Resolves #892
This differs a bit from the screenshots that I showed in #892 (comment) for a few reasons that I'll try to address below as I detail the changes.
The GH diff viewer treated Index.razor -> Resources.razor as a rename rather than a delete and add, and that is somewhat helpful in seeing what actually changed from the old pages to the new single page.
/
that shows all resources, regardless of type. Default ordering is by type ascending and then by name ascending.