[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6D29CKDFJC5Q6TDCEX1ZFM4":3,"skill-same:01M6D29CKDFJC5Q6TDCEX1ZFM4":62},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":34,"linkOnly":35,"markdownContent":36,"markdownBody":37,"frontMatter":38,"refName":39,"commitSha":40,"skillDirectory":41,"forksCount":42,"repositoryHtmlUrl":43,"repositoryHomepageUrl":44,"ownerHtmlUrl":45,"ownerBlogUrl":44,"ownerDescription":46,"updatedAt":47,"install":48,"resources":61},"01M6D29CKDFJC5Q6TDCEX1ZFM4","ui-page-dashboard",null,"How to build a dashboard or an application's overview: the shell, the overview's grid and blocks, responsive behaviour, and loading it fast (independent blocks, pagination, caching, virtualised lists). Read before building or reworking one.","enowdev\u002Fenowxcli","enowdev","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F179420349?v=4","01M6D1MVX2KC0X3Z9NESE7P22K","Enow Dev.","01M6D1MW1FMZGBDKWAJY4GQX81",67,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Fenowdev\u002Fenowxcli\u002Fblob\u002Fmain\u002Fcrates\u002Fenowx-core\u002Fskills\u002Fui-page-dashboard\u002FSKILL.md",[],[19,20,21,22,23,24,25,26,27,28,29,30,31,32,33],"dashboard","ui","page","ui page dashboard","fast","shell","how","before building","read","overview","pagination","build","application","caching","responsive","2026-11-10 10:12:30",false,"---\nname: ui-page-dashboard\ndescription: \"How to build a dashboard or an application's overview: the shell, the overview's grid and blocks, responsive behaviour, and loading it fast (independent blocks, pagination, caching, virtualised lists). Read before building or reworking one.\"\n---\n\n# Dashboard or application overview\n\nOne kind of page. Write its blueprint first (`ui-structure`: the regions\nin order, the skeleton in numbers, the components and their states), and\nbuild each control to its contract in `ui-anatomy`. The measures\n(container, grid, spacing, type) are in `ui-layout`; each part it uses (sidebar, header, tables, charts, cards,\npagination, loading) has its own `ui-part-*` skill. Build it from the\ncomponent library (the `ui` skill), themed with the tokens.\n\n## 1. Start from the questions\n\nName the two or three decisions a user makes on this screen (\"what is\noverdue\", \"who owes money\", \"what failed overnight\"). Every block answers\none of them; a block that answers none is cut. The order of the blocks is\nthe order of those questions.\n\n## 2. The shell\n\n- **Sidebar** 240 to 256px, full window height and sticky, with its own\n  scroll; the product name at the top, the daily places next (icon and\n  label each, the current one marked), settings and the account at the\n  bottom. It collapses to icons (with tooltips) below about 1280px if\n  space is tight, and becomes a drawer below 1024px (`ui-part-sidebar`).\n- **Top bar** 56 to 64px inside the content column: the page title or\n  breadcrumbs on the left; search, notifications that exist and the account\n  on the right. Sticky.\n- **Content** anchored beside the sidebar, padded 24 to 32px (16px on\n  phones), fluid up to about 1600px with any extra width left on the right,\n  never a centred column floating between empty bands (`ui-layout` section\n  2b); a grid of 12 columns with 16 to 24px gutters.\n\n## 2a. What sticks\n\nStick what the user needs while scrolling through the work, and nothing\nelse:\n\n- the sidebar (full height, its own scroll) and the top bar;\n- a long table's header row, and its first column when the table scrolls\n  sideways;\n- the filter and search bar above a long list;\n- the bulk-action bar that appears when rows are selected;\n- the Save and Cancel bar of a long form or settings page.\n\nFigures, charts and a short page header scroll away. The sticky layers\ntogether stay under about 120px on a wide screen and about 64px on a phone\n(on a phone, only the top bar, or the filter bar in its place), each\nstacked below the one above (`top` set to the height above it) with a\nsolid background.\n\n## 3. The overview, row by row\n\nA composition that works for most overviews; cut the rows the questions do\nnot need.\n\n1. **Page header**: the title, the scope (a date range or a filter the whole\n   page follows, as one control, its value in the URL), the one primary\n   action. One row, 24 to 32px below the top bar.\n2. **Figures**: three or four stat cards across (3 columns each of 12),\n   equal height. Each card: a label in the quiet colour (14px), the value\n   large (28 to 32px, tabular numbers) with its unit, and one line of\n   context: the comparison with a named period (\"+12 vs last month\"), or\n   what it means (\"4 due today\"). A small sparkline only when the trend is\n   the point. The whole card links to the list behind the figure.\n3. **The work**: the table or list the user acts on, 8 of 12 columns, with\n   its own header (title, count, a \"View all\" link, filters when they\n   matter). Beside it, 4 of 12: what needs attention next (due soon,\n   alerts), as a short list with one action each.\n4. **Trends**: one chart that answers a question in its title, 8 of 12;\n   a breakdown (top items, a split by category as a bar list, not a donut)\n   in 4 of 12.\n5. Anything else below, only when it answers a question.\n\nCards in a row share their height (`align-items: stretch`); each card has\nthe same padding (16 to 24px), the same header (title left, one action\nright, 12px above the content) and no heading repeated inside it. Space\nbetween rows 24px; inside a card 12 to 16px.\n\n## 4. Responsive\n\n- 1280px and wider: the rows above.\n- 768 to 1279px: figures in two columns; the work and its side list stack,\n  the work first; the chart full width.\n- Under 768px: one column in the order of the questions; figures two\n  across in a compact form (label and value only); a table becomes one card\n  per row with the deciding fields, or scrolls inside a container with a\n  visible edge; filters open in a sheet from one \"Filters\" button; the\n  sidebar is a drawer behind a labelled \"Menu\" button.\n- Nothing overflows at 360px, and touch targets stay at 44px.\n\n## 5. Loading it fast\n\n- **The shell first.** The sidebar, the top bar and every block's frame\n  render at once; each block loads its own data and shows a skeleton the\n  shape of its content. One slow query never blanks the page, and an error\n  sits on the block that failed, with a retry.\n- **Fetch with a cache**: TanStack Query or SWR (or the framework's loader\n  with its cache). Figures and charts can be 30 to 60 seconds stale and\n  refetch on focus; a list keeps the previous page on screen while the next\n  loads. Mutations update the cache or invalidate the right keys, so the\n  figure changes when a row does.\n- **Paginate on the server** once a list can pass a couple of hundred rows:\n  page, sort and filter in the query, never by loading everything and\n  slicing in the browser (`ui-part-pagination`). Cursor pagination for long\n  or growing lists, page numbers where position matters. More than a few\n  hundred rows on screen at once are virtualised (TanStack Virtual).\n- **Aggregate where the data lives**: figures and chart series come from\n  the database (a grouped query, a materialised view, a cached summary),\n  not from fetching rows to count them in the browser.\n- **State in the URL**: filters, sort, page and date range in the query\n  string, so a view can be shared, reloaded and gone back to.\n- **Search** debounced 250 to 300ms, with the request cancelled when a new\n  one starts.\n- **Load heavy parts late**: the chart library and panels below the fold\n  are imported when needed (`import()`, `next\u002Fdynamic`, `lazy`).\n- **HTTP caching** for data that changes slowly: `Cache-Control` and an\n  `ETag`, so a reload costs a 304.\n\n## 6. States\n\n- First run with no data: the one step that fills it (\"Add your first\n  book\"), not a page of zeroes.\n- A block with no rows says so in its own place (\"Nothing is overdue\").\n- Loading keeps the layout; numbers do not jump when they arrive.\n\n## Avoid\n\nThe default admin shell (four stat cards with invented numbers and green\ndeltas, a line chart titled \"Overview\", an activity feed of made-up people,\na table of Name \u002F Status \u002F Date \u002F Actions); numbered section headings\n(\"01 Perlu tindakan\"); a sentence under every heading explaining it; a\nheading alone inside a card; the accent colour on every button and badge;\nthe page's filled primary button repeated on every row; a greeting\n(\"Welcome back, John!\") taking the top of the screen; gradients on cards; a\ndonut for two values.\n","# Dashboard or application overview\n\nOne kind of page. Write its blueprint first (`ui-structure`: the regions\nin order, the skeleton in numbers, the components and their states), and\nbuild each control to its contract in `ui-anatomy`. The measures\n(container, grid, spacing, type) are in `ui-layout`; each part it uses (sidebar, header, tables, charts, cards,\npagination, loading) has its own `ui-part-*` skill. Build it from the\ncomponent library (the `ui` skill), themed with the tokens.\n\n## 1. Start from the questions\n\nName the two or three decisions a user makes on this screen (\"what is\noverdue\", \"who owes money\", \"what failed overnight\"). Every block answers\none of them; a block that answers none is cut. The order of the blocks is\nthe order of those questions.\n\n## 2. The shell\n\n- **Sidebar** 240 to 256px, full window height and sticky, with its own\n  scroll; the product name at the top, the daily places next (icon and\n  label each, the current one marked), settings and the account at the\n  bottom. It collapses to icons (with tooltips) below about 1280px if\n  space is tight, and becomes a drawer below 1024px (`ui-part-sidebar`).\n- **Top bar** 56 to 64px inside the content column: the page title or\n  breadcrumbs on the left; search, notifications that exist and the account\n  on the right. Sticky.\n- **Content** anchored beside the sidebar, padded 24 to 32px (16px on\n  phones), fluid up to about 1600px with any extra width left on the right,\n  never a centred column floating between empty bands (`ui-layout` section\n  2b); a grid of 12 columns with 16 to 24px gutters.\n\n## 2a. What sticks\n\nStick what the user needs while scrolling through the work, and nothing\nelse:\n\n- the sidebar (full height, its own scroll) and the top bar;\n- a long table's header row, and its first column when the table scrolls\n  sideways;\n- the filter and search bar above a long list;\n- the bulk-action bar that appears when rows are selected;\n- the Save and Cancel bar of a long form or settings page.\n\nFigures, charts and a short page header scroll away. The sticky layers\ntogether stay under about 120px on a wide screen and about 64px on a phone\n(on a phone, only the top bar, or the filter bar in its place), each\nstacked below the one above (`top` set to the height above it) with a\nsolid background.\n\n## 3. The overview, row by row\n\nA composition that works for most overviews; cut the rows the questions do\nnot need.\n\n1. **Page header**: the title, the scope (a date range or a filter the whole\n   page follows, as one control, its value in the URL), the one primary\n   action. One row, 24 to 32px below the top bar.\n2. **Figures**: three or four stat cards across (3 columns each of 12),\n   equal height. Each card: a label in the quiet colour (14px), the value\n   large (28 to 32px, tabular numbers) with its unit, and one line of\n   context: the comparison with a named period (\"+12 vs last month\"), or\n   what it means (\"4 due today\"). A small sparkline only when the trend is\n   the point. The whole card links to the list behind the figure.\n3. **The work**: the table or list the user acts on, 8 of 12 columns, with\n   its own header (title, count, a \"View all\" link, filters when they\n   matter). Beside it, 4 of 12: what needs attention next (due soon,\n   alerts), as a short list with one action each.\n4. **Trends**: one chart that answers a question in its title, 8 of 12;\n   a breakdown (top items, a split by category as a bar list, not a donut)\n   in 4 of 12.\n5. Anything else below, only when it answers a question.\n\nCards in a row share their height (`align-items: stretch`); each card has\nthe same padding (16 to 24px), the same header (title left, one action\nright, 12px above the content) and no heading repeated inside it. Space\nbetween rows 24px; inside a card 12 to 16px.\n\n## 4. Responsive\n\n- 1280px and wider: the rows above.\n- 768 to 1279px: figures in two columns; the work and its side list stack,\n  the work first; the chart full width.\n- Under 768px: one column in the order of the questions; figures two\n  across in a compact form (label and value only); a table becomes one card\n  per row with the deciding fields, or scrolls inside a container with a\n  visible edge; filters open in a sheet from one \"Filters\" button; the\n  sidebar is a drawer behind a labelled \"Menu\" button.\n- Nothing overflows at 360px, and touch targets stay at 44px.\n\n## 5. Loading it fast\n\n- **The shell first.** The sidebar, the top bar and every block's frame\n  render at once; each block loads its own data and shows a skeleton the\n  shape of its content. One slow query never blanks the page, and an error\n  sits on the block that failed, with a retry.\n- **Fetch with a cache**: TanStack Query or SWR (or the framework's loader\n  with its cache). Figures and charts can be 30 to 60 seconds stale and\n  refetch on focus; a list keeps the previous page on screen while the next\n  loads. Mutations update the cache or invalidate the right keys, so the\n  figure changes when a row does.\n- **Paginate on the server** once a list can pass a couple of hundred rows:\n  page, sort and filter in the query, never by loading everything and\n  slicing in the browser (`ui-part-pagination`). Cursor pagination for long\n  or growing lists, page numbers where position matters. More than a few\n  hundred rows on screen at once are virtualised (TanStack Virtual).\n- **Aggregate where the data lives**: figures and chart series come from\n  the database (a grouped query, a materialised view, a cached summary),\n  not from fetching rows to count them in the browser.\n- **State in the URL**: filters, sort, page and date range in the query\n  string, so a view can be shared, reloaded and gone back to.\n- **Search** debounced 250 to 300ms, with the request cancelled when a new\n  one starts.\n- **Load heavy parts late**: the chart library and panels below the fold\n  are imported when needed (`import()`, `next\u002Fdynamic`, `lazy`).\n- **HTTP caching** for data that changes slowly: `Cache-Control` and an\n  `ETag`, so a reload costs a 304.\n\n## 6. States\n\n- First run with no data: the one step that fills it (\"Add your first\n  book\"), not a page of zeroes.\n- A block with no rows says so in its own place (\"Nothing is overdue\").\n- Loading keeps the layout; numbers do not jump when they arrive.\n\n## Avoid\n\nThe default admin shell (four stat cards with invented numbers and green\ndeltas, a line chart titled \"Overview\", an activity feed of made-up people,\na table of Name \u002F Status \u002F Date \u002F Actions); numbered section headings\n(\"01 Perlu tindakan\"); a sentence under every heading explaining it; a\nheading alone inside a card; the accent colour on every button and badge;\nthe page's filled primary button repeated on every row; a greeting\n(\"Welcome back, John!\") taking the top of the screen; gradients on cards; a\ndonut for two values.\n",{"name":5,"description":7},"main","38293fe1b096e6bf3646c7344c38786ed688f464","crates\u002Fenowx-core\u002Fskills\u002Fui-page-dashboard",21,"https:\u002F\u002Fgithub.com\u002Fenowdev\u002Fenowxcli","https:\u002F\u002Fenowx.ai","https:\u002F\u002Fgithub.com\u002Fenowdev","Pretending to be a Developer","2026-10-06 02:05:35",{"source":8,"skillName":5,"commands":49,"prompt":59,"zipAvailable":60},[50,53,56],{"tool":51,"command":52},"npx","npx skills add enowdev\u002Fenowxcli --skill ui-page-dashboard",{"tool":54,"command":55},"bunx","bunx skills add enowdev\u002Fenowxcli --skill ui-page-dashboard",{"tool":57,"command":58},"pnpm","pnpm dlx skills add enowdev\u002Fenowxcli --skill ui-page-dashboard","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fenowdev\u002Fenowxcli\u002Fblob\u002Fmain\u002Fcrates\u002Fenowx-core\u002Fskills\u002Fui-page-dashboard\u002FSKILL.md",true,[],[63,74,90,100,121,138],{"skillNo":64,"name":65,"nameZh":6,"description":66,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":67,"categories":68,"keywords":69,"publishedAt":34},"01M6D2HQYSQD9N7MTNDT4A7CBM","demo-skill","Project-scope demo skill for tests.","https:\u002F\u002Fgithub.com\u002Fenowdev\u002Fenowxcli\u002Fblob\u002Fmain\u002Fworkspace\u002F.agents\u002Fskills\u002Fdemo-skill\u002FSKILL.md",[],[70,71,72,73,27],"demo skill","demo","tests","project",{"skillNo":75,"name":76,"nameZh":6,"description":77,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":78,"categories":79,"keywords":80,"publishedAt":34},"01M6D2HM0GCPM0TM2HPG9HHR2R","writing","Writing words people read: the specific thing instead of claims, words to drop, sentences, interface copy (buttons, labels, errors, empty states, confirmations), page copy, notifications and emails, alt text and link text, numbers and dates, words that translate well, documentation and voice. Read before writing a page's copy, an interface's text or a document.","https:\u002F\u002Fgithub.com\u002Fenowdev\u002Fenowxcli\u002Fblob\u002Fmain\u002Fcrates\u002Fenowx-core\u002Fskills\u002Fwriting\u002FSKILL.md",[],[76,81,82,83,84,85,27,21,86,87,88,89],"text","emails","empty","drop","document","voice","notifications","documentation","translate",{"skillNo":91,"name":20,"nameZh":6,"description":92,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":93,"categories":94,"keywords":95,"publishedAt":34},"01M6D2HG07YS49NM196Q0R3AZ8","Designing or restyling an interface: direction, layout, type, colour, icons, components, states, responsive behaviour. Read before building a page, a screen or a set of components.","https:\u002F\u002Fgithub.com\u002Fenowdev\u002Fenowxcli\u002Fblob\u002Fmain\u002Fcrates\u002Fenowx-core\u002Fskills\u002Fui\u002FSKILL.md",[],[20,96,97,98,33,21,99,27,26],"icons","components","SET","layout",{"skillNo":101,"name":102,"nameZh":6,"description":103,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":104,"categories":105,"keywords":106,"publishedAt":34},"01M6D2HB59HZHWG1RYZDV4SJ91","ui-themes","Light and dark themes, and colour that holds in both: tokens with a value per theme, and what each kind of content needs to stay visible (icons, SVG drawings and line art, logos, photos, screenshots, charts, code, maps, borders, shadows, focus, form controls), switching without a flash, and checking both. Read before building a second theme or a theme toggle, and before any drawing, logo or chart on a page that has two themes.","https:\u002F\u002Fgithub.com\u002Fenowdev\u002Fenowxcli\u002Fblob\u002Fmain\u002Fcrates\u002Fenowx-core\u002Fskills\u002Fui-themes\u002FSKILL.md",[],[20,107,108,109,110,111,112,113,114,27,26,115,21,116,117,118,96,119,120],"ui themes","switching","photos","tokens","drawing","focus","maps","Art","flash","code","Charts","content","screenshots","logo",{"skillNo":122,"name":123,"nameZh":6,"description":124,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":125,"categories":126,"keywords":127,"publishedAt":34},"01M6D2H5R5KRAE524C8QX0T7Q0","ui-structure","Structure before styling: the blueprint written before any interface code (the screen's job, the regions its kind of page needs, their order and why, the layout skeleton in numbers, the components and their states), the anatomy and order of a homepage, a dashboard, a list, a detail page, settings, a form, sign-in, pricing, docs, an article and a checkout, and how to turn the blueprint into code (tokens, layout primitives, components, sections, page). Read first, before building or rebuilding any page or screen.","https:\u002F\u002Fgithub.com\u002Fenowdev\u002Fenowxcli\u002Fblob\u002Fmain\u002Fcrates\u002Fenowx-core\u002Fskills\u002Fui-structure\u002FSKILL.md",[],[128,20,129,97,130,19,116,131,132,133,99,110,134,135,136,27,26,21,137,25],"structure","ui structure","pricing","Blueprint","article","anatomy","styling","primitives","list","why",{"skillNo":139,"name":140,"nameZh":6,"description":141,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":142,"categories":143,"keywords":144,"publishedAt":34},"01M6D2H0ZZBJG77MBGPZHA6MWD","ui-stack-vue","Building interfaces in Vue 3 and Nuxt: project layout, script setup with typed defineProps, defineEmits and defineModel, attribute fallthrough, slots and scoped slots, template refs, ref, reactive and computed, watch versus watchEffect, composables and VueUse, provide and inject, Pinia, keyed v-for, transitions, Nuxt 4 (app directory, pages, layouts, useFetch and useAsyncData keys, $fetch in handlers, server routes, runtime config, useSeoMeta, NuxtImg, middleware), VeeValidate forms, Reka UI and Nuxt UI, testing, vue-tsc, and the traps. Read when the project uses Vue or Nuxt.","https:\u002F\u002Fgithub.com\u002Fenowdev\u002Fenowxcli\u002Fblob\u002Fmain\u002Fcrates\u002Fenowx-core\u002Fskills\u002Fui-stack-vue\u002FSKILL.md",[],[20,145,146,147,148,149,150,151,99,73,152,153,27,154,155,156,157,158,159,160],"vue","stack","ui stack vue","forms","pages","watch","runtime","transitions","fetch","pinia","nuxt","template","server","config","directory","testing"]