[Add] SpecObject relation matrix view; fixes #18#55
Open
samatstariongroup wants to merge 1 commit into
Open
Conversation
[Add] cancellation capability on matrix [Updarte] set related as default on matrix [Add] virtualization [Improve] scroll bar on matrix page [Add] persist Relation Matrix picker state in the URL [Add] persist Relation Matrix top-left row and column across navigations
antoineatstariongroup
requested changes
May 12, 2026
| private const int CellWidthPx = 36; | ||
|
|
||
| [Parameter] | ||
| public string Identifier { get; set; } |
Contributor
There was a problem hiding this comment.
XML Doc is missing nearly everywhere in the class
| <div class="relation-matrix-wrapper"> | ||
| <div class="matrix-header-row" style="grid-template-columns: @gridTemplate"> | ||
| <div class="corner"></div> | ||
| @foreach (var column in this.VisibleColumns) |
Contributor
There was a problem hiding this comment.
Fix as SQ proposition
| /// </summary> | ||
| private async Task RunBusyAsync(Func<CancellationToken, Task> work) | ||
| { | ||
| this.cts?.Cancel(); |
Contributor
There was a problem hiding this comment.
Fix as proposed
| } | ||
| catch (OperationCanceledException) | ||
| { | ||
| Log.ForContext<RelationMatrixPage>().Information("Recompute cancelled"); |
Contributor
There was a problem hiding this comment.
Fix as proposed
| /// </summary> | ||
| public sealed class RelationMatrixData | ||
| { | ||
| public IReadOnlyList<SpecObject> Rows { get; init; } |
| /// Direction of the <see cref="SpecRelation"/>(s) in a <see cref="MatrixCell"/> relative to the | ||
| /// row <see cref="SpecObject"/> and the column <see cref="SpecObject"/>. | ||
| /// </summary> | ||
| public enum RelationDirection |
Contributor
There was a problem hiding this comment.
split this file into multiple one (one per enum/class) for readiness
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Prerequisites
Description
Adds a relationship matrix to visualize relationships between SpecObjects. The matrix allows to select the kind of SpecObject on the vertical and horizontal axis. It defaults to showing related items only, to show all items can be toggled. When the matrix is large a horizontal bar / spinner is shown with a cancel button. When the user navigates away from the matrix and uses the back button, the settings are remembered as well as the row/column that was visible in the upper left corner such that the matrix is redrawn in the same state as when the user left it.
The user can click on the specobjects in the columns and rows and navigate to the details page of that SpecObject. The user can click on the relationship and navigate to the details page of the relationship. a tooltip is shown when the user hovers over the specobject and when the user hovers over the relationship arrow.