Content
View differences
Updated by Henriette Darge 2 days ago
## Purpose
Replace Documents::ListComponent's Documents::ListComponent's plain BorderBox/grid list with the shared semantic table, completing this deferred #DREAM-697 surface.
## Scope
Use OpPrimer::BorderBoxTableComponent and OpPrimer::BorderBoxRowComponent. Preserve the table/rowgroup/row/columnheader/cell semantics, accessible table name, column indices, mobile layout, and keyboard access to links and actions. This targets the existing ARIA table implementation; a native HTML table rewrite or new DataTable is outside this work.
Preserve document name, type and updated-at columns, row links/actions, row IDs used for updates, existing pagination and permission-dependent empty-state creation action.
## Acceptance criteria
* [x] - [ ] Document rows and headers use shared table/row components with an accessible table name and suitable mobile columns.
* [x] - [ ] Pagination retains project/action context and is outside data rows or in a valid structural footer; it is not exposed as a document record.
* [x] - [ ] Existing document navigation, update/delete behavior and row identities remain correct.
* [x] - [ ] Empty-state creation remains available only with the existing permission, and all current empty-state content is retained.
* [x] - [ ] Desktop/mobile presentation, populated/empty lists and multiple pages have focused semantic and browser coverage.
* [x] - [ ] Obsolete document-list grid markup/styles are removed where superseded.
## Boundaries
Part of [DREAM-837](https://community.openproject.org/wp/DREAM-837). Preserve existing ordering; no manual-reordering or new column-sorting feature. Can proceed independently of [DREAM-838](https://community.openproject.org/wp/DREAM-838).
## Starting points
modules/documents/app/components/documents/list\_component.{rb,html.erb} modules/documents/app/components/documents/list_component.{rb,html.erb} and row\_component.\*.
## Hint for QA
To test this, have a look at the projects/project\_x/documents page. It should basically look and behave like before with the exception that the pagination is below the table and not part of it any more. row_component.*.
Replace Documents::ListComponent's
## Scope
Use OpPrimer::BorderBoxTableComponent and OpPrimer::BorderBoxRowComponent. Preserve the table/rowgroup/row/columnheader/cell semantics, accessible table name, column indices, mobile layout, and keyboard access to links and actions. This targets the existing ARIA table implementation; a native HTML table rewrite or new DataTable is outside this work.
Preserve document name, type and updated-at columns, row links/actions, row IDs used for updates, existing pagination and permission-dependent empty-state creation action.
## Acceptance criteria
* [x]
* [x]
* [x]
* [x]
* [x]
* [x]
## Boundaries
Part of [DREAM-837](https://community.openproject.org/wp/DREAM-837). Preserve existing ordering; no manual-reordering or new column-sorting feature. Can proceed independently of [DREAM-838](https://community.openproject.org/wp/DREAM-838).
## Starting points
modules/documents/app/components/documents/list\_component.{rb,html.erb}
## Hint for QA
To test this, have a look at the projects/project\_x/documents page. It should basically look and behave like before with the exception that the pagination is below the table and not part of it any more.