From 879cdb036eaa44f592dbb5fa217ad96692d0fa00 Mon Sep 17 00:00:00 2001 From: Priyanka Terala <104053200+Terala-Priyanka@users.noreply.github.com> Date: Wed, 24 Apr 2024 18:56:55 +0530 Subject: [PATCH] UITEN-286 - Add new permission to view reading room access in tenant settings. (#395) * UITEN-286 - Add new permission to view reading room access in tenant settings. * UITEN-286 - update jest config to fix the test failure on remote * UITEN-286 - bump up major version and mark this work as breaking change --- CHANGELOG.md | 3 ++- jest.config.js | 1 + package.json | 14 ++++++++++++-- translations/ui-tenant-settings/en.json | 1 + 4 files changed, 16 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 261199c4..62169621 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,9 +1,10 @@ # Change history for ui-tenant-settings -## 8.2.0 (IN PROGRESS) +## 9.0.0 (IN PROGRESS) * [UITEN-274](https://folio-org.atlassian.net/browse/UITEN-274) Use Save & close button label stripes-component translation key. * [UITEN-280](https://folio-org.atlassian.net/browse/UITEN-280) Conditionally include SSO Settings based on login-saml interface. +* [UITEN-286](https://folio-org.atlassian.net/browse/UITEN-286) *BREAKING* Add new interface. Add new permission to view reading room access in tenant settings. ## [8.1.0](https://github.com/folio-org/ui-tenant-settings/tree/v8.1.0)(2024-03-19) [Full Changelog](https://github.com/folio-org/ui-tenant-settings/compare/v8.0.0...v8.1.0) diff --git a/jest.config.js b/jest.config.js index 98599830..22988ec5 100644 --- a/jest.config.js +++ b/jest.config.js @@ -19,6 +19,7 @@ module.exports = { moduleNameMapper: { '^.+\\.(css)$': 'identity-obj-proxy', '^.+\\.(svg)$': 'identity-obj-proxy', + '^.+\\.(png)$': 'identity-obj-proxy', 'ky': 'ky/umd', }, testMatch: ['**/(lib|src)/**/?(*.)test.{js,jsx}'], diff --git a/package.json b/package.json index 57c5dfb5..0ab9c7ce 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@folio/tenant-settings", - "version": "8.1.0", + "version": "9.0.0", "description": "Tenant settings", "main": "src/index.js", "repository": "folio-org/ui-tenant-settings", @@ -17,7 +17,8 @@ "route": "/tenant-settings", "okapiInterfaces": { "configuration": "2.0", - "users": "15.0 16.0" + "users": "15.0 16.0", + "reading-room": "1.0" }, "optionalOkapiInterfaces": { "location-units": "2.0", @@ -207,6 +208,15 @@ "inventory-storage.service-points.item.delete" ], "visible": true + }, + { + "permissionName": "ui-tenant-settings.settings.reading-room-access.view", + "displayName": "Settings (tenant): Can view reading room access", + "subPermissions": [ + "reading-room.collection.get", + "settings.tenant-settings.enabled" + ], + "visible": true } ] }, diff --git a/translations/ui-tenant-settings/en.json b/translations/ui-tenant-settings/en.json index 85f35932..e51d4862 100644 --- a/translations/ui-tenant-settings/en.json +++ b/translations/ui-tenant-settings/en.json @@ -215,6 +215,7 @@ "permission.settings.servicepoints": "Settings (tenant): Can create, edit and remove service points", "permission.settings.servicepoints.view": "Settings (tenant): Can view service points", "permission.settings.bursar-exports": "Settings (tenant): Bursar admin", + "permission.settings.reading-room-access.view": "Settings (tenant): Can view reading room access", "settings.confirmPickupLocationChangeModal.title": "Confirm Pickup location change", "settings.confirmPickupLocationChangeModal.message": "Changing this Pickup location from \"Yes\" to \"No\" will remove it from existing Request policies and affect all Circulation rules using the policies.",