From 38717fa5801991176d357f3e9ab6fdafe1bd22f4 Mon Sep 17 00:00:00 2001 From: Jingsi Lu <5789435+qcdyx@users.noreply.github.com> Date: Wed, 20 Sep 2023 10:49:11 -0400 Subject: [PATCH] initialized tooltip in the report.html (#1581) return non-empty string when getting comment for field in NoticeView Co-authored-by: jcpitre Co-authored-by: David Gamez <1192523+davidgamez@users.noreply.github.com> --- .../gtfsvalidator/report/model/NoticeView.java | 6 +++++- main/src/main/resources/report.html | 7 ++++++- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/main/src/main/java/org/mobilitydata/gtfsvalidator/report/model/NoticeView.java b/main/src/main/java/org/mobilitydata/gtfsvalidator/report/model/NoticeView.java index 2bb68c0130..b6047f0d90 100644 --- a/main/src/main/java/org/mobilitydata/gtfsvalidator/report/model/NoticeView.java +++ b/main/src/main/java/org/mobilitydata/gtfsvalidator/report/model/NoticeView.java @@ -69,7 +69,11 @@ public SeverityLevel getSeverityLevel() { * @return description text */ public String getCommentForField(String field) { - return comments.getFieldComment(field); + if (field.isBlank()) { + return field; + } else { + return comments.getFieldComment(field); + } } /** * Returns the description text for the notice. diff --git a/main/src/main/resources/report.html b/main/src/main/resources/report.html index 9debb700e2..5a0544601c 100644 --- a/main/src/main/resources/report.html +++ b/main/src/main/resources/report.html @@ -4,6 +4,12 @@ GTFS Schedule Validation Report + +