From 5f20918b7f0026750b92a5fd9c277fb007eced89 Mon Sep 17 00:00:00 2001 From: Bryan Jonker Date: Thu, 7 May 2026 10:22:36 -0500 Subject: [PATCH 1/3] Fix field information display --- ProgramInformationV2.Data/FieldList/CredentialGroup.cs | 4 ++-- ProgramInformationV2.Data/FieldList/FieldItem.cs | 2 +- .../Components/Controls/IsTranscriptable.razor | 2 +- .../Components/Pages/Course/General.razor | 2 +- ProgramInformationV2/Components/Pages/Course/Link.razor | 3 +-- .../Components/Pages/Course/LocationTime.razor | 3 +-- .../Components/Pages/Course/Technical.razor | 3 +-- .../Components/Pages/Credential/General.razor | 2 +- .../Components/Pages/Credential/Link.razor | 3 +-- .../Components/Pages/Credential/Overview.razor | 3 +-- .../Components/Pages/Credential/Security.razor | 8 ++++---- .../Components/Pages/Credential/Technical.razor | 2 +- .../Components/Pages/Credential/Transcriptable.razor | 2 +- .../Components/Pages/Program/General.razor | 2 +- ProgramInformationV2/Components/Pages/Program/Link.razor | 3 +-- .../Components/Pages/Program/Technical.razor | 3 +-- .../Components/Pages/Section/General.razor | 3 +-- .../Components/Pages/Section/LocationTime.razor | 3 +-- .../Components/Pages/Section/Technical.razor | 3 +-- 19 files changed, 23 insertions(+), 33 deletions(-) diff --git a/ProgramInformationV2.Data/FieldList/CredentialGroup.cs b/ProgramInformationV2.Data/FieldList/CredentialGroup.cs index 546f569..95192b7 100644 --- a/ProgramInformationV2.Data/FieldList/CredentialGroup.cs +++ b/ProgramInformationV2.Data/FieldList/CredentialGroup.cs @@ -44,8 +44,8 @@ public CredentialGroup() { new() { Title = "Plan of Study Introduction", CategoryType = CategoryType.Credential, FieldType = FieldType.CourseList, InitialDescription = "This text will be above the plan of study and contains important notes about the plan of study." }, new() { Title = "Is This Credential Transcriptable", CategoryType = CategoryType.Credential, FieldType = FieldType.Transcriptable }, new() { Title = "Transcriptable Name", CategoryType = CategoryType.Credential, FieldType = FieldType.Transcriptable, InitialDescription = "The name the credential will appear as on transcripts." }, - new() { Title = "Major Title", CategoryType = CategoryType.Credential, FieldType = FieldType.Transcriptable, }, - new() { Title = "Minor Title", CategoryType = CategoryType.Credential, FieldType = FieldType.Transcriptable, }, + new() { Title = "Major Title", CategoryType = CategoryType.Credential, FieldType = FieldType.Transcriptable }, + new() { Title = "Minor Title", CategoryType = CategoryType.Credential, FieldType = FieldType.Transcriptable }, new() { Title = "Disclaimer Text", CategoryType = CategoryType.Credential, FieldType = FieldType.Transcriptable, InitialDescription = "Detail any disclaimers that are necessary to add" }, new() { Title = "Display Order", CategoryType = CategoryType.Credential, FieldType = FieldType.Technical, InitialDescription = "Enter a number to indicate where this credential should be listed in the program finder." }, new() { Title = "Internal Search Text", CategoryType = CategoryType.Credential, InitialDescription = "Internal text used to manage search fields. Not displayed to the end user but used in search.", FieldType = FieldType.Technical }, diff --git a/ProgramInformationV2.Data/FieldList/FieldItem.cs b/ProgramInformationV2.Data/FieldList/FieldItem.cs index 47214b9..5c2eeaa 100644 --- a/ProgramInformationV2.Data/FieldList/FieldItem.cs +++ b/ProgramInformationV2.Data/FieldList/FieldItem.cs @@ -7,7 +7,7 @@ public class FieldItem { public string Description { get; set; } = ""; public FieldType FieldType { get; set; } public string InitialDescription { get; set; } = ""; - public bool IsDefault => ShowItem && Description == InitialDescription || string.IsNullOrWhiteSpace(Description); + public bool IsDefault => ShowItem && (Description == InitialDescription || string.IsNullOrWhiteSpace(Description)); public bool IsRequired { get; set; } public bool ShowItem { get; set; } = true; public string Title { get; set; } = ""; diff --git a/ProgramInformationV2/Components/Controls/IsTranscriptable.razor b/ProgramInformationV2/Components/Controls/IsTranscriptable.razor index 6be2864..a9c1c4c 100644 --- a/ProgramInformationV2/Components/Controls/IsTranscriptable.razor +++ b/ProgramInformationV2/Components/Controls/IsTranscriptable.razor @@ -2,7 +2,7 @@ {
- Is This Transcriptable? + @Title
diff --git a/ProgramInformationV2/Components/Pages/Course/General.razor b/ProgramInformationV2/Components/Pages/Course/General.razor index 36fa344..37dbbdd 100644 --- a/ProgramInformationV2/Components/Pages/Course/General.razor +++ b/ProgramInformationV2/Components/Pages/Course/General.razor @@ -7,7 +7,7 @@

General Information

-@if (CourseItem != null) { +@if (CourseItem != null && FieldItems != null) { diff --git a/ProgramInformationV2/Components/Pages/Course/Link.razor b/ProgramInformationV2/Components/Pages/Course/Link.razor index ccc0a0f..73a3b05 100644 --- a/ProgramInformationV2/Components/Pages/Course/Link.razor +++ b/ProgramInformationV2/Components/Pages/Course/Link.razor @@ -7,8 +7,7 @@

Link and Image

-@if (CourseItem != null) -{ +@if (CourseItem != null && FieldItems != null) { diff --git a/ProgramInformationV2/Components/Pages/Course/LocationTime.razor b/ProgramInformationV2/Components/Pages/Course/LocationTime.razor index b26d342..9c55535 100644 --- a/ProgramInformationV2/Components/Pages/Course/LocationTime.razor +++ b/ProgramInformationV2/Components/Pages/Course/LocationTime.razor @@ -6,8 +6,7 @@

Location & Time

- @if (CourseItem != null) - { + @if (CourseItem != null && FieldItems != null) {

Location

diff --git a/ProgramInformationV2/Components/Pages/Course/Technical.razor b/ProgramInformationV2/Components/Pages/Course/Technical.razor index b9b4b95..3dae89c 100644 --- a/ProgramInformationV2/Components/Pages/Course/Technical.razor +++ b/ProgramInformationV2/Components/Pages/Course/Technical.razor @@ -6,8 +6,7 @@

Technical Information

-@if (CourseItem != null) -{ +@if (CourseItem != null && FieldItems != null) { diff --git a/ProgramInformationV2/Components/Pages/Credential/General.razor b/ProgramInformationV2/Components/Pages/Credential/General.razor index ae22f35..ad11b87 100644 --- a/ProgramInformationV2/Components/Pages/Credential/General.razor +++ b/ProgramInformationV2/Components/Pages/Credential/General.razor @@ -7,7 +7,7 @@

General Information

-@if (CredentialItem != null) { +@if (CredentialItem != null && FieldItems != null) { diff --git a/ProgramInformationV2/Components/Pages/Credential/Link.razor b/ProgramInformationV2/Components/Pages/Credential/Link.razor index c4a6054..4370e69 100644 --- a/ProgramInformationV2/Components/Pages/Credential/Link.razor +++ b/ProgramInformationV2/Components/Pages/Credential/Link.razor @@ -7,8 +7,7 @@

Link and Image

-@if (CredentialItem != null) -{ +@if (CredentialItem != null && FieldItems != null) { diff --git a/ProgramInformationV2/Components/Pages/Credential/Overview.razor b/ProgramInformationV2/Components/Pages/Credential/Overview.razor index e3e08b3..a27d139 100644 --- a/ProgramInformationV2/Components/Pages/Credential/Overview.razor +++ b/ProgramInformationV2/Components/Pages/Credential/Overview.razor @@ -8,8 +8,7 @@ - @if (CredentialItem != null) - { + @if (CredentialItem != null && FieldItems != null) {
  • diff --git a/ProgramInformationV2/Components/Pages/Credential/Security.razor b/ProgramInformationV2/Components/Pages/Credential/Security.razor index ec4a734..17aec96 100644 --- a/ProgramInformationV2/Components/Pages/Credential/Security.razor +++ b/ProgramInformationV2/Components/Pages/Credential/Security.razor @@ -8,11 +8,11 @@

    Note that all changes will happen immediately -- you do not need to click a save button to save your changes.

    @if (CredentialItem != null && SecurityEntries != null) -{ - @foreach (var entry in SecurityEntries) { + @foreach (var entry in SecurityEntries) + { - } + } -} + } diff --git a/ProgramInformationV2/Components/Pages/Credential/Technical.razor b/ProgramInformationV2/Components/Pages/Credential/Technical.razor index 5b4ebca..b9baeb2 100644 --- a/ProgramInformationV2/Components/Pages/Credential/Technical.razor +++ b/ProgramInformationV2/Components/Pages/Credential/Technical.razor @@ -7,7 +7,7 @@

    Technical Information

    -@if (CredentialItem != null) { +@if (CredentialItem != null && FieldItems != null) {
      diff --git a/ProgramInformationV2/Components/Pages/Credential/Transcriptable.razor b/ProgramInformationV2/Components/Pages/Credential/Transcriptable.razor index b4e7ae1..8ca6c9e 100644 --- a/ProgramInformationV2/Components/Pages/Credential/Transcriptable.razor +++ b/ProgramInformationV2/Components/Pages/Credential/Transcriptable.razor @@ -7,7 +7,7 @@

      Transcriptable Information

      -@if (CredentialItem != null) { +@if (CredentialItem != null && FieldItems != null) { diff --git a/ProgramInformationV2/Components/Pages/Program/General.razor b/ProgramInformationV2/Components/Pages/Program/General.razor index f4df446..e54a320 100644 --- a/ProgramInformationV2/Components/Pages/Program/General.razor +++ b/ProgramInformationV2/Components/Pages/Program/General.razor @@ -7,7 +7,7 @@

      General Information

      -@if (ProgramItem != null) { +@if (ProgramItem != null && FieldItems != null) { diff --git a/ProgramInformationV2/Components/Pages/Program/Link.razor b/ProgramInformationV2/Components/Pages/Program/Link.razor index 1c67f85..0a39701 100644 --- a/ProgramInformationV2/Components/Pages/Program/Link.razor +++ b/ProgramInformationV2/Components/Pages/Program/Link.razor @@ -7,8 +7,7 @@

      Link and Image

      -@if (ProgramItem != null) -{ +@if (ProgramItem != null && FieldItems != null) { diff --git a/ProgramInformationV2/Components/Pages/Program/Technical.razor b/ProgramInformationV2/Components/Pages/Program/Technical.razor index 28f58ef..6724894 100644 --- a/ProgramInformationV2/Components/Pages/Program/Technical.razor +++ b/ProgramInformationV2/Components/Pages/Program/Technical.razor @@ -6,8 +6,7 @@

      Technical Information

      -@if (ProgramItem != null) -{ +@if (ProgramItem != null && FieldItems != null) { diff --git a/ProgramInformationV2/Components/Pages/Section/General.razor b/ProgramInformationV2/Components/Pages/Section/General.razor index 85ac5f7..d115524 100644 --- a/ProgramInformationV2/Components/Pages/Section/General.razor +++ b/ProgramInformationV2/Components/Pages/Section/General.razor @@ -7,8 +7,7 @@

      General Information

      -@if (SectionItem != null) -{ +@if (SectionItem != null && FieldItems != null) { diff --git a/ProgramInformationV2/Components/Pages/Section/LocationTime.razor b/ProgramInformationV2/Components/Pages/Section/LocationTime.razor index f564e5f..0784d20 100644 --- a/ProgramInformationV2/Components/Pages/Section/LocationTime.razor +++ b/ProgramInformationV2/Components/Pages/Section/LocationTime.razor @@ -6,8 +6,7 @@

      Location & Time

      - @if (SectionItem != null) - { + @if (SectionItem != null && FieldItems != null) {

      Location

      diff --git a/ProgramInformationV2/Components/Pages/Section/Technical.razor b/ProgramInformationV2/Components/Pages/Section/Technical.razor index 2a537fb..9d13ef2 100644 --- a/ProgramInformationV2/Components/Pages/Section/Technical.razor +++ b/ProgramInformationV2/Components/Pages/Section/Technical.razor @@ -7,8 +7,7 @@

      Technical Information

      -@if (SectionItem != null) -{ +@if (SectionItem != null && FieldItems != null) {
        From 10080550748b75535aa2b5e9648f6916ae57b641 Mon Sep 17 00:00:00 2001 From: Bryan Jonker <65776851+bryanjonker-illinois@users.noreply.github.com> Date: Thu, 7 May 2026 10:36:37 -0500 Subject: [PATCH 2/3] Potential fix for pull request finding Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com> --- ProgramInformationV2/Components/Pages/Course/LocationTime.razor | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ProgramInformationV2/Components/Pages/Course/LocationTime.razor b/ProgramInformationV2/Components/Pages/Course/LocationTime.razor index 9c55535..02d3655 100644 --- a/ProgramInformationV2/Components/Pages/Course/LocationTime.razor +++ b/ProgramInformationV2/Components/Pages/Course/LocationTime.razor @@ -6,7 +6,7 @@

        Location & Time

        - @if (CourseItem != null && FieldItems != null) { + @if (CourseItem != null && FieldItems != null) {

        Location

        From fe968b370d445ba3ef20450d29a70eb5cf6decbd Mon Sep 17 00:00:00 2001 From: Bryan Jonker Date: Thu, 7 May 2026 10:37:34 -0500 Subject: [PATCH 3/3] Fix label --- .../Components/Controls/IsTranscriptable.razor | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ProgramInformationV2/Components/Controls/IsTranscriptable.razor b/ProgramInformationV2/Components/Controls/IsTranscriptable.razor index a9c1c4c..e31a4ee 100644 --- a/ProgramInformationV2/Components/Controls/IsTranscriptable.razor +++ b/ProgramInformationV2/Components/Controls/IsTranscriptable.razor @@ -5,11 +5,11 @@ @Title
        - +
        - +