c-admin-table-toolbar: choose which parts it shows and where
Nobody has claimed this yet.
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 45/100
- Issue type
- Feature
- Clarity
- Clearly specified
- Activity status
- Active
- Tech stack
- typescript
- Domain
- developer-experience, frontend
Research direction
Start by locating c-admin-table-toolbar, c-admin-table, and c-admin-table-page, then read how the existing toolbar parts and c-list-pagination are rendered. Implement the configurable layout, part slots, and pagination placement described in the issue; done means the default layout is preserved and consumers can rearrange or replace parts and choose where pagination appears.
Written by the indexing model from the issue text.
Description
c-admin-table-toolbar lays out a fixed set of controls in a fixed order across two rows:
- Top row: model name, Create, Reload, Edit toggle,
#toolbar-actions, the "Showing x – y of n" range, page controls. - Second row: search, Columns & Filters, page size.
The only ways to change it are to hide parts with CSS (.c-admin-table-toolbar--model-name { display: none }) or to rebuild the toolbar from scratch. c-admin-table adds c-list-pagination under the table as well, so the page controls and the page size show twice.
The parts are already mostly their own components (c-admin-create-btn, c-list-range-display, c-list-page, c-list-filters, c-list-page-size), so the toolbar could be a layout of named parts:
-
A
layoutprop: an array of rows, each an array of part names, with"spacer"and"divider"as fillers. The default reproduces today's toolbar:[ ["title", "divider", "create", "reload", "editable", "actions", "spacer", "range", "spacer", "page"], ["search", "divider", "filters", "spacer", "page-size"], ]Leaving a part out drops it; moving it moves it. A single row gives a one-line toolbar.
-
A slot per part (
#part-create,#part-search, …), with the default rendering as its fallback, to replace one part without touching the rest. An app's own controls take a name of their own inlayoutand render from the slot of the same name. -
On
c-admin-tableandc-admin-table-page, apaginationprop choosing where page controls appear ("toolbar","bottom"or both), so they are not shown twice by default.
This supersedes the #toolbar-prepend / #toolbar-append and title items in #795 for the table toolbar.
- Dominant language
- C#
- Stars
- 81
- Forks
- 24
- PR merge metrics
- No merged PRs in 30d
Getting set up
Starts the project's dev container in your browser, under your own GitHub account.
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from IntelliTect/Coalesce
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
IntelliTect/Coalesce#794 · 1 comment ·
-
Difficulty 1/5 Under an hour Newbie friendliness 78/100
IntelliTect/Coalesce#781 ·
-
Difficulty 2/5 Under an hour Newbie friendliness 85/100
IntelliTect/Coalesce#774 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
IntelliTect/Coalesce#773 ·
-
Difficulty 4/5 3-5 days Newbie friendliness 48/100
IntelliTect/Coalesce#798 ·
All issues in IntelliTect/Coalesce
Similar issues
-
:watch: Not Triaged dotnet-target-version
Difficulty 1/5 Under an hour Newbie friendliness 84/100
dotnet/docs-desktop#2313 ·
Maintainers usually reply within 4 days
-
dotnet-target-version
Difficulty 2/5 1-3 hours Newbie friendliness 77/100
-
:watch: Not Triaged dotnet-target-version
Difficulty 1/5 Under an hour Newbie friendliness 80/100
Maintainers usually reply within 1 day
-
Project dependencies are outdatedPossibly taken @yasmoradi claimed this today. Opendependencies
Difficulty 1/5 1-3 hours Newbie friendliness 68/100
bitfoundation/bitplatform#15562 ·
Maintainers usually reply within 1 day
-
bug priority:low severity:S3
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
squid-farm/talewright#909 ·
Maintainers usually reply within 1 day