Skip to content

Moved message display to be under /messages #2271

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

Merged
merged 5 commits into from
Mar 13, 2025
Merged

Conversation

johnsimons
Copy link
Member

@johnsimons johnsimons commented Mar 12, 2025

This is in preparation for a new "All messages" area.
The goal is to share the same view for successful and failed messages.
This is a first step in this direction.

@johnsimons johnsimons self-assigned this Mar 12, 2025
updateMessageDeleteDate(message);
await downloadHeadersAndBody(message);
failedMessage.value = message;
} catch (err) {
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 this catch; it was just swalling exceptions

Comment on lines +501 to +502
heading="Are you sure you want to retry this message?"
body="Are you sure you want to retry this message?"
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 looks wrong, I'll fix it in a subsquent PR.
image

Copy link
Contributor

Choose a reason for hiding this comment

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

body could be left empty?

@johnsimons johnsimons marked this pull request as ready for review March 12, 2025 04:35
@@ -0,0 +1,13 @@
<script setup lang="ts">
Copy link
Contributor

Choose a reason for hiding this comment

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

from memory, redirect can be configured in the router config directly, rather than having to have a separate component

Comment on lines +501 to +502
heading="Are you sure you want to retry this message?"
body="Are you sure you want to retry this message?"
Copy link
Contributor

Choose a reason for hiding this comment

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

body could be left empty?

@@ -96,10 +96,15 @@ const config: RouteItem[] = [
{
path: routeLinks.failedMessage.message.template,
title: "Message",
component: () => import("@/components/failedmessages/MessageView.vue"),
component: () => import("@/components/failedmessages/MessageRedirectForBackwardsCompatibility.vue"),
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 redirects can be done directly rather than through a component

@johnsimons johnsimons enabled auto-merge March 13, 2025 01:50
@johnsimons johnsimons merged commit 3803685 into master Mar 13, 2025
5 checks passed
@johnsimons johnsimons deleted the john/message_view branch March 13, 2025 01:57
@johnsimons johnsimons added the Type: Improvement Type: Improvement label Mar 13, 2025
@johnsimons johnsimons added this to the vNext milestone Mar 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Improvement Type: Improvement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants