From 9a9a75d907acc1f53b76df1951e5ba5a906df57c Mon Sep 17 00:00:00 2001 From: Fredrik Strand Oseberg Date: Fri, 3 Dec 2021 10:08:34 +0100 Subject: [PATCH 1/9] 4.3.0-beta.3 (#538) --- frontend/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/package.json b/frontend/package.json index e61b076278..0951018287 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -1,7 +1,7 @@ { "name": "unleash-frontend", "description": "unleash your features", - "version": "4.3.0-beta.2", + "version": "4.3.0-beta.3", "keywords": [ "unleash", "feature toggle", From aa7068787f34ab5dc34922327972e318b6714119 Mon Sep 17 00:00:00 2001 From: Renovate Bot Date: Fri, 3 Dec 2021 21:12:27 +0000 Subject: [PATCH 2/9] chore(deps): update dependency @testing-library/jest-dom to v5.16.0 --- frontend/package.json | 2 +- frontend/yarn.lock | 15 ++++++++++----- 2 files changed, 11 insertions(+), 6 deletions(-) diff --git a/frontend/package.json b/frontend/package.json index 0951018287..cf7a3c9c01 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -40,7 +40,7 @@ "@material-ui/core": "4.12.3", "@material-ui/icons": "4.11.2", "@material-ui/lab": "4.0.0-alpha.60", - "@testing-library/jest-dom": "5.15.1", + "@testing-library/jest-dom": "5.16.0", "@testing-library/react": "12.1.2", "@testing-library/user-event": "13.5.0", "@types/debounce": "1.2.1", diff --git a/frontend/yarn.lock b/frontend/yarn.lock index f3220b2a0b..6be97ff35d 100644 --- a/frontend/yarn.lock +++ b/frontend/yarn.lock @@ -1886,14 +1886,14 @@ lz-string "^1.4.4" pretty-format "^27.0.2" -"@testing-library/jest-dom@5.15.1": - version "5.15.1" - resolved "https://registry.yarnpkg.com/@testing-library/jest-dom/-/jest-dom-5.15.1.tgz#4c49ba4d244f235aec53f0a83498daeb4ee06c33" - integrity sha512-kmj8opVDRE1E4GXyLlESsQthCXK7An28dFWxhiMwD7ZUI7ZxA6sjdJRxLerD9Jd8cHX4BDc1jzXaaZKqzlUkvg== +"@testing-library/jest-dom@5.16.0": + version "5.16.0" + resolved "https://registry.yarnpkg.com/@testing-library/jest-dom/-/jest-dom-5.16.0.tgz#de1a7c5fedfeb80eb2be9fc81f61473973b302b3" + integrity sha512-ECygvCL6ufPfHna4fsk7o24+3PVNhRbioDpFbfSVEZaglT6EjuRP+w8I5tzigFz1fobpvCrVRoKyR4qx2QUCxw== dependencies: "@babel/runtime" "^7.9.2" "@types/testing-library__jest-dom" "^5.9.1" - aria-query "^4.2.2" + aria-query "^5.0.0" chalk "^3.0.0" css "^3.0.0" css.escape "^1.5.1" @@ -2819,6 +2819,11 @@ aria-query@^4.2.2: "@babel/runtime" "^7.10.2" "@babel/runtime-corejs3" "^7.10.2" +aria-query@^5.0.0: + version "5.0.0" + resolved "https://registry.yarnpkg.com/aria-query/-/aria-query-5.0.0.tgz#210c21aaf469613ee8c9a62c7f86525e058db52c" + integrity sha512-V+SM7AbUwJ+EBnB8+DXs0hPZHO0W6pqBcc0dW90OwtVG02PswOu/teuARoLQjdDOH+t9pJgGnW5/Qmouf3gPJg== + arity-n@^1.0.4: version "1.0.4" resolved "https://registry.npmjs.org/arity-n/-/arity-n-1.0.4.tgz" From 162ccabaf93e732fb2a0108422707a091dcbef4f Mon Sep 17 00:00:00 2001 From: Renovate Bot Date: Fri, 3 Dec 2021 23:47:04 +0000 Subject: [PATCH 3/9] chore(deps): update dependency @types/node to v14.18.0 --- frontend/package.json | 2 +- frontend/yarn.lock | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/frontend/package.json b/frontend/package.json index cf7a3c9c01..6c2c537714 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -48,7 +48,7 @@ "@types/enzyme": "3.10.10", "@types/enzyme-adapter-react-16": "1.0.6", "@types/jest": "27.0.3", - "@types/node": "14.17.34", + "@types/node": "14.18.0", "@types/react": "17.0.37", "@types/react-dom": "17.0.11", "@types/react-router-dom": "5.3.2", diff --git a/frontend/yarn.lock b/frontend/yarn.lock index 6be97ff35d..640fefc013 100644 --- a/frontend/yarn.lock +++ b/frontend/yarn.lock @@ -2112,10 +2112,10 @@ resolved "https://registry.npmjs.org/@types/node/-/node-14.14.37.tgz" integrity sha512-XYmBiy+ohOR4Lh5jE379fV2IU+6Jn4g5qASinhitfyO71b/sCo6MKsMLF5tc7Zf2CE8hViVQyYSobJNke8OvUw== -"@types/node@14.17.34": - version "14.17.34" - resolved "https://registry.yarnpkg.com/@types/node/-/node-14.17.34.tgz#fe4b38b3f07617c0fa31ae923fca9249641038f0" - integrity sha512-USUftMYpmuMzeWobskoPfzDi+vkpe0dvcOBRNOscFrGxVp4jomnRxWuVohgqBow2xyIPC0S3gjxV/5079jhmDg== +"@types/node@14.18.0": + version "14.18.0" + resolved "https://registry.yarnpkg.com/@types/node/-/node-14.18.0.tgz#98df2397f6936bfbff4f089e40e06fa5dd88d32a" + integrity sha512-0GeIl2kmVMXEnx8tg1SlG6Gg8vkqirrW752KqolYo1PHevhhZN3bhJ67qHj+bQaINhX0Ra3TlWwRvMCd9iEfNQ== "@types/node@^14.14.31": version "14.17.19" From d5ff7eab1b3b1bf686cdda3af1bdd45d0bef7f39 Mon Sep 17 00:00:00 2001 From: Renovate Bot Date: Sat, 4 Dec 2021 16:13:05 +0000 Subject: [PATCH 4/9] chore(deps): update dependency prettier to v2.5.1 --- frontend/package.json | 2 +- frontend/yarn.lock | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/frontend/package.json b/frontend/package.json index 6c2c537714..fb27020447 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -73,7 +73,7 @@ "lodash.clonedeep": "4.5.0", "lodash.flow": "3.5.0", "node-fetch": "2.6.6", - "prettier": "2.5.0", + "prettier": "2.5.1", "react": "17.0.2", "react-dnd": "14.0.4", "react-dnd-html5-backend": "14.0.2", diff --git a/frontend/yarn.lock b/frontend/yarn.lock index 640fefc013..a0dd816fa0 100644 --- a/frontend/yarn.lock +++ b/frontend/yarn.lock @@ -10160,10 +10160,10 @@ prepend-http@^1.0.0: resolved "https://registry.npmjs.org/prepend-http/-/prepend-http-1.0.4.tgz" integrity sha1-1PRWKwzjaW5BrFLQ4ALlemNdxtw= -prettier@2.5.0: - version "2.5.0" - resolved "https://registry.yarnpkg.com/prettier/-/prettier-2.5.0.tgz#a6370e2d4594e093270419d9cc47f7670488f893" - integrity sha512-FM/zAKgWTxj40rH03VxzIPdXmj39SwSjwG0heUcNFwI+EMZJnY93yAiKXM3dObIKAM5TA88werc8T/EwhB45eg== +prettier@2.5.1: + version "2.5.1" + resolved "https://registry.yarnpkg.com/prettier/-/prettier-2.5.1.tgz#fff75fa9d519c54cf0fce328c1017d94546bc56a" + integrity sha512-vBZcPRUR5MZJwoyi3ZoyQlc1rXeEck8KgeC9AwwOn+exuxLxq5toTRDTSaVrXHxelDMHy9zlicw8u66yxoSUFg== pretty-bytes@^5.3.0, pretty-bytes@^5.6.0: version "5.6.0" From cfd22402ba492bfd39e1e06e1754ebb498f160b2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ivar=20Conradi=20=C3=98sthus?= Date: Mon, 6 Dec 2021 12:37:00 +0100 Subject: [PATCH 5/9] 4.3.0 (#545) Co-authored-by: Fredrik Strand Oseberg --- frontend/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/package.json b/frontend/package.json index fb27020447..eade783a19 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -1,7 +1,7 @@ { "name": "unleash-frontend", "description": "unleash your features", - "version": "4.3.0-beta.3", + "version": "4.3.0", "keywords": [ "unleash", "feature toggle", From d95400f7c26c4aff27c9d881b25cd63ee5bfb859 Mon Sep 17 00:00:00 2001 From: Youssef Khedher Date: Mon, 6 Dec 2021 13:04:15 +0100 Subject: [PATCH 6/9] fix: truncate long environment name (#535) * fix: truncate long environment name * fix: truncate no strategies in NoItemsStrategies * fix: open doc link in new tab * fix: redirect to add new strategy view from overview tab * fix: truncate environment name in create strategy header Co-authored-by: Fredrik Strand Oseberg --- .../NoItemsStrategies/NoItemsStrategies.styles.ts | 5 +++++ .../NoItems/NoItemsStrategies/NoItemsStrategies.tsx | 11 ++++++++++- .../CreateEnvironmentSuccessCard.tsx | 5 ++++- .../EnvironmentDeleteConfirm.tsx | 5 +---- .../EnvironmentListItem/EnvironmentListItem.tsx | 5 ++++- .../FeatureOverviewEnvironmentBody.tsx | 2 +- .../FeatureStrategiesCreateHeader.tsx | 9 +++++++-- 7 files changed, 32 insertions(+), 10 deletions(-) diff --git a/frontend/src/component/common/NoItems/NoItemsStrategies/NoItemsStrategies.styles.ts b/frontend/src/component/common/NoItems/NoItemsStrategies/NoItemsStrategies.styles.ts index 36ea911602..ee30fda344 100644 --- a/frontend/src/component/common/NoItems/NoItemsStrategies/NoItemsStrategies.styles.ts +++ b/frontend/src/component/common/NoItems/NoItemsStrategies/NoItemsStrategies.styles.ts @@ -8,4 +8,9 @@ export const useStyles = makeStyles(theme => ({ display: 'block', margin: '1rem 0 0 0', }, + envName: { + position: 'relative', + top: '6px', + fontWeight: 'bold' + }, })); diff --git a/frontend/src/component/common/NoItems/NoItemsStrategies/NoItemsStrategies.tsx b/frontend/src/component/common/NoItems/NoItemsStrategies/NoItemsStrategies.tsx index 780cab1a37..f5e0577804 100644 --- a/frontend/src/component/common/NoItems/NoItemsStrategies/NoItemsStrategies.tsx +++ b/frontend/src/component/common/NoItems/NoItemsStrategies/NoItemsStrategies.tsx @@ -1,6 +1,7 @@ import { UPDATE_FEATURE } from '../../../providers/AccessProvider/permissions'; import ConditionallyRender from '../../ConditionallyRender'; import PermissionButton from '../../PermissionButton/PermissionButton'; +import StringTruncator from '../../StringTruncator/StringTruncator'; import NoItems from '../NoItems'; import { useStyles } from './NoItemsStrategies.styles'; @@ -21,7 +22,13 @@ const NoItemsStrategies = ({ return (

- No strategies added in the {envName} environment + No strategies added in the{' '} + {' '} + environment

@@ -30,6 +37,8 @@ const NoItemsStrategies = ({ Read more here diff --git a/frontend/src/component/environments/CreateEnvironment/CreateEnvironmentSuccess/CreateEnvironmentSuccessCard/CreateEnvironmentSuccessCard.tsx b/frontend/src/component/environments/CreateEnvironment/CreateEnvironmentSuccess/CreateEnvironmentSuccessCard/CreateEnvironmentSuccessCard.tsx index 0283c07755..8e428e3e0d 100644 --- a/frontend/src/component/environments/CreateEnvironment/CreateEnvironmentSuccess/CreateEnvironmentSuccessCard/CreateEnvironmentSuccessCard.tsx +++ b/frontend/src/component/environments/CreateEnvironment/CreateEnvironmentSuccess/CreateEnvironmentSuccessCard/CreateEnvironmentSuccessCard.tsx @@ -1,4 +1,5 @@ import { CloudCircle } from '@material-ui/icons'; +import StringTruncator from '../../../../common/StringTruncator/StringTruncator'; import { ICreateEnvironmentSuccessProps } from '../CreateEnvironmentSuccess'; import { useStyles } from './CreateEnvironmentSuccessCard.styles'; @@ -16,7 +17,9 @@ const CreateEnvironmentSuccessCard = ({

Id
-
{name}
+
+ +
Type
diff --git a/frontend/src/component/environments/EnvironmentList/EnvironmentDeleteConfirm/EnvironmentDeleteConfirm.tsx b/frontend/src/component/environments/EnvironmentList/EnvironmentDeleteConfirm/EnvironmentDeleteConfirm.tsx index e1e1672aa5..147e582643 100644 --- a/frontend/src/component/environments/EnvironmentList/EnvironmentDeleteConfirm/EnvironmentDeleteConfirm.tsx +++ b/frontend/src/component/environments/EnvironmentList/EnvironmentDeleteConfirm/EnvironmentDeleteConfirm.tsx @@ -52,10 +52,7 @@ const EnvironmentDeleteConfirm = ({ strategies that are active in this environment across all feature toggles. - +

In order to delete this environment, please enter the id of the diff --git a/frontend/src/component/environments/EnvironmentList/EnvironmentListItem/EnvironmentListItem.tsx b/frontend/src/component/environments/EnvironmentList/EnvironmentListItem/EnvironmentListItem.tsx index 4aca2ad472..67b68ba903 100644 --- a/frontend/src/component/environments/EnvironmentList/EnvironmentListItem/EnvironmentListItem.tsx +++ b/frontend/src/component/environments/EnvironmentList/EnvironmentListItem/EnvironmentListItem.tsx @@ -24,6 +24,7 @@ import { import { useDrag, useDrop, DropTargetMonitor } from 'react-dnd'; import { XYCoord } from 'dnd-core'; import DisabledIndicator from '../../../common/DisabledIndicator/DisabledIndicator'; +import StringTruncator from '../../../common/StringTruncator/StringTruncator'; interface IEnvironmentListItemProps { env: IEnvironment; @@ -132,7 +133,9 @@ const EnvironmentListItem = ({ - {env.name} + + + } diff --git a/frontend/src/component/feature/FeatureView2/FeatureOverview/FeatureOverviewEnvironments/FeatureOverviewEnvironment/FeatureOverviewEnvironmentBody/FeatureOverviewEnvironmentBody.tsx b/frontend/src/component/feature/FeatureView2/FeatureOverview/FeatureOverviewEnvironments/FeatureOverviewEnvironment/FeatureOverviewEnvironmentBody/FeatureOverviewEnvironmentBody.tsx index 3944758775..c44423a721 100644 --- a/frontend/src/component/feature/FeatureView2/FeatureOverview/FeatureOverviewEnvironments/FeatureOverviewEnvironment/FeatureOverviewEnvironmentBody/FeatureOverviewEnvironmentBody.tsx +++ b/frontend/src/component/feature/FeatureView2/FeatureOverview/FeatureOverviewEnvironments/FeatureOverviewEnvironment/FeatureOverviewEnvironmentBody/FeatureOverviewEnvironmentBody.tsx @@ -19,7 +19,7 @@ const FeatureOverviewEnvironmentBody = ({ const { projectId, featureId } = useParams(); const styles = useStyles(); const history = useHistory(); - const strategiesLink = `/projects/${projectId}/features2/${featureId}/strategies?environment=${featureEnvironment?.name}`; + const strategiesLink = `/projects/${projectId}/features2/${featureId}/strategies?environment=${featureEnvironment?.name}&addStrategy=true`; if (!featureEnvironment) return null; diff --git a/frontend/src/component/feature/FeatureView2/FeatureStrategies/FeatureStrategiesEnvironments/FeatureStrategiesCreateHeader/FeatureStrategiesCreateHeader.tsx b/frontend/src/component/feature/FeatureView2/FeatureStrategies/FeatureStrategiesEnvironments/FeatureStrategiesCreateHeader/FeatureStrategiesCreateHeader.tsx index a9241d938b..41ba6ff27b 100644 --- a/frontend/src/component/feature/FeatureView2/FeatureStrategies/FeatureStrategiesEnvironments/FeatureStrategiesCreateHeader/FeatureStrategiesCreateHeader.tsx +++ b/frontend/src/component/feature/FeatureView2/FeatureStrategies/FeatureStrategiesEnvironments/FeatureStrategiesCreateHeader/FeatureStrategiesCreateHeader.tsx @@ -1,6 +1,7 @@ import { useContext } from 'react'; import FeatureStrategiesUIContext from '../../../../../../contexts/FeatureStrategiesUIContext'; import EnvironmentIcon from '../../../../../common/EnvironmentIcon/EnvironmentIcon'; +import StringTruncator from '../../../../../common/StringTruncator/StringTruncator'; import { useStyles } from './FeatureStrategiesCreateHeader.styles'; const FeatureStrategiesCreateHeader = () => { @@ -13,8 +14,12 @@ const FeatureStrategiesCreateHeader = () => { return (

- {' '} - Configuring strategy for {activeEnvironment?.name} + + Configuring strategy for  +
); From f8710e61cc39e58c348c6296b4e5f62e738903ca Mon Sep 17 00:00:00 2001 From: Renovate Bot Date: Mon, 6 Dec 2021 13:07:18 +0000 Subject: [PATCH 7/9] chore(deps): update dependency @testing-library/jest-dom to v5.16.1 --- frontend/package.json | 2 +- frontend/yarn.lock | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/frontend/package.json b/frontend/package.json index eade783a19..a8238f303a 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -40,7 +40,7 @@ "@material-ui/core": "4.12.3", "@material-ui/icons": "4.11.2", "@material-ui/lab": "4.0.0-alpha.60", - "@testing-library/jest-dom": "5.16.0", + "@testing-library/jest-dom": "5.16.1", "@testing-library/react": "12.1.2", "@testing-library/user-event": "13.5.0", "@types/debounce": "1.2.1", diff --git a/frontend/yarn.lock b/frontend/yarn.lock index a0dd816fa0..2517c466d4 100644 --- a/frontend/yarn.lock +++ b/frontend/yarn.lock @@ -1886,10 +1886,10 @@ lz-string "^1.4.4" pretty-format "^27.0.2" -"@testing-library/jest-dom@5.16.0": - version "5.16.0" - resolved "https://registry.yarnpkg.com/@testing-library/jest-dom/-/jest-dom-5.16.0.tgz#de1a7c5fedfeb80eb2be9fc81f61473973b302b3" - integrity sha512-ECygvCL6ufPfHna4fsk7o24+3PVNhRbioDpFbfSVEZaglT6EjuRP+w8I5tzigFz1fobpvCrVRoKyR4qx2QUCxw== +"@testing-library/jest-dom@5.16.1": + version "5.16.1" + resolved "https://registry.yarnpkg.com/@testing-library/jest-dom/-/jest-dom-5.16.1.tgz#3db7df5ae97596264a7da9696fe14695ba02e51f" + integrity sha512-ajUJdfDIuTCadB79ukO+0l8O+QwN0LiSxDaYUTI4LndbbUsGi6rWU1SCexXzBA2NSjlVB9/vbkasQIL3tmPBjw== dependencies: "@babel/runtime" "^7.9.2" "@types/testing-library__jest-dom" "^5.9.1" From 1f133beb46bb04a1723c9ebd0307a45532e84bbb Mon Sep 17 00:00:00 2001 From: Fredrik Strand Oseberg Date: Mon, 6 Dec 2021 15:43:08 +0100 Subject: [PATCH 8/9] fix: reset loader when fetch receives 401 and fix no auth type (#549) --- frontend/src/component/App.tsx | 16 ++++++++++++++-- .../providers/SWRProvider/SWRProvider.tsx | 4 +++- frontend/src/component/user/Login/Login.tsx | 1 - .../src/hooks/api/getters/useUser/useUser.ts | 13 +++++++++++-- 4 files changed, 28 insertions(+), 6 deletions(-) diff --git a/frontend/src/component/App.tsx b/frontend/src/component/App.tsx index 0bdfccb329..f6a048b51e 100644 --- a/frontend/src/component/App.tsx +++ b/frontend/src/component/App.tsx @@ -28,13 +28,24 @@ interface IAppProps extends RouteComponentProps { const App = ({ location, user, fetchUiBootstrap }: IAppProps) => { const { toast, setToastData } = useToast(); // because we need the userId when the component load. - const { splash, user: userFromUseUser } = useUser(); + const { splash, user: userFromUseUser, authDetails } = useUser(); const [showSplash, setShowSplash] = useState(false); + const [showLoader, setShowLoader] = useState(false); useEffect(() => { fetchUiBootstrap(); /* eslint-disable-next-line */ }, [user.authDetails?.type]); + useEffect(() => { + // Temporary duality until redux store is removed + if (!isUnauthorized() && !userFromUseUser?.id && !authDetails) { + setShowLoader(true); + return; + } + setShowLoader(false); + /* eslint-disable-next-line */ + }, [user.authDetails, userFromUseUser.id]); + useEffect(() => { if (splash?.environment === undefined) return; if (!splash?.environment && !isUnauthorized()) { @@ -92,9 +103,10 @@ const App = ({ location, user, fetchUiBootstrap }: IAppProps) => { } elseShow={
diff --git a/frontend/src/component/providers/SWRProvider/SWRProvider.tsx b/frontend/src/component/providers/SWRProvider/SWRProvider.tsx index 31d87304f1..4d3d4d9937 100644 --- a/frontend/src/component/providers/SWRProvider/SWRProvider.tsx +++ b/frontend/src/component/providers/SWRProvider/SWRProvider.tsx @@ -5,6 +5,7 @@ import { IToast } from '../../../hooks/useToast'; interface ISWRProviderProps { setToastData: (toastData: IToast) => void; + setShowLoader: React.Dispatch>; isUnauthorized: () => boolean; } @@ -12,15 +13,16 @@ const SWRProvider: React.FC = ({ children, setToastData, isUnauthorized, + setShowLoader, }) => { const { cache } = useSWRConfig(); const history = useHistory(); const handleFetchError = error => { + setShowLoader(false); if (error.status === 401) { cache.clear(); const path = location.pathname; - mutate(USER_CACHE_KEY, { ...error.info }, false); if (path === '/login') { return; diff --git a/frontend/src/component/user/Login/Login.tsx b/frontend/src/component/user/Login/Login.tsx index 29fd52f91f..c98a86508c 100644 --- a/frontend/src/component/user/Login/Login.tsx +++ b/frontend/src/component/user/Login/Login.tsx @@ -25,7 +25,6 @@ const Login = () => { }, [permissions.length]); const resetPassword = query.get('reset') === 'true'; - return (
diff --git a/frontend/src/hooks/api/getters/useUser/useUser.ts b/frontend/src/hooks/api/getters/useUser/useUser.ts index fb0095e26e..5dcd5eb1a0 100644 --- a/frontend/src/hooks/api/getters/useUser/useUser.ts +++ b/frontend/src/hooks/api/getters/useUser/useUser.ts @@ -5,6 +5,7 @@ import { IPermission } from '../../../../interfaces/user'; import handleErrorResponses from '../httpErrorResponseHandler'; export const USER_CACHE_KEY = `api/admin/user`; +const NO_AUTH_USERNAME = 'unknown'; const useUser = ( options: SWRConfiguration = { @@ -33,12 +34,20 @@ const useUser = ( setLoading(!error && !data); }, [data, error]); + let user = data?.user; + // Set a user id if no authentication is on + // to cancel the loader. + + if (data && user?.username === NO_AUTH_USERNAME) { + user = { ...user, id: 1 }; + } + return { - user: data?.user || {}, + user: user || {}, permissions: (data?.permissions || []) as IPermission[], feedback: data?.feedback || [], splash: data?.splash || {}, - authDetails: data || {}, + authDetails: data || undefined, error, loading, refetch, From bb38df5293760f78122bbe428ccd396a30e52372 Mon Sep 17 00:00:00 2001 From: Fredrik Strand Oseberg Date: Tue, 7 Dec 2021 12:34:11 +0100 Subject: [PATCH 9/9] 4.3.1 (#551) --- frontend/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/package.json b/frontend/package.json index a8238f303a..1f30a58898 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -1,7 +1,7 @@ { "name": "unleash-frontend", "description": "unleash your features", - "version": "4.3.0", + "version": "4.3.1", "keywords": [ "unleash", "feature toggle",