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

frontend: Fix ReleaseNotes so it works again #2144

Merged
merged 4 commits into from
Jul 18, 2024
Merged

Conversation

illume
Copy link
Collaborator

@illume illume commented Jul 6, 2024

Fixes #2143 and a CVE with Octokit.

Removes Octokit because we just use it to fetch one URL.

How to test

  • run the app (see the snackbar appears, and you can click dismiss, can click to see notes)
  • run the app with internet off, and the snackbar disappears
  • in storybook see the different states of UpdatePopup

@illume illume added bug Something isn't working frontend Issues related to the frontend security app regression Bugs for things that used to work in previous releases. labels Jul 6, 2024
@illume illume requested a review from a team July 8, 2024 13:39
@illume illume marked this pull request as draft July 8, 2024 14:40
@illume
Copy link
Collaborator Author

illume commented Jul 8, 2024

I noticed there's an air-gap issue related to ReleaseNotes in:

So I'll fix that in this PR too.

@illume illume force-pushed the remove-octokit branch 3 times, most recently from aa8280e to d554b61 Compare July 15, 2024 15:27
@illume illume removed the request for review from a team July 15, 2024 15:28
@illume illume marked this pull request as ready for review July 15, 2024 15:28
@illume illume requested a review from a team July 15, 2024 15:28
illume added 4 commits July 18, 2024 15:35
Fixes #2143 and a CVE with Octokit.

Removes Octokit because we just use it to fetch one URL.

Signed-off-by: René Dudfield <[email protected]>
If there is an error connecting to the github releases, then it
used to be that a message would stay on the screen about fetching
release notes... but it would just stay there.

Now it disapears after it times out, and then a message is shown
that the fetch failed. This message also disapears after 6 seconds.

Signed-off-by: René Dudfield <[email protected]>
The stories didn't show the different states.

Also added some documentation for the props fields.

Signed-off-by: René Dudfield <[email protected]>
@joaquimrocha joaquimrocha merged commit 70803c7 into main Jul 18, 2024
18 checks passed
@joaquimrocha joaquimrocha deleted the remove-octokit branch July 18, 2024 14:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
app bug Something isn't working frontend Issues related to the frontend regression Bugs for things that used to work in previous releases. security
Projects
Development

Successfully merging this pull request may close these issues.

app: ReleaseNotes: Does not work
2 participants