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

Stats frontend: indicate if current user has errors #68

Open
rossjrw opened this issue Jun 30, 2023 · 0 comments
Open

Stats frontend: indicate if current user has errors #68

rossjrw opened this issue Jun 30, 2023 · 0 comments
Labels
feature A new feature

Comments

@rossjrw
Copy link
Member

rossjrw commented Jun 30, 2023

Requires #46

In the status frontend, the UI could attempt to determine whether the current user has configuration errors, as another medium by which the user might discover the error.

This will be a lot easier said than done. It is possible but nontrivial to load the current user's username into an iframe, but the SCP Wiki forbids iframes on its site from transmitting information about the user, so using that value as part of a request is a non-starter.

Here's a couple of ideas:

  • A list of users with errors is part of the public log, which is downloaded into the frontend. If the current user is in that list, show the value.
    • It will not be trivial to add this data to the log, as it would be an entirely new field. I don't know if I want this data to be stored in the database even.
    • I suppose this field could just be a second public log, and would get uploaded as its own file during the maintenance stage.
    • Probably the minimal amount of information that needs to be downloaded.
  • http://notifications.wikidot.com/redirect-to-your-config exists to automatically send users to their own config page. The frontend could fetch that URL, follow redirects, and use the results to determine whether the user has errors.
    • This does not technically involve transmitting information about the user, although it does involve downloading information about them.
    • I have no idea whether this redirect actually works when initiated this way.
    • HTTP request probably doesn't work in an iframe loaded on a HTTPS site.
    • Uses more data than might be necessary (it will load at least 2 entire pages behind the scenes).
@rossjrw rossjrw added the feature A new feature label Jun 30, 2023
@rossjrw rossjrw changed the title Logs frontend: indicate if current user has errors Stats frontend: indicate if current user has errors Jul 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature A new feature
Projects
None yet
Development

No branches or pull requests

1 participant