You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@community.apache.org by se...@apache.org on 2026/02/12 15:42:22 UTC
svn commit: r1931826 - in comdev/reporter.apache.org/branches/tooling-project/site/wizard/js: . source
Author: sebb
Date: Thu Feb 12 15:42:22 2026
New Revision: 1931826
Log:
Show response message if present
Also fix some Whimsy references
Modified:
comdev/reporter.apache.org/branches/tooling-project/site/wizard/js/source/drafts.js
comdev/reporter.apache.org/branches/tooling-project/site/wizard/js/source/unified.js
comdev/reporter.apache.org/branches/tooling-project/site/wizard/js/wizard.js
Modified: comdev/reporter.apache.org/branches/tooling-project/site/wizard/js/source/drafts.js
==============================================================================
--- comdev/reporter.apache.org/branches/tooling-project/site/wizard/js/source/drafts.js Thu Feb 12 12:45:02 2026 (r1931825)
+++ comdev/reporter.apache.org/branches/tooling-project/site/wizard/js/source/drafts.js Thu Feb 12 15:42:22 2026 (r1931826)
@@ -170,7 +170,11 @@ function report_published(state, json) {
modal("Your report was successfully posted to the board agenda!");
draft_stepper.editor.check_changes(true);
} else {
- modal("Something went wrong, and we couldn't publish your report.<br/>Please check with the Whimsy tool to see if there is already a report posted!");
+ if (json && json.message) {
+ modal(`We couldn't publish your report: Error:<br/>${json.message}`);
+ } else {
+ modal("Something went wrong, and we couldn't publish your report.<br/>Please check with the Whimsy tool to see if there is already a report posted!");
+ }
}
// Force whimsy reload of report meta data
Modified: comdev/reporter.apache.org/branches/tooling-project/site/wizard/js/source/unified.js
==============================================================================
--- comdev/reporter.apache.org/branches/tooling-project/site/wizard/js/source/unified.js Thu Feb 12 12:45:02 2026 (r1931825)
+++ comdev/reporter.apache.org/branches/tooling-project/site/wizard/js/source/unified.js Thu Feb 12 15:42:22 2026 (r1931826)
@@ -271,7 +271,7 @@ function UnifiedEditor_compile() {
text += "Your report could possibly use some more work, and that's okay! You can always save your current report as a draft and return later to work more on it. Drafts are saved for up to two months.";
}
else {
- text += "That's it, your board report compiled a-okay and is potentially ready for submission! If you'd like more time to work on it, you can save it as a draft, and return later to make some final edits. Or you can publish it to the agenda via Whimsy.";
+ text += "That's it, your board report compiled a-okay and is potentially ready for submission! If you'd like more time to work on it, you can save it as a draft, and return later to make some final edits. Or you can publish it to the agenda via the BAT.";
}
text += "<br/><button class='btn btn-warning' onclick='save_draft();'>Save as draft</button>"
if (!meta_data.found) {
Modified: comdev/reporter.apache.org/branches/tooling-project/site/wizard/js/wizard.js
==============================================================================
--- comdev/reporter.apache.org/branches/tooling-project/site/wizard/js/wizard.js Thu Feb 12 12:45:02 2026 (r1931825)
+++ comdev/reporter.apache.org/branches/tooling-project/site/wizard/js/wizard.js Thu Feb 12 15:42:22 2026 (r1931826)
@@ -1183,7 +1183,11 @@ function report_published(state, json) {
modal("Your report was successfully posted to the board agenda!");
draft_stepper.editor.check_changes(true);
} else {
- modal("Something went wrong, and we couldn't publish your report.<br/>Please check with the Whimsy tool to see if there is already a report posted!");
+ if (json && json.message) {
+ modal(`We couldn't publish your report: Error:<br/>${json.message}`);
+ } else {
+ modal("Something went wrong, and we couldn't publish your report.<br/>Please check with the Whimsy tool to see if there is already a report posted!");
+ }
}
// Force whimsy reload of report meta data
@@ -2691,7 +2695,7 @@ function UnifiedEditor_compile() {
text += "Your report could possibly use some more work, and that's okay! You can always save your current report as a draft and return later to work more on it. Drafts are saved for up to two months.";
}
else {
- text += "That's it, your board report compiled a-okay and is potentially ready for submission! If you'd like more time to work on it, you can save it as a draft, and return later to make some final edits. Or you can publish it to the agenda via Whimsy.";
+ text += "That's it, your board report compiled a-okay and is potentially ready for submission! If you'd like more time to work on it, you can save it as a draft, and return later to make some final edits. Or you can publish it to the agenda via the BAT.";
}
text += "<br/><button class='btn btn-warning' onclick='save_draft();'>Save as draft</button>"
if (!meta_data.found) {