Skip to content

Commit

Permalink
CLDR-17462 update ST status icons for clarity (#3763)
Browse files Browse the repository at this point in the history
  • Loading branch information
srl295 authored May 30, 2024
1 parent e04fe2f commit f9b3376
Show file tree
Hide file tree
Showing 5 changed files with 25 additions and 20 deletions.
11 changes: 7 additions & 4 deletions tools/cldr-apps/js/src/esm/cldrTable.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -676,16 +676,19 @@ function getStatusIcon(statusClass) {
switch (statusClass) {
case "approved":
case "contributed":
return "✓"; // U+2713
case "missing":
case "provisional":
case "unconfirmed":
return "✘"; // U+2718
return cldrText.get(`status_${statusClass}`);
case "inherited-provisional":
case "inherited-unconfirmed":
return "↑"; // U+2191
return (
cldrText.get(`status_inherited`) +
"\u200B" +
getStatusIcon(statusClass.split("-")[1])
);
default:
return "?"; // U+003F
return "\ufffd";
}
}

Expand Down
8 changes: 8 additions & 0 deletions tools/cldr-apps/js/src/esm/cldrText.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -471,6 +471,14 @@ const strings = {
report_notAcceptable: "Not Acceptable",
report_missing: "Missing",

// for approval status, see VoteResolver.Status
status_approved: "✅\uFE0F",
status_contributed: "☑️",
status_provisional: "✖️",
status_unconfirmed: "❌\uFE0F",
status_missing: "🕳️",
status_inherited: "⬆️",

special_about: "About Survey Tool",
special_announcements: "Announcements",
special_account: "Account Settings",
Expand Down
10 changes: 6 additions & 4 deletions tools/cldr-apps/js/src/index.js
Original file line number Diff line number Diff line change
@@ -1,14 +1,16 @@
// This file gets bundled into bundle.js’s cldrBundle global
// From there, it is imported by SurveyTool.includeJavaScript()

// global stylesheets
import "./css/cldrForum.css";
import "../../../cldr-code/src/main/resources/org/unicode/cldr/tool/reports.css";

// module stylesheets need to go here. See cldrVue.mjs
// example: import 'someModule/dist/someModule.css'
import "ant-design-vue/dist/antd.min.css";

// global stylesheets
import "./css/cldrForum.css";
import "../../../cldr-code/src/main/resources/org/unicode/cldr/tool/reports.css";
import "../../../cldr-apps/src/main/webapp/surveytool.css";
import "../../../cldr-apps/src/main/webapp/css/redesign.css";

import * as cldrGui from "./esm/cldrGui.mjs";
import * as cldrVue from "./esm/cldrVue.mjs";
import * as cldrMonitoring from "./esm/cldrMonitoring.mjs";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -209,21 +209,12 @@ private void serveRunnningNormallyPage(

private void includeCss(HttpServletRequest request, PrintWriter out) {
final String contextPath = request.getContextPath();
final String cb = getCacheBustingExtension(request);
out.write(
"<link rel='stylesheet' href='" + contextPath + "/surveytool" + cb + ".css' />\n");
/*
* Note: cldrForum.css is loaded through webpack
*/
// bootstrap.min.css -- cf. bootstrap.min.js elsewhere in this file
out.write(
"<link rel='stylesheet' href='//stackpath.bootstrapcdn.com/bootswatch/3.1.1/spacelab/bootstrap.min.css' />\n");
out.write(
"<link rel='stylesheet' href='"
+ contextPath
+ "/css/redesign"
+ cb
+ ".css' />\n");
}

private static final String DD_CLIENT_TOKEN = System.getenv("DD_CLIENT_TOKEN");
Expand Down
7 changes: 4 additions & 3 deletions tools/cldr-apps/src/main/webapp/surveytool.css
Original file line number Diff line number Diff line change
Expand Up @@ -1703,7 +1703,7 @@ The the following can work here:
*/

/* Kashmiri and Urdu are typically in Nastaliq. Kashmiri in particular uses a letter that is
/* Kashmiri and Urdu are typically in Nastaliq. Kashmiri in particular uses a letter that is
not rendered correctly in Noto Naskh (see CLDR-16595) */

:lang(ks), :lang(ur) {
Expand Down Expand Up @@ -2376,8 +2376,9 @@ span.pathChunk:after
}

.statuscell {
text-align: center;
font-weight: bold;
text-align: right;
font-family: emoji !important;
font-variant-emoji: emoji;
}

.voteDiv .winningStatus {
Expand Down

0 comments on commit f9b3376

Please sign in to comment.