Skip to content

Conversation

johnsimons
Copy link
Member

No description provided.

@johnsimons johnsimons requested a review from PhilBastian April 9, 2025 06:52
@johnsimons johnsimons self-assigned this Apr 9, 2025
Copy link
Member Author

Choose a reason for hiding this comment

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

This svg graph was incorrect, this is now fixed in this 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.

There is a different PR that pulls this out

"bootstrap": "^5.3.5",
"bootstrap-icons": "^1.11.3",
"codemirror": "^6.0.1",
"hex-to-css-filter": "^6.0.0",
Copy link
Member Author

Choose a reason for hiding this comment

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

lib to help convert hex to filter

Copy link
Member Author

Choose a reason for hiding this comment

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

This change was pulled out into its own PR

<p>No heartbeat data received for this {{ tooltipTarget }}.</p>
<p>Have you installed and configured the <a target="_blank" href="https://docs.particular.net/monitoring/heartbeats/install-plugin">heartbeats plugin</a> for this {{ tooltipTarget }}?</p>
</template>
<span title="Last Heartbeat">No data available</span>
Copy link
Member Author

Choose a reason for hiding this comment

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

This was causing a double up of tooltips

message.headers.findIndex(function (x) {
return x.key === NServiceBusHeaders.ExceptionInfoExceptionType;
}) > -1,
isError: message.status !== MessageStatus.Successful && message.status !== MessageStatus.ResolvedSuccessfully,
Copy link
Member Author

Choose a reason for hiding this comment

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

easier logic and also handles messages that have been resolved and should no longer be displayed as errors even though they do have a stacktrace

Comment on lines +87 to +89
level: 0,
width: 0,
XPos: 0,
Copy link
Member Author

Choose a reason for hiding this comment

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

This makes it easier as there is no need to ignore nulls

}
function constructNodes(mappedMessages: MappedMessage[]): Node[] {
function constructNodes(mappedMessages: MappedMessage[]): Node<MappedMessage>[] {
Copy link
Member Author

Choose a reason for hiding this comment

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

adding type to data

}
const nodes = constructNodes(mappedMessages);
const edges = constructEdges(nodes.map((n) => n.data as MappedMessage));
Copy link
Member Author

Choose a reason for hiding this comment

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

only passing the result of constructNodes to make up the edges, this prevents edges without parents

<TextEllipses class="address" :text="`${data.sendingEndpoint.name}@${data.sendingEndpoint.host}`" />
</div>
<div class="node" :class="{ error: data.isError, 'current-message': data.id === store.state.data.id }">
<div class="node-text wordwrap">
Copy link
Member Author

Choose a reason for hiding this comment

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

not used

@johnsimons johnsimons force-pushed the john/flowdiag2 branch 2 times, most recently from 421f155 to 56f47c7 Compare April 10, 2025 00:12
<strong>
<RouterLink v-if="data.isError" :to="{ path: routeLinks.messages.failedMessage.link(data.id) }">{{ data.nodeName }}</RouterLink>
<RouterLink v-else :to="{ path: routeLinks.messages.successMessage.link(data.messageId, data.id) }">{{ data.nodeName }}</RouterLink>
<RouterLink v-if="data.isError" :to="{ path: routeLinks.messages.failedMessage.link(data.id) }"><TextEllipses style="width: 204px" :text="data.nodeName" ellipses-style="LeftSide" /></RouterLink>
Copy link
Contributor

Choose a reason for hiding this comment

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

why fixed width style, and why in pixels?

Copy link
Contributor

Choose a reason for hiding this comment

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

oh, i see, the pixel sizing is taken from the styles below...
still, why did the style have to move from a class to inline?

@johnsimons johnsimons enabled auto-merge April 10, 2025 06:43
@johnsimons johnsimons merged commit df6a848 into master Apr 10, 2025
5 checks passed
@johnsimons johnsimons deleted the john/flowdiag2 branch April 10, 2025 06:49
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