Content
View differences
Updated by Tobias Dillmann over 1 year ago
### Steps to reproduce
1. Go to <instance>/projects
2. Click on 'Filter'
3. Select any filter that will open a secondary input field (example 'Created on')
### What is the buggy behavior?
* Active input is not on the operator input field
* Filter list is not reset to blank state (did not happen on retesting)
* Operator field and value have no aria-label or similar
### What is the expected behavior?
1. User is taken to the operator input field (example 'less than days ago' for 'Created on')
2. Filter list is reset to blank state, ready for a new selection
3. Operator and values are described by arai-label or similar means.
###
### Screenshots and other files
<figure class="image op-uc-figure"><div class="op-uc-figure--content"><img class="op-uc-image" src="/api/v3/attachments/95627/content"></div></figure>
### Out of scope
* Fixing the behaviour on the work package list as that list will be replaced by the project list. Even if that still takes a bit of time.
## Development Hints
* since the turbo-frame is reloaded upon filter changes, simply setting the focus won't work.
* It might be possible to follow a similar approach as in the [preview controller](https://github.com/opf/openproject/blob/df3cd5049c33bebd869b426852d64fe6d3eda136/frontend/src/stimulus/controllers/dynamic/work-packages/progress/preview.controller.ts#L43) for the [work package progress logging](https://github.com/opf/openproject/blob/df3cd5049c33bebd869b426852d64fe6d3eda136/app/controllers/work_packages/progress_controller.rb#L102). There, the focus is retained by tracking info about it in the backend and morphing it into the view. Consider [caveats about screenreader support](https://github.com/opf/openproject/blob/df3cd5049c33bebd869b426852d64fe6d3eda136/frontend/src/stimulus/controllers/dynamic/work-packages/progress/preview.controller.ts#L72-L79) when doing so.
<br>
**OpenProject version**
Core build
[435694d2069517481688a726ff22af16bc7e7862](https://github.com/opf/openproject/commits/435694d2069517481688a726ff22af16bc7e7862)
Product version
[272767a127586f81c23dd3ee4439090f551c2b1a](https://github.com/opf/saas-openproject/commits/272767a127586f81c23dd3ee4439090f551c2b1a)
Core version
OpenProject 14.0.0
**Browser**
* [x] Chrome
* [x] Firefox
* [ ] Safari
* [ ] Mobile Safari
* [ ] Other (please specify)
1. Go to <instance>/projects
2. Click on 'Filter'
3. Select any filter that will open a secondary input field (example 'Created on')
### What is the buggy behavior?
* Active input is not on the operator input field
* Filter list is not reset to blank state (did not happen on retesting)
* Operator field and value have no aria-label or similar
### What is the expected behavior?
1. User is taken to the operator input field (example 'less than days ago' for 'Created on')
2. Filter list is reset to blank state, ready for a new selection
3. Operator and values are described by arai-label or similar means.
###
### Screenshots and other files
<figure class="image op-uc-figure"><div class="op-uc-figure--content"><img class="op-uc-image" src="/api/v3/attachments/95627/content"></div></figure>
### Out of scope
* Fixing the behaviour on the work package list as that list will be replaced by the project list. Even if that still takes a bit of time.
## Development Hints
* since the turbo-frame is reloaded upon filter changes, simply setting the focus won't work.
* It might be possible to follow a similar approach as in the [preview controller](https://github.com/opf/openproject/blob/df3cd5049c33bebd869b426852d64fe6d3eda136/frontend/src/stimulus/controllers/dynamic/work-packages/progress/preview.controller.ts#L43) for the [work package progress logging](https://github.com/opf/openproject/blob/df3cd5049c33bebd869b426852d64fe6d3eda136/app/controllers/work_packages/progress_controller.rb#L102). There, the focus is retained by tracking info about it in the backend and morphing it into the view. Consider [caveats about screenreader support](https://github.com/opf/openproject/blob/df3cd5049c33bebd869b426852d64fe6d3eda136/frontend/src/stimulus/controllers/dynamic/work-packages/progress/preview.controller.ts#L72-L79) when doing so.
<br>
**OpenProject version**
Core build
[435694d2069517481688a726ff22af16bc7e7862](https://github.com/opf/openproject/commits/435694d2069517481688a726ff22af16bc7e7862)
Product version
[272767a127586f81c23dd3ee4439090f551c2b1a](https://github.com/opf/saas-openproject/commits/272767a127586f81c23dd3ee4439090f551c2b1a)
Core version
OpenProject 14.0.0
**Browser**
* [x] Chrome
* [x] Firefox
* [ ] Safari
* [ ] Mobile Safari
* [ ] Other (please specify)