Skip to content

Conversation

juhp
Copy link
Member

@juhp juhp commented Feb 2, 2025

These 3 commits are unrelated but small and self-contained, so I thought easier to just combine in one PR:

  • currently the date is shown for snapshots (which is mostly redundant for nightly snapshots), let's also include the time
  • replace remaining references to github.com/fpco/ with github.com/commercialhaskell/
  • add a link on snapshot changes (diff) pages to the previous diff page, for easier navigation (main motivator for this PR)

Compiles fine but untested (since I don't have a local db setup)

@juhp
Copy link
Member Author

juhp commented Feb 2, 2025

Added %Z (timezone) to the time format

@juhp
Copy link
Member Author

juhp commented Feb 3, 2025

Only add previous diff link if there is a previous previous snapshot

@juhp
Copy link
Member Author

juhp commented Feb 3, 2025

Fix previous diff to use/be off previous snapshot

Copy link
Member

@chreekat chreekat left a comment

Choose a reason for hiding this comment

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

Thanks! I think the type of prevprevSnapName should change, otherwise looks good.

@juhp
Copy link
Member Author

juhp commented Feb 3, 2025

Okay updated - still a bit ugly, but maybe the best we can do.

I have a convention of prefixing Maybe variables with m, but I can drop it if annoying.
(I think a few people use mb instead)

@juhp juhp requested a review from chreekat February 3, 2025 09:32
Copy link
Member

@chreekat chreekat left a comment

Choose a reason for hiding this comment

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

One last change requested, then it's good to go. :) I don't need to re-review it anymore.

allowing navigating back to earlier consecutive diffs

Arguably we could also navigate name1 and name2 separately

Thanks to @chreekat for reviewing and improving the code (commercialhaskell#340)
@chreekat chreekat merged commit c4676e5 into commercialhaskell:master Feb 4, 2025
1 check passed
@juhp juhp deleted the diff-fpco-time branch February 7, 2025 10:16
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.

2 participants