Skip to content

Conversation

johnsimons
Copy link
Member

@johnsimons johnsimons commented Mar 13, 2025

This PR refactors the tabs views for the message to be their components

@johnsimons johnsimons self-assigned this Mar 13, 2025
import PageHeader from "./components/PageHeader.vue";
import "bootstrap";
import { useServiceControlUrls } from "@/composables/serviceServiceControlUrls";
import "highlight.js/styles/github-dark.css";
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 is moved to the mount.ts

import { useRouter } from "vue-router";
import "bootstrap";
import { monitoringUrl, serviceControlUrl, useIsMonitoringDisabled } from "@/composables/serviceServiceControlUrls";
import "highlight.js/styles/github-dark.css";
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 needed

);
</script>
<template>
<div></div>
Copy link
Member Author

Choose a reason for hiding this comment

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

removed empty divs

});
</script>
<template>
<div></div>
Copy link
Member Author

Choose a reason for hiding this comment

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

removed empty divs

<div v-if="panel === 3 && failedMessage.bodyUnavailable" class="alert alert-info">Message body unavailable.</div>
<FlowDiagram v-if="panel === 4" :conversation-id="failedMessage.conversationId" :message-id="id"></FlowDiagram>
<StackTraceView v-if="panel === 1" :message="failedMessage" />
<BodyView v-if="panel === 2" :message="failedMessage" />
Copy link
Member Author

Choose a reason for hiding this comment

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

moved "message body" to be 2nd tab


const VCodeBlock = createVCodeBlock({
theme: "github-dark",
cssPath: "highlight.js/styles/github-dark.css",
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 is needed, otherwise the highligh.js lib attempts to contact a CDN

@johnsimons johnsimons changed the title Refactor components Refactor message tabs views into separate components Mar 13, 2025
@johnsimons johnsimons marked this pull request as ready for review March 13, 2025 22:49
@johnsimons johnsimons added the Type: Improvement Type: Improvement label Mar 13, 2025
</script>

<template>
<VCodeBlock :code="props.message.exception.stack_trace" lang="csharp"></VCodeBlock>
Copy link
Contributor

@PhilBastian PhilBastian Mar 13, 2025

Choose a reason for hiding this comment

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

should this be csharp highlighted, given that it's a stack trace?

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 no highlighter mode for stack traces, and c# did not look bad, so I went with that one.

Copy link
Contributor

Choose a reason for hiding this comment

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

would plain text be better then?

@johnsimons johnsimons merged commit 1f65b75 into master Mar 13, 2025
5 checks passed
@johnsimons johnsimons deleted the john/audit_messages branch March 13, 2025 23:59
@johnsimons johnsimons added this to the vNext milestone Mar 18, 2025
@johnsimons johnsimons added Type: Refactoring Type: Refactoring and removed Type: Improvement Type: Improvement labels May 12, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Refactoring Type: Refactoring
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants