ui-guidelines
/ui-guidelines
Przedstawia wytyczne UI dla HMIS na stronach JSF i XHTML: komponenty PrimeFaces, układ, formularze, przyciski, panele, tabele danych, responsywność i dostępność.
Ocena i bezpieczeństwo
- Pliki w paczce
- 1
- Skrypty
- 0
- Komentarze HTML
- 1
- Adresy URL w SKILL.md
- 6
Brak sygnałów. Repozytorium zmienione 26.10.2026, bez odwołań do wycofanych modeli i API.
GPL-3.0, otwarta.
- SKILL.md zawiera komentarze HTML (1). Nie widać ich w podglądzie Markdown, a model je czyta.
Co robi i kiedy
Przedstawia wytyczne UI dla HMIS na stronach JSF i XHTML: komponenty PrimeFaces, układ, formularze, przyciski, panele, tabele danych, responsywność i dostępność.
Oryginalny opis (EN)
HMIS UI development guidelines for JSF/XHTML pages. Use when creating or modifying XHTML pages, PrimeFaces components, page layouts, forms, buttons, panels, datatables, or any frontend/UI work. Covers page structure, layout patterns, panel best practices, form inputs, button styling, responsive design, and accessibility rules.
Jak działa
- Critical Rules
- Page Skeleton
- Layout and Typography
- Panel Structure
- Forms and Inputs
- Buttons
- For complete reference
Podgląd SKILL.md
---
name: ui-guidelines
description: >
HMIS UI development guidelines for JSF/XHTML pages. Use when creating or modifying
XHTML pages, PrimeFaces components, page layouts, forms, buttons, panels, datatables,
or any frontend/UI work. Covers page structure, layout patterns, panel best practices,
form inputs, button styling, responsive design, and accessibility rules.
user-invocable: true
---
# HMIS UI Development Guidelines
When working on any UI/XHTML task, follow these rules and patterns.
## Critical Rules
- **UI-ONLY CHANGES**: When UI improvements are requested, make ONLY frontend/XHTML changes
- **KEEP IT SIMPLE**: Use existing controller properties and methods - avoid introducing filteredValues, globalFilter, or new backend logic
- **FRONTEND FOCUS**: Stick to HTML/CSS styling, PrimeFaces component attributes, and layout improvements
- **ERP UI RULE**: Use `h:outputText` instead of HTML headings (h1-h6)
- **PRIMEFACES CSS**: Use PrimeFaces button classes, not Bootstrap button classes
- **XHTML STRUCTURE**: HTML DOCTYPE with `ui:composition` and template inside `h:body`
- **XML ENTITIES**: Always escape ampersands as `&` in XHTML attributes
## Page Skeleton
```xhtml
<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:h="http://xmlns.jcp.org/jsf/html"
xmlns:p="http://primefaces.org/ui"
xmlns:f="http://xmlns.jcp.org/jsf/core"
xmlns:ui="http://xmlns.jcp.org/jsf/facelets">
<h:head>
<title>Page Title</title>
</h:head>
<h:body>
<ui:composition template="/resources/template/template.xhtml">
<ui:define name="content">
<h:form>
<!-- Page content -->
</h:form>
</ui:define>
</ui:composition>
</h:body>
</html>
```
## Layout and Typography
- Use **PrimeFaces components for interaction** and **Bootstrap utilities for layout** (`row`, `col-*`, `d-flex`, spacing)
- Prefer `p:panelGrid` for grid with header; only use `p:panel` when you need facets/panel styling
- Use `h:outputText` and `p:outputLabel` for headings/labels instead of HTML heading tags
- Keep screens dense and business-focused
## Panel Structure
- Use `f:facet name="header"` for panel-related actions
- Use `p:panelGrid columns="2" layout="tabular"` for label-value pairs
- Avoid over-nesting; place dataTable directly in panel content
## Forms and Inputs
- Align labels with `p:outputLabel` + PrimeFaces components; include `for` attributes
- Heavy operations (reports, exports) use `ajax="false"` for file downloads
- Include descriptive `title` attributes on interactive elements
## Buttons
- **Navigation**: `ui-button-info ui-button-outlined`
- **Save/Submit**: `ui-button-success`
- **Delete/Cancel**: `ui-button-danger`
- **Secondary actions**: `ui-button-warning` or `ui-button-secondary`
- **Always add icons**: Use Font Awesome (`fa fa-*`) icons
## For complete reference
Read [developer_docs/ui/comprehensive-ui-guidelines.md](../../../developer_docs/ui/comprehensive-ui-guidelines.md) for the full UI handbook including responsive design, accessibility, datatables, dialogs, and more.
Wersje
| Repozytorium | Wynik | Licencja |
|---|---|---|
| Ta strona · hmislk/hmis | 100 | GPL-3.0 |
| hmislk/hmis | 100 | GPL-3.0 |
| pfangueiro/claude-code-agents | 100 | MIT |
Migawka bazy z 13.11.2026 · wersja paczki ce51fb8afbbf (skrót SHA-256 całej paczki)
Pobrania w ostatnich 30 dniach: 0 · ranking
Zgłoś problem z tym skillem: szkodliwa treść, błędny opis albo prośba autora o usunięcie.
Podobne skille
- 100jsf-ajax
Stosuje zasady aktualizacji AJAX w JSF w projekcie HMIS: atrybuty update w p:commandButton, callbacki PrimeFaces, częściowe renderowanie i wzorce nawigacji, zapobiegając cichym błędom i psuciu stanu. - 100jsf-ajax
Stosuje zasady aktualizacji AJAX w JSF w projekcie HMIS: atrybuty update w p:commandButton, callbacki PrimeFaces, częściowe renderowanie i wzorce nawigacji, zapobiegając cichym błędom i psuciu stanu. - 90frontend-dev
Tworzy i zmienia komponenty React, formularze, listy, widoki szczegółów, filtry i pobieranie danych w aplikacji Atomic CRM. - 100frontend-dev-guidelines
Podaje wytyczne dla aplikacji React i TypeScript: Suspense, lazy loading, useSuspenseQuery, organizację plików w katalogu features, stylowanie, routing i optymalizację wydajności. - 100html-xml-lang-mismatch
Sprawdza spójność atrybutów lang i xml:lang w dokumentach XHTML i poliglotycznych HTML, które muszą poprawnie parsować się jako HTML5 i XML. - 100frontend-dev-guidelines
Podaje wytyczne dla aplikacji React i TypeScript: Suspense, lazy loading, useSuspenseQuery, katalog features, stylowanie MUI v7, TanStack Router, wydajność i dobre praktyki TypeScript.