Skip to content

A platform for community discussion. Free, open, simple.

UX: Banish rewind gibberish from locale file (#38227)

Martin Brennan6dfa59ea612b
diff --git a/plugins/discourse-rewind/assets/javascripts/discourse/components/rewind.gjs b/plugins/discourse-rewind/assets/javascripts/discourse/components/rewind.gjs
index f7c7ba4eb56..cf05542d2d7 100644
--- a/plugins/discourse-rewind/assets/javascripts/discourse/components/rewind.gjs
+++ b/plugins/discourse-rewind/assets/javascripts/discourse/components/rewind.gjs
@@ -366,9 +366,20 @@ export default class Rewind extends Component {
{{#if this.cannotViewRewind}}
<div class="rewind-error">
- {{htmlSafe
- (i18n "discourse_rewind.cannot_view_rewind_gibberish")
- }}
+ <div class="rewind-gibberish">
+ <p class="rewind-gibberish__title">[ACCESS DENIED::REWIND
+ MAINFRAME SUBROUTINE FAILURE]</p>
+ <p>Bootstrapping anomaly log...</p>
+
+ <p><span class="rewind-gibberish__code-line">>> quantum buffer
+ underrun ⧛</span><br />
+ <span class="rewind-gibberish__code-line">>> cross-node
+ parity drift (Δ=004.33)</span><br />
+ <span class="rewind-gibberish__code-line">>> packet ϟ
+ fragment at offset ∇47</span><br />
+ <span class="rewind-gibberish__code-line">>> flux conduit
+ handshake TIMED OUT</span><br /></p>
+ </div>
{{htmlSafe (i18n "discourse_rewind.cannot_view_rewind")}}
</div>
{{/if}}
diff --git a/plugins/discourse-rewind/assets/stylesheets/common/rewind.scss b/plugins/discourse-rewind/assets/stylesheets/common/rewind.scss
index 9087804ab48..adf9a38c0ba 100644
--- a/plugins/discourse-rewind/assets/stylesheets/common/rewind.scss
+++ b/plugins/discourse-rewind/assets/stylesheets/common/rewind.scss
@@ -286,3 +286,9 @@
border-right-color: transparent;
}
}
+
+.rewind-gibberish {
+ &__code-line {
+ margin-left: var(--space-4);
+ }
+}
diff --git a/plugins/discourse-rewind/config/locales/client.en.yml b/plugins/discourse-rewind/config/locales/client.en.yml
index 832ec8f349d..15125c28b91 100644
--- a/plugins/discourse-rewind/config/locales/client.en.yml
+++ b/plugins/discourse-rewind/config/locales/client.en.yml
@@ -10,15 +10,6 @@ en:
title: Rewind
loading: "Reticulating splines..."
viewing_other_user: "You are viewing <strong>%{username}'s</strong> Discourse Rewind report."
- cannot_view_rewind_gibberish: >
- [ACCESS DENIED::REWIND MAINFRAME SUBROUTINE FAILURE]<br><br>
-
- Bootstrapping anomaly log...<br><br>
-
- &nbsp;&nbsp;>> quantum buffer underrun ⧛<br>
- &nbsp;&nbsp;>> cross-node parity drift (Δ=004.33)<br>
- &nbsp;&nbsp;>> packet ϟ fragment at offset ∇47<br>
- &nbsp;&nbsp;>> flux conduit handshake TIMED OUT<br><br>
cannot_view_rewind: >
You cannot view this Discourse Rewind report. Maybe the owner has not shared it publicly?<br><br>
@@ -135,7 +126,7 @@ en:
reply_1: "lol awesome B-)"
# This string uses the ICU Message Format. See https://meta.discourse.org/t/7035 for translation guidelines.
message_2_MF: |
- You had { dm_count, plural,
+ You had { dm_count, plural,
one {<strong>#</strong> DM conversation}
other {<strong>#</strong> DM conversations}
} with { channel_count, plural,