Audit Log
Журнал действий: фильтры, diff полей, экспорт в CSV, подгрузка. Pro · Аккаунт и доступ › Права, приватность и поддержка
Установка
npx valyro-cli@latest login
npx valyro-cli@latest add audit-log
npm install valyro-ui-pro
import 'valyro-ui-pro/styles.css';
import { AuditLog } from 'valyro-ui-pro';
Пропсы
| Prop | Type | Default | |
|---|---|---|---|
events * | AuditEvent[] | Newest first. | |
actions | Record<string, AuditActionMeta> | {} | Readable names and tones per action. Unknown actions show their machine name. |
filter | AuditFilter | Controlled filter; use with onFilterChange. | |
defaultFilter | AuditFilter | Initial filter when uncontrolled. | |
onFilterChange | (filter: AuditFilter) => void | Called with the new filter when it changes. | |
manualFiltering | boolean | false | The server filters: events are shown as given and onFilterChange should refetch. |
hasMore | boolean | false | More (older) events can be loaded. |
loadingMore | boolean | false | An onLoadMore request is in flight: shows a spinner at the end and holds off further loads. |
onLoadMore | () => void | Called when the end of the list scrolls into view, or from the "Load older events" button. | |
onExport | (events: AuditEvent[]) => void | Replaces the built-in CSV download; receives the events matching the current filter. | |
exportFileName | string | File name of the built-in CSV download. | |
loading | boolean | false | Initial skeleton instead of rows. |
toolbar | ReactNode | Extra controls at the end of the toolbar. | |
expandedIds | string[] | Ids of the events shown expanded, with their details and field changes. | |
defaultExpandedIds | string[] | Initial expandedIds when uncontrolled. | |
onExpandedIdsChange | (ids: string[]) => void | Called with the new expandedIds when it changes. | |
locale | string | Date, time and number formatting. Defaults to the ThemeProvider locale, then the browser's. | |
headingLevel | 2 | 3 | 4 | 5 | 6 | 3 | Level of the day headings, to fit the page's heading outline. Default 3. |
labels | Partial<AuditLogLabels> | Overrides for the built-in English text; keys left out keep their defaults. |
Похожие компоненты
- Permission Matrix — Матрица ролей и прав: наследование, блокировки, массовые переключатели, черновик изменений
- Privacy Center — Центр приватности: оценка, группы настроек, счётчики защиты
- Support Center — Поддержка: каналы связи со статусом, тикеты с фильтром
- Two Factor Setup — Подключение двухфакторной защиты: способ, QR-код или телефон, проверка кода
- Active Sessions — Активные сессии: текущая, подозрительные входы, отзыв доступа
- Access Tokens — Личные токены доступа: область, последнее использование, отзыв
- Age Gate — Проверка возраста: дата рождения, запоминание, отказ младше лимита
- Profile Details — Профиль: заполненность, подтверждённые контакты, поля
- Address Book — Адресная книга: дом, офис, адреса по умолчанию и действия
- Social Profiles — Соцсети профиля: перестановка, подтверждение, копирование ссылки
- Settings Panel — Страница настроек: навигация по разделам, панель несохранённых изменений, опасная зона
Назад: Permission Matrix · Далее: Privacy Center · Весь раздел «Аккаунт и доступ»