Skip to content
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

try moving links back up #312

Merged
merged 6 commits into from
Sep 11, 2024
Merged
Show file tree
Hide file tree
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# repo owners

* @edasmalchi @owades @csuyat-dot
* @edasmalchi @vevetron @csuyat-dot
2 changes: 1 addition & 1 deletion .github/workflows/test-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ jobs:
working-directory: ./tests
run: python test_report_data.py
- name: Prepare website build
run: cp -r tests/outputs/2022 reports/outputs/. && cp tests/fixtures/* reports/outputs/.
run: cp -r tests/outputs/2024 reports/outputs/. && cp tests/fixtures/* reports/outputs/.
- name: Run website build
working-directory: ./website
run: npm install && npm run build && cat build/index.html | grep "Monthly GTFS Quality Reports"
Expand Down
34 changes: 18 additions & 16 deletions templates/report.html.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,24 @@
</div>
{% endif %}
</div>

<div class="responsive-prose max-w-none">
<div class="my-8 flex gap-4">
<button type="button"
class="btn"
onclick="document.getElementById('feed-info-modal').showModal()">
Show Source URLs
</button>

{% if speedmap_url %}
<a class="btn" href="{{ speedmap_url }}" target="_blank">
View Speedmap
<i class="fas fa-external-link-alt ml-1"></i>
</a>
{% endif %}
</div>
</div>

{% if has_rt_feed %}
<div class="flex-1 responsive-prose">
<h2>About the Realtime Completeness Charts</h2>
Expand Down Expand Up @@ -198,22 +216,6 @@

</div>
{% endif %}
<div class="responsive-prose max-w-none">
<div class="my-8 flex gap-4">
<button type="button"
class="btn"
onclick="document.getElementById('feed-info-modal').showModal()">
Show Source URLs
</button>

{% if speedmap_url %}
<a class="btn" href="{{ speedmap_url }}" target="_blank">
View Speedmap
<i class="fas fa-external-link-alt ml-1"></i>
</a>
{% endif %}
</div>
</div>

{% call macros.render_dialog('feed-info-modal', 'Source URLs') %}
<div class="prose-ul:m-0 prose-li:m-0 prose-li:p-0 prose-p:m-0">
Expand Down
4 changes: 2 additions & 2 deletions tests/test_report_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
from generate_reports_data import generate_data_by_file_path # noqa: E402
from validate_reports import validate_files # noqa: E402

test_file = "outputs/2022/11/91/1_file_info.json"
test_file = "outputs/2024/07/282/1_file_info.json"

# Instead of unit tests, this generates a test output directory, then validates
# the data.
Expand All @@ -21,6 +21,6 @@
"4_file_check.json",
"5_validation_codes.json",
]
output_dir = "outputs/2022/11/91"
output_dir = "outputs/2024/07/282"
schema_dir = "schemas"
validate_files(output_dir, schema_dir, files)
Loading
Loading