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

[VER-355] feat: Add Profile migration Alert and move all Profiles to trash after some delay #169

Merged
merged 8 commits into from
Apr 10, 2024

Commits on Apr 10, 2024

  1. feat: Add Profile migration Alert

    We will soon remove the concept of `Profiles` and replace it by Cozy's
    `Contacts`
    
    Because the user's vault is encrypted, we cannot do an automatic
    migration on server side
    
    Also we prefer no to do a migration on the client's side due to the
    sensible nature of the data
    
    Instead we want to warn the user that the `Profile` concept will be
    removed soon and that they need to migrate their data by themselves
    
    We give the user some delays, after which the remaining `Profiles` will
    be moved to the trash and so become readonly and will be ignored by
    autofill capabilities
    
    This commit adds the Alert that will be shown to the user. This app
    will keep displaying this Alert until all `Profiles` are removed
    
    If no `Profile` exist, then this Alert is not shown
    Ldoppea committed Apr 10, 2024
    Configuration menu
    Copy the full SHA
    98a3fe9 View commit details
    Browse the repository at this point in the history
  2. feat: Compute and store deadline for Profile migration

    The first time the `Profile` migration Alert is displayed, then we want
    to start a delay of 15 days during which the user will be able to
    migrate their Profiles into Contacts
    
    This delay is stored in the browser's local storage into the form of a
    deadline and is not synced between clients
    
    The Alert will then display this deadline to the user
    Ldoppea committed Apr 10, 2024
    Configuration menu
    Copy the full SHA
    df03fb8 View commit details
    Browse the repository at this point in the history
  3. feat: Trash Profiles after deadline

    After the deadline is reached (cf previous commit), we want the app to
    move all user's `Profiles` into the Trash
    
    By doing so we ensure that the data is still available (we don't take
    the risk of destroying it without user action) but it will be readonly
    and won't be used by the autofill anymore
    Ldoppea committed Apr 10, 2024
    Configuration menu
    Copy the full SHA
    a678031 View commit details
    Browse the repository at this point in the history
  4. feat: Remove Profiles sections

    Because we want to remove the concept of `Profiles` from the app, then
    we want to remove all actions that allow to create new `Profiles` or to
    access `Profile` sections
    Ldoppea committed Apr 10, 2024
    Configuration menu
    Copy the full SHA
    c2671f0 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    93d31bd View commit details
    Browse the repository at this point in the history
  6. feat: Prevent to restore Profiles

    In previous commits we did a method that automatically move `Profiles`
    into the user's trash
    
    This commit removes the `restore` button from trashed `Profiles` view
    Ldoppea committed Apr 10, 2024
    Configuration menu
    Copy the full SHA
    cd30543 View commit details
    Browse the repository at this point in the history
  7. feat: Do not call profile-migration component if no Profile exists

    This is an optimization that prevent the profile-migration component to
    be loaded if no `Profile` exists in the vault
    
    This won't change anything for the user, but this would prevent
    unnecessary checks that would occurs inside of the profile-migration
    component
    Ldoppea committed Apr 10, 2024
    Configuration menu
    Copy the full SHA
    a7fa2b3 View commit details
    Browse the repository at this point in the history
  8. fix: Restore ability to delete items

    In 313eb81 we refactored the delete
    method but this broke the ability to delete non contact/papers ciphers
    Ldoppea committed Apr 10, 2024
    Configuration menu
    Copy the full SHA
    b2b0839 View commit details
    Browse the repository at this point in the history