diff --git a/invenio_requests/assets/semantic-ui/js/invenio_requests/contrib/index.js b/invenio_requests/assets/semantic-ui/js/invenio_requests/contrib/index.js index 8d04a812..87ff77a0 100644 --- a/invenio_requests/assets/semantic-ui/js/invenio_requests/contrib/index.js +++ b/invenio_requests/assets/semantic-ui/js/invenio_requests/contrib/index.js @@ -1,5 +1,4 @@ import { - LabelStatusAccept, LabelStatusCancel, LabelStatusDecline, @@ -12,24 +11,21 @@ import { LabelTypeGuestAccess, LabelTypeUserAccess, LabelTypeCommunityManageRecord, - LabelTypeCommunitySubcommunity - + LabelTypeCommunitySubcommunity, + LabelTypeCommunityMembershipRequest, } from "@js/invenio_requests/contrib"; import { - RequestAcceptButton, RequestCancelButton, RequestDeclineButton, RequestSubmitButton, } from "@js/invenio_requests/components/Buttons"; import { - RequestAcceptModalTrigger, RequestDeclineModalTrigger, RequestCancelModalTrigger, } from "@js/invenio_requests/components/ModalTriggers"; import { - AccessRequestIcon, CommunityInclusionIcon, CommunityInvitationIcon, @@ -43,6 +39,7 @@ export const defaultContribComponents = { [`RequestTypeLabel.layout.user-access-request`]: LabelTypeUserAccess, [`RequestTypeLabel.layout.community-manage-record`]: LabelTypeCommunityManageRecord, [`RequestTypeLabel.layout.subcommunity`]: LabelTypeCommunitySubcommunity, + [`RequestTypeLabel.layout.community-membership-request`]: LabelTypeCommunityMembershipRequest, [`RequestStatusLabel.layout.submitted`]: LabelStatusSubmit, [`RequestStatusLabel.layout.deleted`]: LabelStatusDelete, [`RequestStatusLabel.layout.accepted`]: LabelStatusAccept, diff --git a/invenio_requests/assets/semantic-ui/js/invenio_requests/contrib/labels/TypeLabel.js b/invenio_requests/assets/semantic-ui/js/invenio_requests/contrib/labels/TypeLabel.js index ac9674d3..e85f0b5a 100644 --- a/invenio_requests/assets/semantic-ui/js/invenio_requests/contrib/labels/TypeLabel.js +++ b/invenio_requests/assets/semantic-ui/js/invenio_requests/contrib/labels/TypeLabel.js @@ -1,5 +1,6 @@ // This file is part of InvenioRequests // Copyright (C) 2022 CERN. +// Copyright (C) 2024 Northwestern University. // // Invenio RDM Records is free software; you can redistribute it and/or modify it // under the terms of the MIT License; see LICENSE file for more details. @@ -49,3 +50,9 @@ export const LabelTypeCommunitySubcommunity = (props) => ( {i18next.t("Subcommunity")} ); + +export const LabelTypeCommunityMembershipRequest = (props) => ( + +); diff --git a/invenio_requests/assets/semantic-ui/js/invenio_requests/requestsAppInit.js b/invenio_requests/assets/semantic-ui/js/invenio_requests/requestsAppInit.js index 45e8ba3c..1f0e01de 100644 --- a/invenio_requests/assets/semantic-ui/js/invenio_requests/requestsAppInit.js +++ b/invenio_requests/assets/semantic-ui/js/invenio_requests/requestsAppInit.js @@ -1,5 +1,6 @@ // This file is part of InvenioRequests // Copyright (C) 2022 CERN. +// Copyright (C) 2024 Northwestern University. // // Invenio RDM Records is free software; you can redistribute it and/or modify it // under the terms of the MIT License; see LICENSE file for more details. @@ -29,7 +30,8 @@ import { LabelTypeGuestAccess, LabelTypeUserAccess, LabelTypeCommunityManageRecord, - LabelTypeCommunitySubcommunity + LabelTypeCommunitySubcommunity, + LabelTypeCommunityMembershipRequest, } from "./contrib"; import { AcceptStatus, @@ -75,6 +77,7 @@ const defaultComponents = { "RequestTypeLabel.layout.user-access-request": LabelTypeUserAccess, "RequestTypeLabel.layout.community-manage-record": LabelTypeCommunityManageRecord, "RequestTypeLabel.layout.subcommunity": LabelTypeCommunitySubcommunity, + "RequestTypeLabel.layout.community-membership-request": LabelTypeCommunityMembershipRequest, "RequestActionModalTrigger.accept": RequestAcceptModalTrigger, "RequestActionModalTrigger.decline": RequestDeclineModalTrigger, "RequestActionModalTrigger.cancel": RequestCancelModalTrigger, diff --git a/invenio_requests/services/requests/facets.py b/invenio_requests/services/requests/facets.py index 2f44a3fb..300e9351 100644 --- a/invenio_requests/services/requests/facets.py +++ b/invenio_requests/services/requests/facets.py @@ -21,6 +21,7 @@ "guest-access-request": _("Guest access"), "user-access-request": _("User access"), "community-manage-record": _("Community manage record"), + "community-membership-request": _("Membership request"), }, )