0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-04-08 02:52:39 -05:00

Refined Audit log

refs. https://github.com/TryGhost/Toolbox/issues/356

- member label was too granular and small piece of information to justify a complete "Member" category, so we ignored to fetch the member label related events for now and removed the "Member" category from the filter list
- the term "users" wasn't consistent with the rest of the UI, changed it to "staff"
This commit is contained in:
Peter Zimon 2022-09-05 16:01:36 +02:00
parent 064e91fb2d
commit 0e156d2d68
3 changed files with 3 additions and 4 deletions

View file

@ -11,9 +11,8 @@ const ALL_RESOURCE_TYPES = [
{targets: 'post', name: 'Posts', icon: 'posts'},
{targets: 'page', name: 'Pages', icon: 'page'},
{targets: 'tag', name: 'Tags', icon: 'tag'},
{targets: 'label,member', name: 'Members', icon: 'members'},
{targets: 'offer,product', name: 'Tiers & offers', icon: 'percentage'},
{targets: 'api_key,integration,setting,user,webhook', name: 'Settings & users', icon: 'settings'}
{targets: 'api_key,integration,setting,user,webhook', name: 'Settings & staff', icon: 'settings'}
];
export default class AuditLogEventFilter extends Component {

View file

@ -13,7 +13,7 @@
@triggerClass="gh-member-filter-search-trigger"
@dropdownClass="gh-member-filter-search-dropdown"
@triggerComponent="gh-input-with-select/trigger"
@placeholder="Search users"
@placeholder="Search staff"
@extra={{hash showSearchMessage=false}}
as |member|
>

View file

@ -26,7 +26,7 @@ export default class AuditLogEventFilter extends Helper {
filterParts.push(`event:-[${excludedEventsArray.join(',')}]`);
}
const IGNORED_RESOURCES = [];
const IGNORED_RESOURCES = ['label'];
const excludedResourcesArray = Array.from(excludedResourcesSet).concat(IGNORED_RESOURCES).reject(isBlank);
if (excludedResourcesArray.length > 0) {
filterParts.push(`resource_type:-[${excludedResourcesArray.join(',')}]`);