Skip to content

Commit

Permalink
Add Pre-send warning for 1.38.1 bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Samq64 committed May 31, 2024
1 parent 8368e6c commit ddbb516
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 1 deletion.
4 changes: 4 additions & 0 deletions i18n/en.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,10 @@ FeedbackPage:
Heading: We can't punish people. We are not the Scratch Team.
Description: "Scratch Addons is not affiliated with the Scratch website or the organizations that maintain it. We have no control of the content and the moderation on the Scratch website. {{ .Tag1Start }}There are many ways that you can report on the Scratch website.{{ .Tag1End }}"

MV3LoadBug:
Heading: There is a known issue causing all addons to stop working
Description: "Scratch Addons v1.38.1 has a known issue where using some addons may cause all of them to randomly stop working. This can be teporily worked around by going to chrome://extensions and turning Scratch Addons off and back on again."

# Strings used for /scratch-messaging-transition
SMTPage:
ScratchMessagingLogoAlt: Scratch Messaging Extension logo
Expand Down
6 changes: 5 additions & 1 deletion layouts/shortcodes/specifics/feedback-form.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@
heading: '{{ T "FeedbackPage.PreSendWarning.Variations.Punishment.Heading" }}',
description: '{{ T "FeedbackPage.PreSendWarning.Variations.Punishment.Description" ( dict "Tag1Start" (add $ts 1) "Tag1End" (add $ts 2) ) | htmlEscape }}',
},
MV3LoadBug: {
heading: '{{ T "FeedbackPage.PreSendWarning.Variations.MV3LoadBug.Heading" }}',
description: '{{ T "FeedbackPage.PreSendWarning.Variations.MV3LoadBug.Description" | htmlEscape }}',
}
}
},
submitButton: '{{ T "FeedbackPage.SubmitButton" }}'
Expand All @@ -42,4 +46,4 @@
<label class="form-check-label" for="feedback-addons-list">{{ T "FeedbackPage.SendEnabled" }}</label>
</div>
<button class="btn btn-primary" id="feedback-submit" type="button">{{ T "FeedbackPage.SubmitButton" }}</a>
</form>
</form>
11 changes: 11 additions & 0 deletions static/assets/js/feedback.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,17 @@ const variations = {
/\bst\b/,
]
},
MV3LoadBug: {
strings: {
...i18n.preSendWarning.variations.MV3LoadBug
},
patterns: [
/\baddons.*broke(?:n)?\b/,
/\bcrash(?:ed|es|ing)?\b/,
/\b(do(n't|esn't|\snot)|won't).*(load|work)\b/,
/\b(is\snot|isn't|stopped).*(loading|working)\b/,
]
},
}

let lastFeedbackRequestTime = localStorage.getItem("lastFeedbackRequestTime")
Expand Down

0 comments on commit ddbb516

Please sign in to comment.