Skip to content
This repository was archived by the owner on Nov 23, 2026. It is now read-only.
This repository was archived by the owner on Nov 23, 2026. It is now read-only.

Fix rendering of error in case of no quota space #5937

Closed

Description

@ishank011

When web calls the /ocs/v1.php/cloud/users/$username endpoint, it returns back the home quota of the user. If the user doesn't have enough quota, the 'Upload' button is disabled, but no error message is shown. If you inspect the element, you can see the error 'You don't have enough quota to upload' but it's not displayed to the user.

Activity

  1. added
    Type:Bug
    on Jan 26, 2022
  2. pascalwengerter commented on Feb 25, 2022

    @pascalwengerter
    Contributor

    @tbsbdr needs concepting (not a lot, but anything to make it actionable 🙏🏽 )

  3. tbsbdr commented on Jul 27, 2022

    @tbsbdr

    proposal:

    • show notification on click of the disabled button like "no quota ...."
    • add contextual helper with same message as in the notification
  4. self-assigned this
    on Jul 30, 2022
  5. AlexAndBear commented on Jul 30, 2022

    @AlexAndBear
    Contributor

    @tbsbdr
    We currently have a tooltip on the button which shows the message, I'd vote for this is enough?
    image

    Having click events on a disabled button is not the best way to go, as some browsers doesn't emit those events:
    Akryum/floating-vue#125 (comment)

    There is still a little bug tough, that's why the tooltip wasn't shown in the first place.
    https://github.com/owncloud/web/pull/7376/files

  6. tbsbdr commented on Aug 1, 2022

    @tbsbdr

    Tooltip-information should be optional as they are not accessible. I treat them as optional, , meaning: they are nice to have and enhance ux, but the ui must be usable if they were not there. this is at least my understanding, is this correct @kulmann 

    If we can't rely on tooltip information, we would need an accessible solution which would contextual help or notification.

  7. AlexAndBear commented on Aug 1, 2022

    @AlexAndBear
    Contributor

    @tbsbdr If it comes down to a11y, we also have area descriptors on those buttons.

  8. kulmann commented on Aug 1, 2022

    @kulmann
    Contributor

    Well, the linked PR fixes that the tooltips are shown (they were there before but not rendered on disabled buttons). Good first step. For making the information accessible we should just add the information via aria-describedby like we already do in other situations. @janackermann could you do those adjustments as well please?

  9. kulmann commented on Aug 1, 2022

    @kulmann
    Contributor

    If we can't rely on tooltip information, we would need an accessible solution which would contextual help or notification.

    That's not needed. Tooltip for visuals, aria-describedby for screen readers solves the job well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Early-Adopter:CERNType:Bug

Type

No type

Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions