Skip to content

Port password confirmation dialog to vue #33675

Closed
nextcloud-libraries/nextcloud-password-confirmation
#378

Description

@PVince81

Steps

  1. Check out Bump @nextcloud/vue to 6.0.0-beta.4 and related #33516 (if not merged yet)
  2. Go to users page
  3. Create a new user
  4. Add a password
  5. Click "Add new user"
  6. Enter your password in the prompt that appears

Expected result

Password can be entered.

Actual result

The password prompt appears but cannot be focussed, because the focus trap is still on the parent dialog, which itself uses Vue.
The password prompt itself is not using Vue, so the focus trap interaction cannot work.

With the update of nextcloud-vue and the introduction of a focus trap for vue-based dialogs, old dialogs like this one cannot work correctly as the focus trap will remain on the old dialog.

To make this work correctly, we need to port the password confirmation dialog to Vue: https://github.com/nextcloud/server/blob/update-nextcloud-vue-6.0.0-beta.2/core/src/OC/password-confirmation.js#L90

We need to do this anyway in general to make the dialog follow accessibility standards.

Activity

  1. added this to the Nextcloud 25 milestone on Aug 24, 2022
  2. PVince81 commented on Aug 24, 2022

    @PVince81
    MemberAuthor

    I've added this to #32117 to warn that this kind of scenario won't work any more.

  3. PVince81 commented on Aug 24, 2022

    @PVince81
    MemberAuthor

    original issue was here: #33637

  4. Pytal commented on Aug 25, 2022

    @Pytal
    Member

    Since this is in Vue I would say we should port this to https://github.com/nextcloud/nextcloud-vue to benefit from the consolidated effort of our Vue build system

    There is also this js-only wrapper lib https://github.com/nextcloud/nextcloud-password-confirmation which we could use as a starting point but would splinter off from the https://github.com/nextcloud/nextcloud-vue build system

    What do you think @CarlSchwan @nickvergessen @PVince81?

  5. nickvergessen commented on Aug 25, 2022

    @nickvergessen
    Member

    I'm fine with making nextcloud-password-confirmation depend on nextcloud-vue
    Sounds like the best way forward if we don't want to have it in server/core directly which would also be fine for me.

  6. added and removed
    1. to developAccepted and waiting to be taken care of
    on Aug 27, 2022
  7. added
    4. to releaseReady to be released and/or waiting for tests to finish
    and removed on Sep 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions