From 254c9ae4a295ffca1cff6b8f484c2b0831fb8e4d Mon Sep 17 00:00:00 2001 From: afiapreety Date: Wed, 14 Jan 2026 15:18:09 +0600 Subject: [PATCH 1/9] fix: added oidc redirect varibales on dev --- .env | 2 +- .env.dev | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/.env b/.env index abc9812c..ef503d6f 100644 --- a/.env +++ b/.env @@ -5,7 +5,7 @@ VITE_CAPTCHA_SITE_KEY=6LckI90qAAAAAK8RP2t0Nohwii1CeKOETsXPVNQA VITE_CAPTCHA_TYPE=reCaptcha VITE_PROJECT_SLUG = ddoxpd VITE_BLOCKS_OIDC_CLIENT_ID = 4354ad04-07b9-4e27-8b93-f53b472e1803 -VITE_BLOCKS_OIDC_REDIRECT_URI = http://localhost:3000/oidc +VITE_BLOCKS_OIDC_REDIRECT_URI = http://localhost:3000/oidc # Build configuration diff --git a/.env.dev b/.env.dev index 2615bf20..df18422e 100644 --- a/.env.dev +++ b/.env.dev @@ -5,6 +5,8 @@ VITE_CAPTCHA_SITE_KEY=6LckI90qAAAAAK8RP2t0Nohwii1CeKOETsXPVNQA VITE_CAPTCHA_TYPE=reCaptcha VITE_PROJECT_SLUG = ddoxpd +VITE_BLOCKS_OIDC_CLIENT_ID = 4354ad04-07b9-4e27-8b93-f53b472e1803 +VITE_BLOCKS_OIDC_REDIRECT_URI = https://dev-construct.seliseblocks.com/login # Build configuration GENERATE_SOURCEMAP=false From 1b24547701e3fde4938d335f666bdd9c91cc07da Mon Sep 17 00:00:00 2001 From: afiapreety Date: Wed, 14 Jan 2026 17:49:40 +0600 Subject: [PATCH 2/9] feat: oidc client id for dev --- .env.dev | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.env.dev b/.env.dev index df18422e..86af6a8c 100644 --- a/.env.dev +++ b/.env.dev @@ -5,7 +5,7 @@ VITE_CAPTCHA_SITE_KEY=6LckI90qAAAAAK8RP2t0Nohwii1CeKOETsXPVNQA VITE_CAPTCHA_TYPE=reCaptcha VITE_PROJECT_SLUG = ddoxpd -VITE_BLOCKS_OIDC_CLIENT_ID = 4354ad04-07b9-4e27-8b93-f53b472e1803 +VITE_BLOCKS_OIDC_CLIENT_ID = d45f37a6-7f4a-4f38-9a13-06d74531d7ef VITE_BLOCKS_OIDC_REDIRECT_URI = https://dev-construct.seliseblocks.com/login # Build configuration GENERATE_SOURCEMAP=false From d55deac444369c0d85d289838fe18cb0a4eee8be Mon Sep 17 00:00:00 2001 From: afiapreety Date: Wed, 14 Jan 2026 18:26:51 +0600 Subject: [PATCH 3/9] fix: oidc dev testing --- .env.dev | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.env.dev b/.env.dev index 86af6a8c..0d49aea7 100644 --- a/.env.dev +++ b/.env.dev @@ -6,7 +6,7 @@ VITE_CAPTCHA_TYPE=reCaptcha VITE_PROJECT_SLUG = ddoxpd VITE_BLOCKS_OIDC_CLIENT_ID = d45f37a6-7f4a-4f38-9a13-06d74531d7ef -VITE_BLOCKS_OIDC_REDIRECT_URI = https://dev-construct.seliseblocks.com/login +VITE_BLOCKS_OIDC_REDIRECT_URI = https://dev-construct.seliseblocks.com/oidc # Build configuration GENERATE_SOURCEMAP=false From d492e8891b585866e4e79750495c0fe8caa50bbf Mon Sep 17 00:00:00 2001 From: afiapreety Date: Wed, 14 Jan 2026 18:36:44 +0600 Subject: [PATCH 4/9] fix: goin back to login --- .env.dev | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.env.dev b/.env.dev index 0d49aea7..86af6a8c 100644 --- a/.env.dev +++ b/.env.dev @@ -6,7 +6,7 @@ VITE_CAPTCHA_TYPE=reCaptcha VITE_PROJECT_SLUG = ddoxpd VITE_BLOCKS_OIDC_CLIENT_ID = d45f37a6-7f4a-4f38-9a13-06d74531d7ef -VITE_BLOCKS_OIDC_REDIRECT_URI = https://dev-construct.seliseblocks.com/oidc +VITE_BLOCKS_OIDC_REDIRECT_URI = https://dev-construct.seliseblocks.com/login # Build configuration GENERATE_SOURCEMAP=false From 564e32719808d3a001defc129c2ae7a765cf8b5b Mon Sep 17 00:00:00 2001 From: afiapreety Date: Wed, 14 Jan 2026 18:45:21 +0600 Subject: [PATCH 5/9] feat: credentials include for oidc token to be sent in cookie --- src/lib/https.ts | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/lib/https.ts b/src/lib/https.ts index d96c8286..f3b1de01 100644 --- a/src/lib/https.ts +++ b/src/lib/https.ts @@ -112,11 +112,12 @@ export const clients: Https = { method, headers: requestHeaders, referrerPolicy: 'no-referrer', + credentials: 'include', //for oidc token to be sent in cookie }; - if (!localHostChecker) { - config.credentials = 'include'; - } + // if (!localHostChecker) { + // config.credentials = 'include'; + // } if (body) { config.body = body; From 91b6c2f286d33e76574b75756fc5c0615ad90a14 Mon Sep 17 00:00:00 2001 From: afiapreety Date: Wed, 14 Jan 2026 18:50:50 +0600 Subject: [PATCH 6/9] fix: removed commented out code --- src/lib/https.ts | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/lib/https.ts b/src/lib/https.ts index f3b1de01..2ca9ed3e 100644 --- a/src/lib/https.ts +++ b/src/lib/https.ts @@ -115,10 +115,6 @@ export const clients: Https = { credentials: 'include', //for oidc token to be sent in cookie }; - // if (!localHostChecker) { - // config.credentials = 'include'; - // } - if (body) { config.body = body; } From dbb4592e6e424a520b56d887b48be679d7fd6ca9 Mon Sep 17 00:00:00 2001 From: afiapreety Date: Wed, 14 Jan 2026 19:19:30 +0600 Subject: [PATCH 7/9] fix: taking back include issue --- src/lib/https.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/lib/https.ts b/src/lib/https.ts index 2ca9ed3e..d96c8286 100644 --- a/src/lib/https.ts +++ b/src/lib/https.ts @@ -112,9 +112,12 @@ export const clients: Https = { method, headers: requestHeaders, referrerPolicy: 'no-referrer', - credentials: 'include', //for oidc token to be sent in cookie }; + if (!localHostChecker) { + config.credentials = 'include'; + } + if (body) { config.body = body; } From 527be72f88b280887dd913ced9cf7c6974ce46f4 Mon Sep 17 00:00:00 2001 From: uDay-selise Date: Wed, 21 Jan 2026 12:32:31 +0600 Subject: [PATCH 8/9] Update .gitignore From 1e853a11b4019c371992b2975d8f942997e639e2 Mon Sep 17 00:00:00 2001 From: theshameem75 Date: Sun, 25 Jan 2026 11:41:15 +0600 Subject: [PATCH 9/9] feat: upload file module pass in get presigned api payload --- src/constant/modules.constants.ts | 12 ++++++++++++ src/lib/api/types/storage.types.ts | 1 + .../advance-inventory-details.tsx | 8 +++++++- .../pages/inventory-form/inventory-form.tsx | 2 ++ .../components/modals/edit-profile/edit-profile.tsx | 2 ++ .../task-details-view/attachment-section.tsx | 2 ++ 6 files changed, 26 insertions(+), 1 deletion(-) create mode 100644 src/constant/modules.constants.ts diff --git a/src/constant/modules.constants.ts b/src/constant/modules.constants.ts new file mode 100644 index 00000000..8237cb9a --- /dev/null +++ b/src/constant/modules.constants.ts @@ -0,0 +1,12 @@ +export enum ModuleName { + Cloud = 1, + Construct = 2, + DefaultCloud = 3, + AICloud = 4, + IAMCloud = 5, + Localization = 6, + LMT = 7, + DefaultConstruct = 8, + AIConstruct = 9, + IAMConstruct = 10, +} diff --git a/src/lib/api/types/storage.types.ts b/src/lib/api/types/storage.types.ts index 5c9c9a14..76189ea0 100644 --- a/src/lib/api/types/storage.types.ts +++ b/src/lib/api/types/storage.types.ts @@ -8,6 +8,7 @@ export type GetPreSignedUrlForUploadPayload = { configurationName?: string; projectKey: string; additionalProperties?: Record; + moduleName: number; }; export type GetPreSignedUrlForUploadResponse = { diff --git a/src/modules/inventory/component/advance-inventory-details/advance-inventory-details.tsx b/src/modules/inventory/component/advance-inventory-details/advance-inventory-details.tsx index 0c6b99ff..6939de5d 100644 --- a/src/modules/inventory/component/advance-inventory-details/advance-inventory-details.tsx +++ b/src/modules/inventory/component/advance-inventory-details/advance-inventory-details.tsx @@ -28,7 +28,12 @@ import { Skeleton } from '@/components/ui-kit/skeleton'; import { useGetPreSignedUrlForUpload } from '@/lib/api/hooks/use-storage'; import { GetPreSignedUrlForUploadResponse } from '@/lib/api/types/storage.types'; import PlaceHolderImage from '@/assets/images/image_off_placeholder.webp'; -import { useDeleteInventoryItem, useGetInventories, useUpdateInventoryItem } from '../../hooks/use-inventory'; +import { + useDeleteInventoryItem, + useGetInventories, + useUpdateInventoryItem, +} from '../../hooks/use-inventory'; +import { ModuleName } from '@/constant/modules.constants'; /** * A detailed view and editing interface for an individual inventory item. @@ -116,6 +121,7 @@ export function AdvanceInventoryDetails() { configurationName: 'Default', parentDirectoryId: '', tags: '', + moduleName: ModuleName.DefaultConstruct, }, { onSuccess: (responseData) => resolve(responseData), diff --git a/src/modules/inventory/pages/inventory-form/inventory-form.tsx b/src/modules/inventory/pages/inventory-form/inventory-form.tsx index 65cc3b9a..f7d75ff5 100644 --- a/src/modules/inventory/pages/inventory-form/inventory-form.tsx +++ b/src/modules/inventory/pages/inventory-form/inventory-form.tsx @@ -15,6 +15,7 @@ import { } from '../../types/inventory.types'; import { useAddInventoryItem } from '../../hooks/use-inventory'; import { AdditionalInfoForm } from '../../component/additional-info-form/additional-info-form'; +import { ModuleName } from '@/constant/modules.constants'; /** * Stepper component provides a multi-step navigation interface, displaying the steps and allowing the user to @@ -170,6 +171,7 @@ export const InventoryFormPage = () => { configurationName: 'Default', parentDirectoryId: '', tags: '', + moduleName: ModuleName.DefaultConstruct, }); if (!data.isSuccess || !data.uploadUrl) { diff --git a/src/modules/profile/components/modals/edit-profile/edit-profile.tsx b/src/modules/profile/components/modals/edit-profile/edit-profile.tsx index 6bae4434..3a43a08d 100644 --- a/src/modules/profile/components/modals/edit-profile/edit-profile.tsx +++ b/src/modules/profile/components/modals/edit-profile/edit-profile.tsx @@ -25,6 +25,7 @@ import { Form, FormField, FormItem, FormControl, FormMessage } from '@/component import { UIPhoneInput } from '@/components/core'; import DummyProfile from '@/assets/images/dummy_profile.png'; import { useUpdateAccount } from '@/modules/profile/hooks/use-account'; +import { ModuleName } from '@/constant/modules.constants'; /** * `EditProfile` component allows the user to edit their profile details, including their full name, email, phone number, and profile image. @@ -157,6 +158,7 @@ export function EditProfile({ userInfo, onClose }: Readonly) { configurationName: 'Default', parentDirectoryId: '', tags: '', + moduleName: ModuleName.IAMConstruct, }); if (!data.isSuccess || !data.uploadUrl) { diff --git a/src/modules/task-manager/components/task-details-view/attachment-section.tsx b/src/modules/task-manager/components/task-details-view/attachment-section.tsx index 49dc70d6..077e9fa0 100644 --- a/src/modules/task-manager/components/task-details-view/attachment-section.tsx +++ b/src/modules/task-manager/components/task-details-view/attachment-section.tsx @@ -26,6 +26,7 @@ import { Label } from '@/components/ui-kit/label'; import { Input } from '@/components/ui-kit/input'; import { useGetPreSignedUrlForUpload } from '@/lib/api/hooks/use-storage'; import { useErrorHandler } from '@/hooks/use-error-handler'; +import { ModuleName } from '@/constant/modules.constants'; const getFileType = (file: File): FileType => { if (file.type.includes('pdf')) return 'pdf'; @@ -180,6 +181,7 @@ export function AttachmentsSection({ configurationName: 'Default', parentDirectoryId: '', tags: '', + moduleName: ModuleName.DefaultConstruct, }, { onSuccess: (data) => handleUploadSuccess(data, file, resolve),