-
Notifications
You must be signed in to change notification settings - Fork 3
Feature/434 Add CIC, SEND and AST tribunal hearing lists #772
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
junaidiqbalmoj
merged 11 commits into
master
from
feature/434-add-tribunal-hearing-lists
Jul 3, 2026
Merged
Changes from all commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
c8c0a80
Add CIC, SEND and AST tribunal hearing lists
KianKwa dd360f2
Update AST list PDF and add Asylum Support tribunal venue
KianKwa e844574
Fix compilation issue
KianKwa b9c6248
Fix sonarqube issues
KianKwa 5bdb70f
Update yarn.lock
KianKwa 46092af
merge: master into feature/563 and refactor list types to use blob st…
KianKwa 872be33
fix: restore generatePdfFromHtml import lost during merge conflict re…
KianKwa ec8bd41
Fix build issue
KianKwa 259c377
fix: zero-pad dates and deduplicate pdf-generator across hearing list…
junaidiqbalmoj e9e0cc2
test: add tests to improve SonarQube coverage on new code
junaidiqbalmoj 4dc55b5
Update logic for determining
KianKwa File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
91 changes: 91 additions & 0 deletions
91
apps/web/src/pages/(list-types)/ast-daily-hearing-list/ast-daily-hearing-list.njk
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,91 @@ | ||
| {% extends "layouts/base-template.njk" %} | ||
| {% from "govuk/components/table/macro.njk" import govukTable %} | ||
|
|
||
| {% block head %} | ||
| {{ super() }} | ||
| <style> | ||
| .back-to-top { | ||
| margin-top: 40px; | ||
| } | ||
| </style> | ||
| {% endblock %} | ||
|
|
||
| {% block page_content %} | ||
| <div class="govuk-grid-row"> | ||
| <div class="govuk-grid-column-full"> | ||
|
|
||
| <h1 class="govuk-heading-l" id="top">{{ header.listTitle }}</h1> | ||
|
|
||
| <p class="govuk-body"> | ||
| <a href="{{ t.factLinkUrl }}" class="govuk-link">{{ t.factLinkText }}</a> {{ t.factAdditionalText }} | ||
| </p> | ||
|
|
||
| <p class="govuk-body"> | ||
| {% for line in t.venueAddressLines %}{{ line }}{% if not loop.last %}<br>{% endif %}{% endfor %} | ||
| </p> | ||
|
|
||
| <p class="govuk-body govuk-!-margin-bottom-1"><strong>{{ t.listForDate }} {{ header.listForDate }}</strong></p> | ||
|
|
||
| <p class="govuk-body">{{ t.lastUpdated }} {{ header.lastUpdatedDate }} {{ t.at }} {{ header.lastUpdatedTime }}</p> | ||
|
|
||
| <details class="govuk-details govuk-!-margin-top-6" data-module="govuk-details" open> | ||
| <summary class="govuk-details__summary"> | ||
| <span class="govuk-details__summary-text"> | ||
| {{ t.importantInformationTitle }} | ||
| </span> | ||
| </summary> | ||
| <div class="govuk-details__text"> | ||
| {% for paragraph in t.importantInformationParagraphs %} | ||
| <p class="govuk-body">{{ paragraph }}</p> | ||
| {% endfor %} | ||
| <p class="govuk-body"> | ||
| {{ t.importantInformationLinkPrefix }} | ||
| <a href="{{ t.importantInformationLinkUrl }}" class="govuk-link">{{ t.importantInformationLinkText }}</a>. | ||
| </p> | ||
| </div> | ||
| </details> | ||
|
|
||
| <div class="govuk-form-group govuk-!-margin-top-6"> | ||
| <h2 class="govuk-heading-s">{{ t.searchCasesTitle }}</h2> | ||
| <label class="govuk-label govuk-visually-hidden" for="case-search-input"> | ||
| {{ t.searchCasesLabel }} | ||
| </label> | ||
| <input class="govuk-input govuk-!-width-one-half" id="case-search-input" name="search" type="text" aria-label="{{ t.searchCasesLabel }}"> | ||
| </div> | ||
|
|
||
| <div id="hearings-table-container"> | ||
| <table class="govuk-table" id="hearings-table" role="table" aria-label="{{ t.pageTitle }}"> | ||
| <thead class="govuk-table__head"> | ||
| <tr class="govuk-table__row"> | ||
| <th scope="col" class="govuk-table__header">{{ t.tableHeaders.appellant }}</th> | ||
| <th scope="col" class="govuk-table__header">{{ t.tableHeaders.appealReferenceNumber }}</th> | ||
| <th scope="col" class="govuk-table__header">{{ t.tableHeaders.caseType }}</th> | ||
| <th scope="col" class="govuk-table__header">{{ t.tableHeaders.hearingType }}</th> | ||
| <th scope="col" class="govuk-table__header">{{ t.tableHeaders.hearingTime }}</th> | ||
| <th scope="col" class="govuk-table__header">{{ t.tableHeaders.additionalInformation }}</th> | ||
| </tr> | ||
| </thead> | ||
| <tbody class="govuk-table__body"> | ||
| {% for hearing in hearings %} | ||
| <tr class="govuk-table__row"> | ||
| <td class="govuk-table__cell">{{ hearing.appellant }}</td> | ||
| <td class="govuk-table__cell">{{ hearing.appealReferenceNumber }}</td> | ||
| <td class="govuk-table__cell">{{ hearing.caseType }}</td> | ||
| <td class="govuk-table__cell">{{ hearing.hearingType }}</td> | ||
| <td class="govuk-table__cell">{{ hearing.hearingTime }}</td> | ||
| <td class="govuk-table__cell">{{ hearing.additionalInformation }}</td> | ||
| </tr> | ||
| {% endfor %} | ||
| </tbody> | ||
| </table> | ||
| </div> | ||
|
|
||
| <p class="govuk-body-s govuk-!-margin-top-6">{{ t.dataSource }}: {{ dataSource }}</p> | ||
|
|
||
| <div class="back-to-top"> | ||
| <a href="#top" class="govuk-link">{{ t.backToTop }}</a> | ||
| </div> | ||
|
|
||
| </div> | ||
| </div> | ||
| {% endblock %} |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🎯 Functional Correctness | 🟡 Minor | ⚡ Quick win
🧩 Analysis chain
🏁 Script executed:
Repository: hmcts/cath-service
Length of output: 1776
🏁 Script executed:
Repository: hmcts/cath-service
Length of output: 50374
🏁 Script executed:
Repository: hmcts/cath-service
Length of output: 50375
Avoid extracting JSON search data twice. The JSON upload path calls
extractAndStoreArtefactSearch(...)directly and then passes the samejsonDataintoprocessPublication(...), which already calls it internally. Remove one of those calls to avoid duplicate DB work and the extra race window.