Skip to content

Last checked - #23

Merged
redshiftzero merged 11 commits into
lockdown-systems:mainfrom
otherJL0:last-checked
Jul 21, 2025
Merged

Last checked#23
redshiftzero merged 11 commits into
lockdown-systems:mainfrom
otherJL0:last-checked

Conversation

@otherJL0

Copy link
Copy Markdown
Collaborator

Fixes #16

Now that the file date extraction function is fixed, add this as a new field to the metadata to use when rendering the page.

@redshiftzero redshiftzero left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this looks great! one thought inline

Comment thread src/icewatch/render_facilities_map.py Outdated
</div>
</main>
<div id="last-updated">last updated {formatted_date}</div>
<div id="last-updated">last checked {formatted_date}</div>

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we show both this last checked field and the last updated field? i.e. so we can see the last time we checked if there's updates and the last time we actually updated the dashboard

total_facilities: int


Facility = TypedDict(

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

❤️

@otherJL0
otherJL0 marked this pull request as draft July 17, 2025 17:42
@otherJL0
otherJL0 marked this pull request as ready for review July 17, 2025 19:32
@otherJL0

Copy link
Copy Markdown
Collaborator Author

@redshiftzero should be ready. One neat thing is now running icewatch render --input data.json tries to open the html in a browser and I added a check to make sure it doesn't happen in CI. Alternatively this could be a flag, maybe something like icewatch render --view. What do you think?

Path(output_path).parent.mkdir(parents=True, exist_ok=True)
facilities, metadata = load_facilities(input_path)
render_html(facilities, output_path, metadata)
if not os.getenv("GITHUB_ACTIONS"):

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ah clever

@redshiftzero

Copy link
Copy Markdown
Contributor

A --view flag sounds like a good idea, but I'll merge this as is

@redshiftzero
redshiftzero merged commit c4f2bd8 into lockdown-systems:main Jul 21, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

show last checked

2 participants