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

Introduce ability to view resolved errors and delete them #55

Merged
merged 3 commits into from
Aug 22, 2024

Conversation

acoffman
Copy link
Contributor

Sorry it took so long to circle back around to this! Hopefully with the release of Rails 7.2, backporting a patch will no longer be needed to run this in prod.

This introduces a new collection route at /errors/resolved that displays an index view of resolved errors.

On the show and index views, the Resolve Error button will be replaced with a Delete Error button when showing resolved errors. The deletion action checks that the error is in fact resolved before proceeding with the deletion.

In addition to the button, I added a small tag next to the error id on the show page indicating its status as either open or resolved so the user has a little more context when on a single error's page.

In order to make this useful, we need some way of navigating to the resolved errors index page (and back). This could be tabs or simply a link or button somewhere. As there is currently no top-level navigation for the site, I wanted to check with you before unilaterally introducing something like that. Maybe just a link for now?

Screenshots

Error row appearance in resolved index view:
Screenshot 2024-08-13 at 4 20 10 PM

Show page for an error that has already been resolved:
Screenshot 2024-08-13 at 4 21 19 PM

closes #4

@fractaledmind
Copy link
Owner

This is lovely! Thank you. I'm presently quite busy, but I am trying to carve out time to properly review this and merge and release. But first pass looks good

config/routes.rb Outdated Show resolved Hide resolved
Copy link
Owner

@fractaledmind fractaledmind left a comment

Choose a reason for hiding this comment

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

Some thoughts.

@acoffman
Copy link
Contributor Author

Thanks for the review!

I have pushed a commit that I believe addresses all of your feedback. Additionally I have pushed a second commit that adds a toggle to the top right of the index page allowing you to switch between resolved and unresolved index views. Screenshot below.

Screenshot 2024-08-16 at 11 56 20 AM

@fractaledmind
Copy link
Owner

Lovely. I want to make a few small tweaks. I'll try to carve out time next week. This is excellent tho. Thank you for this!

@fractaledmind fractaledmind mentioned this pull request Aug 22, 2024
@fractaledmind fractaledmind merged commit aa8a778 into fractaledmind:main Aug 22, 2024
@fractaledmind
Copy link
Owner

Released with version 0.5.0

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.

Expiration or Ability to Delete Errors/Occurrences
2 participants