Skip to content

Feature: Event view #4

@CodeForgeX2012

Description

@CodeForgeX2012

This PR adds an event view to the application.

The event view informs the user about events inside an unlocked vault. Such events are:

  • conflict resolution (failed and successful)
  • broken filesystem structure (e.g. empty dir.c9r)
  • failed decryption (due to an invalid/tampered file)

The event view can be accessed from the main window by clicking on the bell icon in the left lower corner. The icon has an "update indicator", if new events are available. The update indicator disappears when the event window gets focus.

pr_ready_light pr_read_dark

The events are displayed in a list. Each event has a short description and a subtext mentioning the affected file (mostly encrypted version, see cryptomator/cryptofs#278 why a decrypted path might not be available). Additionally, a counter of how often the event happend and the timestamp of last appearance is displayed. Each event offers some actions, which can be accessed by hovering over the list element and click the right button. The actions are currently "dismiss" and various forms of "reveal file" (encrypted, decrypted, original, etc), depending on the actual event.
pr_ready_eventActions

If a vault is locked, the event is not removed, but obfuscated. Only the affected vault is displayed.
pr_ready_eventView_lockedEvent


Technical details:

  • events are stored inside a map keyed with (vault, some identifying path, class of event) to check if an event just reoccurred
  • to not block the GUI by a damaged vault spamming constantly events, the gui list is updated at fixed intervals (every second the app polls for updates)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions