admin-lists-screen

Assembles Angular admin list screens with tables, toolbars, sorting, and row actions.

1|Updated Jan 14, 2024
One-click install
npx skills add https://github.com/Eyhenij/rt-tools --skill admin-lists-screen-eyhenij
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: admin-lists-screen
Source: https://github.com/Eyhenij/rt-tools/tree/main/.claude/skills/admin-lists-screen
Command: npx skills add https://github.com/Eyhenij/rt-tools --skill admin-lists-screen-eyhenij

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Building admin list screens in Angular involves many subtle conventions — block ordering, table markup, row action columns, sortable headers, toolbar slots, and failure handling — and missing any one of them produces bugs that pass builds and unit tests but fail end-to-end runs. This Skill encodes the complete pattern so screens are assembled correctly the first time. ## Core Features & Use Cases - Screen structure pattern: Defines the required order of blocks (header, toolbar, scrollable table, pagination) using the shared <prefix>-page layout and BEM elements. - Table and row actions: Specifies <prefix>-table markup with columnsConfig, displayedColumns(), the showRowActions vs rowHasActions distinction, and row click handling via cdkRowDef. - Sorting, toolbar, and failure states: Covers sortable headers with [sort] initialization, left/right toolbar slots, and error toasts read directly from the store key instead of signal subscriptions. - Use Case: When creating a new admin section listing records (e.g., proposals or invites), load this Skill to get the exact component decorator, provider, host token, and template structure including the shared admin-list-page slots and QA anchors. ## Quick Start Load this skill and assemble a new admin list screen for the proposals section with a sortable table, row actions menu, and toolbar filters.

Frequently Asked Questions about admin-lists-screen

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I build an Angular admin list screen with a sortable table?

Use the shared page block for layout, declare the table with columnsConfig and dataSource, mark columns sortable: true, and add a sort header directive that emits sortChange. Pass the current sort back via [sort] so the arrow renders correctly on first load.

What is the difference between showRowActions and rowHasActions in an Angular table?

showRowActions creates the actions column itself, while rowHasActions is a predicate deciding whether the menu button appears on a specific row. Setting only the predicate leaves the column missing entirely, a bug that passes builds and unit tests but fails end-to-end runs.

Why does my Angular table row actions column not appear?

The actions column is omitted by default unless showRowActions is set to true. Neither the row actions template nor the rowHasActions predicate adds the column on its own, so both inputs must be configured together.

Should I use table element or attribute selector for Angular CDK tables?

Use the element form rather than an attribute on a native table tag. Skeletons, loading overlays, and narrow-screen cards are rendered as nodes that cannot be children of a table element, so they are invisible with the attribute form; the element form gets semantics via roles.

Why does my list error toast show twice with Angular signals?

Subscribing to a shared store signal shows one failure twice when the store serves both the list and an edit panel. Read the error key directly right after the request and show the toast once instead of subscribing.