Skip to content

feat: link live.lean-lang.org to comparator.live.lean-lang.org#9

Closed
robsimmons wants to merge 3 commits into
nixosfrom
nixos-comparator
Closed

feat: link live.lean-lang.org to comparator.live.lean-lang.org#9
robsimmons wants to merge 3 commits into
nixosfrom
nixos-comparator

Conversation

@robsimmons

Copy link
Copy Markdown
Collaborator

This PR creates a configurable button, "Can I Trust This Proof", that loads the current code in Comparator Live:

image

Loading the website from a non-safelisted referrer link (or with no referrer link) will generate a pop-up warning. This warning is pretty dismissable: it has ClickAway behavior, it can be dismissed with an X, and the "Don't show this again" button permanently dismisses it.

image

or, in light mode:

image

Because the semantics of this setting need to be different from the other user settings — we do NOT want a url to be able to dismiss this warning, and we DO always want it to be saved in local storage or else the "Dismiss permanently" option is a lie, this is configured in a new "Local Settings" portion of the configuration menu. Not ideal, but seemed like a reasonable tradeoff. Most people will interact with it via the in-popup option.

image

@robsimmons robsimmons requested a review from jcreedcmu June 8, 2026 22:26
@robsimmons

Copy link
Copy Markdown
Collaborator Author

Closing in favor of #11, which is built on top of #10

@robsimmons robsimmons closed this Jun 9, 2026
@robsimmons robsimmons deleted the nixos-comparator branch June 12, 2026 20:51
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.

1 participant