From 44f1f607215a87199252ee41443cd7dd8bbc8f82 Mon Sep 17 00:00:00 2001 From: Arun Jain Date: Tue, 6 May 2025 12:46:59 +0530 Subject: [PATCH 1/5] feat: add component for snow confetti --- package-lock.json | 4 ++-- package.json | 2 +- .../Components/Confetti/Confetti.component.tsx | 18 ++++++++++++++++++ src/Shared/Components/Confetti/index.ts | 2 +- src/index.ts | 1 + 5 files changed, 23 insertions(+), 4 deletions(-) diff --git a/package-lock.json b/package-lock.json index d759c8afc..9ae5ee249 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@devtron-labs/devtron-fe-common-lib", - "version": "1.11.2", + "version": "1.11.2-patch-1", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@devtron-labs/devtron-fe-common-lib", - "version": "1.11.2", + "version": "1.11.2-patch-1", "hasInstallScript": true, "license": "ISC", "dependencies": { diff --git a/package.json b/package.json index 3f8212f81..310b26a9b 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@devtron-labs/devtron-fe-common-lib", - "version": "1.11.2", + "version": "1.11.2-patch-1", "description": "Supporting common component library", "type": "module", "main": "dist/index.js", diff --git a/src/Shared/Components/Confetti/Confetti.component.tsx b/src/Shared/Components/Confetti/Confetti.component.tsx index 6a68f734e..5ecff9e66 100644 --- a/src/Shared/Components/Confetti/Confetti.component.tsx +++ b/src/Shared/Components/Confetti/Confetti.component.tsx @@ -15,8 +15,26 @@ */ import { ComponentProps } from 'react' +import Snow from 'react-canvas-confetti/dist/presets/snow' import Pride from 'react-canvas-confetti/dist/presets/pride' +export const SnowConfetti = () => { + const decorateOptions: ComponentProps['decorateOptions'] = (options) => ({ + ...options, + colors: ['#a864fd'], + }) + + return ( + + ) +} + const Confetti = () => { const decorateOptions: ComponentProps['decorateOptions'] = (options) => ({ ...options, diff --git a/src/Shared/Components/Confetti/index.ts b/src/Shared/Components/Confetti/index.ts index d6af234ed..e7445ee8e 100644 --- a/src/Shared/Components/Confetti/index.ts +++ b/src/Shared/Components/Confetti/index.ts @@ -14,4 +14,4 @@ * limitations under the License. */ -export { default as Confetti } from './Confetti.component' +export { SnowConfetti, default as Confetti } from './Confetti.component' diff --git a/src/index.ts b/src/index.ts index b101a0807..050a20a77 100644 --- a/src/index.ts +++ b/src/index.ts @@ -155,6 +155,7 @@ export interface customEnv { */ FEATURE_APPLICATION_TEMPLATES_ENABLE?: boolean GATEKEEPER_URL?: string + LOGIN_PAGE_IMAGE?: string } declare global { interface Window { From 1fda12b781191fdaf45b35093747d8a0d007fa5a Mon Sep 17 00:00:00 2001 From: Arun Jain Date: Tue, 6 May 2025 18:22:37 +0530 Subject: [PATCH 2/5] chore: version bump --- package-lock.json | 4 ++-- package.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package-lock.json b/package-lock.json index b623ff01a..228e249fc 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@devtron-labs/devtron-fe-common-lib", - "version": "1.12.0-patch-1", + "version": "1.12.0-ath-1", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@devtron-labs/devtron-fe-common-lib", - "version": "1.12.0-patch-1", + "version": "1.12.0-ath-1", "hasInstallScript": true, "license": "ISC", "dependencies": { diff --git a/package.json b/package.json index acf615970..106536394 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@devtron-labs/devtron-fe-common-lib", - "version": "1.12.0-patch-1", + "version": "1.12.0-ath-1", "description": "Supporting common component library", "type": "module", "main": "dist/index.js", From cac409b5c66973c04e87d14f1eea027ab2f9588b Mon Sep 17 00:00:00 2001 From: Arun Jain Date: Tue, 6 May 2025 18:32:39 +0530 Subject: [PATCH 3/5] chore: version bump --- package-lock.json | 4 ++-- package.json | 2 +- src/Shared/Components/Confetti/Confetti.component.tsx | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/package-lock.json b/package-lock.json index 228e249fc..8a665ddc0 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@devtron-labs/devtron-fe-common-lib", - "version": "1.12.0-ath-1", + "version": "1.12.0-ath-2", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@devtron-labs/devtron-fe-common-lib", - "version": "1.12.0-ath-1", + "version": "1.12.0-ath-2", "hasInstallScript": true, "license": "ISC", "dependencies": { diff --git a/package.json b/package.json index 106536394..8ccb4b8c7 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@devtron-labs/devtron-fe-common-lib", - "version": "1.12.0-ath-1", + "version": "1.12.0-ath-2", "description": "Supporting common component library", "type": "module", "main": "dist/index.js", diff --git a/src/Shared/Components/Confetti/Confetti.component.tsx b/src/Shared/Components/Confetti/Confetti.component.tsx index 5ecff9e66..12ff3e361 100644 --- a/src/Shared/Components/Confetti/Confetti.component.tsx +++ b/src/Shared/Components/Confetti/Confetti.component.tsx @@ -15,8 +15,8 @@ */ import { ComponentProps } from 'react' -import Snow from 'react-canvas-confetti/dist/presets/snow' import Pride from 'react-canvas-confetti/dist/presets/pride' +import Snow from 'react-canvas-confetti/dist/presets/snow' export const SnowConfetti = () => { const decorateOptions: ComponentProps['decorateOptions'] = (options) => ({ From 90ca176767534f06729cce55933c777c4238f777 Mon Sep 17 00:00:00 2001 From: Arun Jain Date: Tue, 6 May 2025 18:34:57 +0530 Subject: [PATCH 4/5] chore: auto sort --- src/Shared/Components/Confetti/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Shared/Components/Confetti/index.ts b/src/Shared/Components/Confetti/index.ts index e7445ee8e..8dc9405a6 100644 --- a/src/Shared/Components/Confetti/index.ts +++ b/src/Shared/Components/Confetti/index.ts @@ -14,4 +14,4 @@ * limitations under the License. */ -export { SnowConfetti, default as Confetti } from './Confetti.component' +export { default as Confetti, SnowConfetti } from './Confetti.component' From 0eb2bd4a3c1e4b642a54abb1ac196b4616f676e8 Mon Sep 17 00:00:00 2001 From: Arun Jain Date: Tue, 6 May 2025 18:37:15 +0530 Subject: [PATCH 5/5] chore: version bump --- package-lock.json | 4 ++-- package.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package-lock.json b/package-lock.json index 8a665ddc0..4abe3ed19 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@devtron-labs/devtron-fe-common-lib", - "version": "1.12.0-ath-2", + "version": "1.12.0-ath-3", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@devtron-labs/devtron-fe-common-lib", - "version": "1.12.0-ath-2", + "version": "1.12.0-ath-3", "hasInstallScript": true, "license": "ISC", "dependencies": { diff --git a/package.json b/package.json index 8ccb4b8c7..70d70ca2f 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@devtron-labs/devtron-fe-common-lib", - "version": "1.12.0-ath-2", + "version": "1.12.0-ath-3", "description": "Supporting common component library", "type": "module", "main": "dist/index.js",