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

Add a context menu entry to delete entries from health check reports #6537

Merged
merged 2 commits into from
May 31, 2021

Conversation

xvallspl
Copy link
Contributor

Addresses Issue #4986

Ideally we would be able to select multiple entries and delete them at once, but it would require deeper changes in the widget. This is a start.

Screenshots

deleteEntry

Type of change

  • ✅ New feature (change that adds functionality)

@xvallspl
Copy link
Contributor Author

Sorry for the suboptimal framing in the screenshot 🙃

@xvallspl
Copy link
Contributor Author

The workflow in the linked issue suggests that we could have a delete entry button in the edit entry widget when triggered from the report. Should I try to have this as well?

@droidmonkey
Copy link
Member

droidmonkey commented May 19, 2021

Technically we could but the edit entry workflow needs to be greatly improved. I prefer a context menu item only for now. If it's easy to implement and works then edit entry as well.

@xvallspl xvallspl force-pushed the feature/delete-entry-from-reports branch from 6b9346d to 28ee8e2 Compare May 20, 2021 05:02
@phoerious
Copy link
Member

What I would prefer is not blind deletion from the report, but a context action that says "Show affected entries", which sends you back to the main view but with a filter set to only those entries.

@xvallspl xvallspl linked an issue May 26, 2021 that may be closed by this pull request
@droidmonkey droidmonkey self-requested a review May 31, 2021 13:40
@droidmonkey droidmonkey added this to the v2.7.0 milestone May 31, 2021
@droidmonkey droidmonkey force-pushed the feature/delete-entry-from-reports branch from 28ee8e2 to 9ed679c Compare May 31, 2021 14:02
@droidmonkey
Copy link
Member

I made a ton of changes:

  • Allow multi-select in health check and HIBP tables
  • Created GuiTools namespace and moved shared deletion code into it, now DatabaseWidget and Reports all share the same deletion sequencing. This will be a great pivot point to share more common functions between GUI elements.
  • General code cleanup

image

image

image

* Introduce GuiTools namespace to collect shared GUI prompts and actions
* Add functionality to HIBP report to mirror health check report
@droidmonkey droidmonkey force-pushed the feature/delete-entry-from-reports branch from 9ed679c to bfd6bef Compare May 31, 2021 14:13
@droidmonkey droidmonkey changed the title add a contextual menu entry to delete entries from health check report (Addresses #4986) Add a context menu entry to delete entries from health check reports May 31, 2021
@droidmonkey droidmonkey merged commit 6acd0b2 into develop May 31, 2021
@droidmonkey droidmonkey deleted the feature/delete-entry-from-reports branch May 31, 2021 14:40
pull bot pushed a commit to Mu-L/keepassxc that referenced this pull request May 31, 2021
…eepassxreboot#6537)

* Closes keepassxreboot#4986 - Allow deleting entries from the reports view
* Closes keepassxreboot#4533 - Exclude & delete multiple entries in a report
* Also allow deleting selected entries using the delete key
* Introduce GuiTools namespace to collect shared GUI prompts and actions
* Add functionality to HIBP report to mirror health check report

Co-authored-by: Jonathan White <[email protected]>
pull bot pushed a commit to rayou/keepassxc that referenced this pull request May 31, 2021
…eepassxreboot#6537)

* Closes keepassxreboot#4986 - Allow deleting entries from the reports view
* Closes keepassxreboot#4533 - Exclude & delete multiple entries in a report
* Also allow deleting selected entries using the delete key
* Introduce GuiTools namespace to collect shared GUI prompts and actions
* Add functionality to HIBP report to mirror health check report

Co-authored-by: Jonathan White <[email protected]>
@phoerious phoerious added pr: new feature Pull request that adds a new feature and removed new feature labels Nov 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature: Reports pr: new feature Pull request that adds a new feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Allow to delete a record from a Database Report
3 participants