merge upstream - #9
Closed
Kjartan (KjartanE) wants to merge 126 commits into
Closed
Kjartan (KjartanE) wants to merge 126 commits into
Kjartan (KjartanE) wants to merge 126 commits into
Conversation
Kjartan (KjartanE)
commented
Sep 10, 2025
- Restructuring to monorepo, add builder applications (Integration with the applications bcgov/BC-Wallet-Demo#267)
- feat: add helm charts and templates to deploy in openshift environment (Feat: Add helm charts and templates to deploy in openshift environment bcgov/BC-Wallet-Demo#272)
- Refactor GitHub Actions workflow for OpenShift deployment (Refactor GitHub Actions workflow for OpenShift deployment bcgov/BC-Wallet-Demo#273)
- sync - Integration and application updates (sync - Integration and application updates bcgov/BC-Wallet-Demo#274)
- Integration branch fix pnpm file (Integration branch fix pnpm file bcgov/BC-Wallet-Demo#277)
- Integration/showcase builder may (Integration/showcase builder may bcgov/BC-Wallet-Demo#279)
- Integration/showcase builder env overhaul (Integration/showcase builder env overhaul bcgov/BC-Wallet-Demo#280)
- Complete rewrite of the Helm Chart (Complete rewrite of the Helm Chart bcgov/BC-Wallet-Demo#281)
- namespace is a variable not a secret.
- do not create rbac Signed-off-by: Ivan P 2119240+i5okie@users.noreply.github.com
- Updating helm dependencies is not necessary Signed-off-by: Ivan P 2119240+i5okie@users.noreply.github.com
- Cache docker layers Signed-off-by: Ivan P 2119240+i5okie@users.noreply.github.com
- fix helm command Signed-off-by: Ivan P 2119240+i5okie@users.noreply.github.com
- commit helm dependencies
- try fix docker layer caching in build action
- use aquasecurity trivy scan action
- add security-events: write permission
- try fixing permissions
- try using github output
- try using table output
- enable readiness probe for demo-web ([Helm] Enable readiness probe for demo-web bcgov/BC-Wallet-Demo#284)
- Showcase builder updates (Integration/showcase builder may15 bcgov/BC-Wallet-Demo#286)
- Correctly trigger on PR to showcase-builder branch (Correctly trigger on PR to showcase-builder branch bcgov/BC-Wallet-Demo#289)
- Refactor components for improved readability and maintainability
- docs: Readme updates
- reverted spacing-only modified files
- reverted charts stuff
- moved docs
- docs: Update README and environment files for improved setup instructions and configurations
- chore: Update .gitignore to include .env.example and add .env.example file
- docs: Update README with clean build artifacts instructions and enhance clean script in package.json
- chore: Clean up .env.example by removing unused variables
- docs: Enhance README with instructions for running bc-wallet-showcase-creator natively and clarify Docker usage
- Added Keycloak instructions
- Added Keycloak instructions
- Refactor code structure for improved readability and maintainability
- fix: Correct step descriptions in showcase creation instructions
- Updated PR workflows (Updated PR workflows bcgov/BC-Wallet-Demo#292)
- Correctly set namespace name for PR deployment (Correctly set namespace name for PR deployment bcgov/BC-Wallet-Demo#293)
- Update chart and workflows (Update chart and workflows bcgov/BC-Wallet-Demo#294)
- fix urls in workflow summary (fix urls in workflow summary bcgov/BC-Wallet-Demo#295)
- Update environment configurations and Docker setup for local development
- Refactor Dockerfiles across all applications to enhance user permissions for improved security and consistency in runtime environments.
- Update API URL configuration in .env.example for Docker compatibility - Updated README
- chore: Fetch full tenant record for buildSendOptions()
- chore: Fetch full tenant record for buildSendOptions()
- feat: Enhance onboarding and scenario management with drag-and-drop functionality and improved step handling
- chore: Dummy OIDC_ROOT_ISSUER_URL, OIDC_ROOT_CLIENT_ID and OIDC_ROOT_CLIENT_SECRET env vars for testing
- chore: Debugging & tuning helm deployment
- chore: fallbackEnv for local dev envs
- chore: fallbackEnv for local dev envs
- chore: fallbackEnv for local dev envs
- chore: Traction adapter enhancements
- chore: fix swapped out NEXT_PUBLIC_ env vars
- chore: fix test
- chore: added rabbitmq binary chart
- chore: Additional fixes for env vars
- chore: use default CORS setting
- chore: Chart env cleanup
- chore: Chart env cleanup
- feat: Enhance scenario creation and management
- feat: Integrate tenant ID and showcase slug in navigation for onboarding flow
- refactor: Improve error handling in tenant validation and fetch functions
- chore: Refactor environment variables for services and remove deprecated envFrom includes
- fix: Update project name in README to match the correct application title
- fix: Correct indentation for api-server deployment.yaml file
- fix: Add envFrom rendering for services in deployment templates
- chore: fixed tenant fetch
- fix: remove tenant validation check from middleware
- fix: handle invalid tenant by rewriting to /invalid-tenant
- chore: tenant owns issuer & relying party now
- chore: tenant related tests passing again. Updated traction adapter to include tenantId on credential definitions
- feat: integrate tenant fetching and management across onboarding and showcase components
- chore: updated other tests
- chore: updated other tests
- chore: updated other tests
- chore: all tests green
- merge quartech pr-open changes
- revert changes for PR open back to showcase builder pr deploy
- deploy settings
- update values chart with trust-services values
- add health check to api-server for aks deployment
- co-pilot edits, update response object to json
- add express healthcheck for traction adaptor
- update db resource limits
- feat: add persona description to onboarding components and update showcase API
- notes for showcase
- feat: enhance credential import and approval processes with error handling and logging
- deploy configs
- feat: add persona description to onboarding components and update showcase API
- feat: enhance credential import and approval processes with error handling and logging
- credential library issues fixed
- update showcases with demo review changes
- feat: Update AppSidebar to display tenant ID and link to tenant-specific homepage
- updated query key
- feat: Enhance onboarding and showcase components with session management and scenario handling
- fix: Add missing reference for bc-wallet-traction-adapter in tsconfig
- fix: Update test cases to use 'example_name' for credential definitions
- restrict schema with same name and version
- feat: Add environment variables for relying party name and wallet QR code URL
- feat: add persona description to onboarding components and update showcase API
- feat: enhance credential import and approval processes with error handling and logging
- credential library issues fixed
- updated query key
- feat: Update AppSidebar to display tenant ID and link to tenant-specific homepage
- feat: Enhance onboarding and showcase components with session management and scenario handling
- fix: Add missing reference for bc-wallet-traction-adapter in tsconfig
- predicates implemented in showcase creator
- added multiple predicates to single proof request
* chore: Added SHOWCASE-155 changes * chore: Created additional migration file * chore: Solved merging issue in test * Updated all image to show proper image url instead of base64 * refactor: Update image handling and configuration - Changed image hostname patterns in next.config.ts to include 'localhost' and 'dev.nborbit.ca'. - Replaced <img> tags with <Image> component in credentials-display.tsx, credentials-form.tsx, and display-added-credentials.tsx for better image handling. - Simplified base64 conversion logic in local-file-upload.tsx and utils.ts, removing unnecessary prefix handling. - Updated alt text for images to improve accessibility. * Updated all alt and image metadata, updated the french translation in Publish, UI fixes on Publish, changed credentials-display toggle behavior * chore: Added SHOWCASE-153 changes * chore: Put a missing ? on the step.actions property * chore: Removed screenId and replaced the AriesOOBAction with StepActionTypes * chore: Fixed merging issues * chore: updated DB & openAPI to support a showcase owning tenant entity * chore: tag * chore: removed rogue char * chore: lines * chore: PR feedback * chore: instanceOfTenantRequest * chore: TenantRequestToJSONTyped * chore: TenantResponseFromJSONTyped fixes * chore: migratoins * chore: tests passing * chore: fix tests * chore: Controller test upgrades & testing for tenant entities * chore: cleanup * chore: cleanup * updated with only png and jpeg support, fixed preview issues * Enhance image handling in onboarding and scenario screens; added width and height attributes for better responsiveness, removed console logs, and updated .gitignore to include additional Open API generated packages. * feat: add useScenarios hook to sortable-step component * fix: remove redundant tenantId from invalid showcase request in integration tests * fix: replace hardcoded tenantId with variable in ShowcaseController integration test * env variables on the showcase builder, added env sample and exception for it in gitignore * updated gitignore for better reusability * updated wallet url without the / also updated the values.yaml to be consistent * Updated URL to use NEXT_PUBLIC directly, removed quotes in values.yaml * Implement Keycloak authentication and update dependencies; added auth middleware, login page, and session management. Updated pnpm-lock.yaml for new package versions and added new components for protected routes. * Implement environment variable management in the showcase builder. Added env.ts for type-safe environment variables, updated .env.sample with new variables, and modified apiService and utils to utilize the new env structure. Also, updated next.config.ts to include necessary packages for transpilation. * Refactor environment variable usage in showcase creator. Updated .env.sample and values.yaml to remove NEXT_PUBLIC prefix, modified env.ts to reflect changes, and adjusted components and services to utilize the new variable structure. * Refactor environment variable handling in showcase creator. Updated .env.sample and values.yaml to use NEXT_PUBLIC prefix, modified env.ts for client-side variables, and adjusted components to utilize the new variable structure for improved consistency and clarity. * Update pnpm-lock.yaml to reflect changes in jiti version and add jose@5.10.0 dependency. Adjusted various package dependencies to use the latest jiti version for improved compatibility. * Refactor Keycloak authentication to utilize centralized environment variable management. Updated auth.ts to import environment variables from the new env module for improved consistency and maintainability. * Add developer dashboard components and command dialog menu - Introduced new components for the developer dashboard: User, IssuanceState, PresentationState, and Helpers. - Implemented CommandDialogMenu for navigation and theme toggling. - Updated layout to include CommandDialogMenu for enhanced user interaction. - Added new page for developer dashboard under the protected route. * fix: fix onboarding flow credential issuance * chore: fix promise issue * env variables on the showcase builder, added env sample and exception for it in gitignore * updated gitignore for better reusability * updated wallet url without the / also updated the values.yaml to be consistent * Updated URL to use NEXT_PUBLIC directly, removed quotes in values.yaml * Refactor character showcase pages by deleting the old character page and creating new character pages for both individual and create showcase scenarios. The new pages utilize a TabsComponent and enhance the layout for better user experience. * feat: add tenantId to various components and update image alt attributes for better accessibility * Enhance Create Onboarding Page with step-by-step guide for showcase creation. Updated headings and added detailed instructions to improve user experience. * chore: save work * chore: removed duplicate /showcases/:slug/approve endpoint * chore: post-merge * chore: redo migrations * feat: Add runtime environment variable support using env.sh * feat: added presentation scenario overview to dashboard page * Enhance ShowcaseController to support larger request bodies by increasing the limit to 250mb. Update PublishPage to correctly handle locale and slug parameters. Revise CreateOnboardingPage with a detailed step-by-step guide for showcase creation. Remove unused state management in NewCharacterPage and add functionality to clear persona state in CommandDialogMenu. Improve accessibility by updating alt attributes in SortableStep component. * chore: tests passing * chore: clean * Adding an secret variable for auth_token and keycloak * fix: use min step order 0 * chore: temp OidcSessionService * chore: OidcSessionService fixes * feat: add Tenant component and related hooks for tenant management - Introduced TenantController in the API server for handling tenant-related operations. - Added Tenant component in the showcase creator for displaying and managing tenants. - Implemented useTenants and useCreateTenant hooks for fetching and creating tenants. - Updated ShowcaseController to handle larger showcase requests. - Set default tenantId in PublishEdit component for testing purposes. - Refactored onboarding adapter to include tenantId in showcase data. * chore: Removed keycloak-connect * chore: update environment configuration and authentication settings - Removed .env.example file. - Updated .env.sample with new authentication secrets and added AUTH_TRUST_HOST variable. - Modified auth.ts to include session strategy and trustHost settings. - Enhanced env.ts to support AUTH_TRUST_HOST in the environment schema. - Updated values.yaml to include AUTH_TRUST_HOST for the showcase creator. * feat: enhance tenant management and update environment configuration - Updated .env.sample to remove sensitive authentication secrets. - Modified env.ts to change AUTH_TRUST_HOST type from boolean to string. - Integrated useHelpersStore in Tenant and PublishEdit components to manage tenantId. - Refactored tenantId handling in onboarding adapter and related hooks for improved showcase data management. * feat: add redirect proxy URL to authentication configuration - Updated auth.ts to include a redirectProxyUrl for the Keycloak authentication process, enhancing the application's authentication flow. * feat: add AUTH_REDIRECT_PROXY_URL to environment configuration - Updated .env.sample and env.ts to include AUTH_REDIRECT_PROXY_URL for the Keycloak authentication process. - Modified values.yaml to reflect the new redirect proxy URL for the showcase creator. * fix: update redirect logic in authentication flow - Enhanced the redirect logic in auth.ts to clean the base URL and append the AUTH_REDIRECT_PROXY_URL, improving the handling of authentication redirects. * fix: update AUTH_REDIRECT_PROXY_URL for local development - Changed AUTH_REDIRECT_PROXY_URL in .env.sample and values.yaml to point to the local development URL. - Updated auth.ts to utilize the environment variable for redirect proxy URL, ensuring consistent configuration across environments. * refactor: clean up authentication and middleware logic - Removed the redirectProxyUrl from auth.ts as it is no longer needed. - Simplified the redirect logic in middleware.ts by logging the valid locale and removing unnecessary callback URL handling. * feat: add AUTH_URL to environment configuration - Introduced AUTH_URL in .env.sample and env.ts for the Keycloak authentication process. - Updated values.yaml to include AUTH_URL for the showcase creator, ensuring consistent configuration across environments. * Fixed issues on Delete modal not closing after deletion and default image not rendering * chore: fine-tuned approval logic & skip tests when TRACTION_AVAILABLE is not set truthy * chore: LINT & PRETTIER * chore: AMQ_TRANSPORT support tls/ssl * chore: ref to bc-wallet-adapter-client-api * chore: copy all packages to be able to resolve them as workspace.* * chore: set ENCRYPTION_KEY in test * chore: copy all packages * chore: copy all packages * feat: add ShowcaseDev component and enhance asset handling in PublishEdit - Introduced ShowcaseDev component to display showcase details and reset functionality. - Updated PublishEdit to integrate asset creation on file upload, improving image handling. - Added optional bannerImage field in ShowcaseCreate and adjusted related logic for showcase management. - Cleaned up unused imports and improved code readability across components. * fix: update banner image handling in showcase components - Modified the logic for displaying banner images in LandingPage and ShowcaseList to use the asset ID instead of content. - Enhanced the PublishEdit component to properly handle banner image uploads and previews, improving user experience. - Cleaned up the BannerImageUpload component for better readability and functionality. * fix: update TypeScript error handling in ShowcaseCreate component - Changed the comment directive from `@ts-expect-error` to `@ts-ignore` to suppress TypeScript errors related to tenantId in the showcase creation logic. - Ensured successful showcase creation feedback is provided to the user via toast notification. * fix: ensure scenarios are correctly appended in setScenarioIds function * chore: Refactored * refactor: streamline showcase creation logic and clean up imports - Updated the tenantId assignment in ShowcaseCreate component to use a variable instead of a hardcoded string. - Cleaned up imports in BasicStepEdit component, removing unused variables and improving readability. - Enhanced the useCreatePresentation hook to ensure proper typing for the mutation function, improving TypeScript support. * fix: improve TypeScript typing and error handling in BasicStepAdd component - Updated scenarioIds initialization to ensure proper typing as string array. - Enhanced error handling when creating scenarios to check for valid presentationScenario ID before pushing to scenarioIds. - Cleaned up imports by removing unused PresentationScenarioResponseType import. * refactor: clean up unused imports and streamline type definitions in showcase components - Removed unused type definitions and imports from openapi-types.ts, BasicStepAdd, and BasicStepEdit components. - Deleted obsolete ScenarioScreen and index.tsx files to improve project structure and maintainability. * chore: updated tsconfig * chore: improve if else * chore: Dockerfile tryout * chore: Dockerfile tryout * chore: Dockerfile tryout * refactor: consolidate onboarding and presentation hooks for improved clarity and functionality - Replaced the useCreateStep hook with useCreateScenario to streamline scenario creation logic. - Updated useCreateScenarioForm to enhance type handling and reset logic. - Removed unused form handling code from useCreatePresentationForm to simplify the presentation hooks. - Improved TypeScript typings for various hooks, ensuring better type safety and clarity in function signatures. * chore: remove unused character showcase components and tests - Deleted CharacterPageMain component and its associated MyShowcaseMain component to streamline the showcase structure. - Removed related test files for useCredentials, useIssueStep, useScenarios, and useShowcaseStore to clean up the codebase and eliminate redundancy. * chore: Added authorization header check * chore: PR feedback * chore: PR feedback * chore: Added error handling to fetch call and jwt check * chore: Removed auth data from .env.example * chore: Added UnauthorizedError to error handler * refactor: enhance sidebar and navigation components for improved structure and usability - Updated AppSidebar to utilize SidebarMenu for better organization of menu items. - Refactored NavProjects to include SidebarGroupContent for improved layout. - Enhanced NavUser with a dropdown menu for user actions, improving accessibility and user experience. - Added localization for the "General" tab label in both English and French. - Cleaned up imports and streamlined component structure across the affected files. * chore: use correct mapper * chore: "bc-wallet-openapi" to devDeps * chore: lockfile * chore: save work * refactor: comment out authorization checks in controllers and main server file - Commented out the @Authorized() decorators in multiple controllers to disable authorization checks temporarily. - Removed the authorizationChecker function from the main server file, also commenting it out for future reference. - This change is intended for testing purposes and may be revisited for re-enabling authorization in the future. * refactor: comment out authorization decorators in multiple controllers - Removed the @Authorized() decorators from various controllers to disable authorization checks temporarily. - This change is part of ongoing testing efforts and may be revisited for re-enabling authorization in the future. * refactor: comment out unused imports in main server file - Commented out unused imports related to authorization in the main server file to streamline the code. - This change is part of ongoing refactoring efforts and may be revisited in the future. * chore: save work * refactor: update step state handling and credential management across onboarding components * chore: traction sync working * chore: fixes * Updates on credential library * refactor: enhance credential handling and update schema management in onboarding components * chore: build fixes * chore: pre-build due to turbo issues in docker compose build * refactor: enhance credential attributes display and validation - Added types from bc-wallet-openapi * refactor: update step state handling and credential management across onboarding components * refactor: enhance credential handling and update schema management in onboarding components * chore: cleanup CI file * chore: log publish-issuer-assets errors as warn for now * fix: correct tenant spelling and update default values in credential form; enhance import statements in publish edit component * chore: env fixes for Traction adapter * chore: env fixes for Traction adapter * chore: env fixes for Traction adapter * chore: hardcode 'bc-wallet-rabbitmq.default.svc.cluster.local' * chore: hostname -> host * chore: revert hardcoded hostname * adding rabbitmq amqp 1.0 plugin * chore: durable to 1 * chore: removed durable * chore: renabled durable * chore: RabbitMQ up * feat: add credential approval functionality and enhance image handling in onboarding components * updated the values to support the rabbitmq chart * chore: env fixes for Traction adapter * chore: env fixes for Traction adapter * chore: hardcode 'bc-wallet-rabbitmq.default.svc.cluster.local' * chore: hostname -> host * chore: revert hardcoded hostname * adding rabbitmq amqp 1.0 plugin * chore: durable to 1 * chore: removed durable * chore: renabled durable * chore: RabbitMQ up * updated the values to support the rabbitmq chart * chore: AMQ_ settings * chore: docker compose working including demo & showcase builder * chore: mapping for TRACTION_URL * chore: AMQ mappings update * chore: AMQ mappings update * chore: NEXT_PUBLIC_WALLET_URL update * chore: typo * chore: added MESSAGE_PROCESSOR_TOPIC mapping * chore: CI context fixes * update the postgresql and rabbitmq charts and secrets values * refactor: enhance environment variable handling for traction adapter deployment * adding test functionality when a pr is created * changing the rabbitmq config to support user creation * removed comments * refactor: remove turbo command input and simplify test execution with pnpm * chore: User fixes * chore: User fixes * chore: general test fixes related to users * chore: build models before testing * chore: build models before testing * chore: updates * chore: more tests passing * chore: cleanup * chore: imports cleanup * chore: more fixes * chore: react-jsx * chore: added --forceExit to jest * chore: update TypeScript to 5.8.3 and add bc-wallet-showcase-creator to ESLint ignore * chore: example update * updating the rabbitmq user values with associated env values for api & traction * fix: adding demo web and demo server env variables * chore: increase timeout for test job from 10 to 15 minutes * Added BC Wallet Showcase developer documentation, including setup instructions, project structure, and deployment guidelines. Also included several images for visual reference. --------- Co-authored-by: Zoe Maas <zmaas@4sure.tech> Co-authored-by: Ariane Bordeleau <bordeleauariane8@gmail.com> Co-authored-by: sanderPostma <spostma@sphereon.com> Co-authored-by: A.G.J. Cate <brummos@gmail.com> Co-authored-by: NimeshNB <127752510+NimeshNB@users.noreply.github.com> Co-authored-by: Nimesh <nimesh@northernblock.io> Co-authored-by: arbordeleau <90461953+arbordeleau@users.noreply.github.com> Co-authored-by: getmoin <heymoinn@gmail.com> Co-authored-by: Moin Mohd <107438152+getmoin@users.noreply.github.com> Co-authored-by: Bram ten Cate <30893001+Brummos@users.noreply.github.com> Co-authored-by: zoemaas <86769796+zoemaas@users.noreply.github.com>
* fix: correct tenant spelling and update default values in credential form; enhance import statements in publish edit component * chore: env fixes for Traction adapter * chore: env fixes for Traction adapter * chore: env fixes for Traction adapter * chore: hardcode 'bc-wallet-rabbitmq.default.svc.cluster.local' * chore: hostname -> host * chore: revert hardcoded hostname * adding rabbitmq amqp 1.0 plugin * chore: durable to 1 * chore: removed durable * chore: renabled durable * chore: RabbitMQ up * feat: add credential approval functionality and enhance image handling in onboarding components * updated the values to support the rabbitmq chart * chore: env fixes for Traction adapter * chore: env fixes for Traction adapter * chore: hardcode 'bc-wallet-rabbitmq.default.svc.cluster.local' * chore: hostname -> host * chore: revert hardcoded hostname * adding rabbitmq amqp 1.0 plugin * chore: durable to 1 * chore: removed durable * chore: renabled durable * chore: RabbitMQ up * updated the values to support the rabbitmq chart * chore: AMQ_ settings * chore: Added the relation tenant x user to the tenant repository * chore: Added users to the tenant in the diagram, Open API and fixed findById issue * chore: docker compose working including demo & showcase builder * chore: mapping for TRACTION_URL * chore: AMQ mappings update * chore: AMQ mappings update * chore: NEXT_PUBLIC_WALLET_URL update * chore: typo * chore: added MESSAGE_PROCESSOR_TOPIC mapping * chore: Fixed schema and not null issues * chore: CI context fixes * chore: AUTH_URL fix * chore: Fixed schema and not null issues * update the postgresql and rabbitmq charts and secrets values * refactor: enhance environment variable handling for traction adapter deployment * adding test functionality when a pr is created * changing the rabbitmq config to support user creation * removed comments * refactor: remove turbo command input and simplify test execution with pnpm * chore: User fixes * chore: User fixes * feat: presentation flow added * chore: general test fixes related to users * chore: build models before testing * chore: new migration added * chore: build models before testing * chore: updates * chore: more tests passing * chore: cleanup * chore: imports cleanup * chore: reintroduced the default random id value * chore: more fixes * chore: react-jsx * chore: added --forceExit to jest * chore: update TypeScript to 5.8.3 and add bc-wallet-showcase-creator to ESLint ignore * chore: example update * updating the rabbitmq user values with associated env values for api & traction * fix: adding demo web and demo server env variables * chore: working on identifier update * chore: increase timeout for test job from 10 to 15 minutes * Added BC Wallet Showcase developer documentation, including setup instructions, project structure, and deployment guidelines. Also included several images for visual reference. * Updated character issues and handleProceed with a waiting state so that the ID is ready * refactor: streamline RabbitMQ configuration in deployment and workflow files * fix: update next.config.ts to include localhost configuration with HTTP protocol and port 3001 * refactor: enhance className handling in character selection for improved styling * chore: code cleanup * chore: added migration * feat: add accessToken to session in NextAuth and improve API service error handling * chore: fix test * feat: enhance NextAuth session to include accessToken and update API service to utilize typed accessToken * chore: enable proof card in side view * chore: code cleanup * chore: predicate value should be a number * chore: adjust predicate tests * feat: implement credential management and search functionality in BasicStepEdit component - merged basic step and proof step edit into one - Updated proof request handling * chore: update diagram * chore: identifier update working * chore: prettier * chore: comment in .env * chore: Fixed issues with foreign key (tenant vs user) * chore: Fixed naming * Fix for duplication while click on next without clicking on save * chore: disabled first presentation scenario step screen * chore: remove console.log * reloading form after creating a character. * fix: Fixed bug in the update tenants method * chore: PR feedback fixes * chore: update environment variables in workflow and values files for demo server and traction adapter * refactor: streamline layout and enhance image handling across components - Updated HomePage layout for improved structure and responsiveness. - Removed unnecessary Sign Out button from Tenant component. - Added object-cover class to images in CharacterInfo, DisplayAddedCredentials, and other components for better image presentation. - Adjusted versioning in CredentialsForm for consistency. - Enhanced ShowcaseList layout and functionality, ensuring better user experience with dynamic content display. * Updated with check on selectedPersonas * updates on persona * Updates on showcase status and credential default bug reverted * update with e prevent default * image bug fixed * refactor: update ScenarioRepository and related components to improve type handling and remove unused code - Made methods in ScenarioRepository public for better accessibility. - Removed credential definition identifiers from various test cases and schema definitions. - Updated type imports to use the new structure from 'bc-wallet-openapi'. - Deleted unused components and styles related to JSON upload and navbar. - Refactored onboarding and showcase creation components to align with updated types and improve overall code clarity. * refactor: update credential handling in issuance step and remove unused proof step component - Changed the addCredential and removeCredential functions to accept CredentialDefinition objects instead of string IDs for better type safety. - Removed the unused ProofStepEdit component to streamline the codebase. - Enhanced the CreateScenariosStepsScreen to include action definitions for student card acceptance. * refactor: streamline credential types and remove unused schemas - Removed unused enum types and schemas from openapi-types.ts to simplify the codebase. - Updated imports in components to utilize the new structure from 'bc-wallet-openapi'. - Enhanced type handling in credentials-display and credential-attribute components for better clarity and consistency. * refactor: enhance credential handling and type safety across onboarding and scenario components - Updated addCredential and removeCredential functions to accept CredentialDefinition objects for improved type safety. - Adjusted type handling in BasicStepAdd, IssuanceStepAdd, and BasicStepEdit components to align with new StepRequestUIActionTypes. - Refactored DisplayAddedCredentials and DisplayStepCredentials components to ensure consistent credential type usage. - Improved local file upload component by reorganizing imports and enhancing asset handling logic. * refactor: enhance step action handling in BasicStepEdit component - Updated action handling for service steps to include detailed action definitions with attributes and predicates. - Improved type imports by adding StepActionType for better clarity and type safety. - Cleaned up console logs for better debugging and code readability. * chore: moved SendOptions * Update apps/bc-wallet-showcase-creator/components/scenario-screen/local-file-upload.tsx Co-authored-by: Ronaldo Lima <ronal2do@gmail.com> * Update apps/bc-wallet-showcase-creator/components/scenario-screen/local-file-upload.tsx Co-authored-by: Ronaldo Lima <ronal2do@gmail.com> * refactor: improve type safety and streamline credential handling across components * refactor: improve step handling and type safety in onboarding components - Removed error display for asset in BasicStepEdit and BasicStepAdd components for cleaner UI. - Updated CreateNewStep to include an empty actions array for service steps. - Enhanced type safety by explicitly casting updated steps to StepRequest in BasicStepAdd. - Refactored createServiceStep to ensure actions are spread correctly in the returned StepRequest. * fix: Fixed circular dependencies and database lock issues and added new tests for the user and tenant repositories * fix: Fixed merging issues * chore: dummy commit * chore: issuer not required for ScenarioRequest * chore: issuer not required for ScenarioRequest * fix: remove duplicate import of AssetResponse in local-file-upload component * fix: remove TypeScript error suppression and improve credential filtering logic * chore: tsconfig references * refactor: remove unused BasicStepEdit component and associated logic * refactor: clean up onboarding components and improve type safety - Removed unused state variables and commented-out code in ConnectStepEdit and WalletStepEdit for better readability. - Enhanced credential handling in DisplayAddedCredentials to ensure safe access to credentials. - Streamlined layout in BasicStepEdit by removing unnecessary height constraints. - Updated actions in useShowcaseCreation to include a structured example for better clarity. * chore: extra pnpm install after generate models * chore: revert * Fix type casting for asset response in local file upload component * chore: ts fix * chore: Missing fields in MockSessionService * chore: disable build-libs in CI * chore: renable build-libs, but exclude demo-web * fix: Added index on user * fix: Using reduce in TenantRepository.ts * fix: Using reduce in UserRepository.ts * refactor: enhance type safety and streamline imports across components - Consolidated type imports from 'bc-wallet-openapi' for better consistency. - Updated various components to utilize the new type definitions, improving type safety. - Removed unused code and imports to clean up the codebase. - Refactored step handling in onboarding components to ensure proper type usage. * fix: update example value to a number for type consistency in predicate fix: add credentialDefinitionId to sampleAction for completeness * refactor: remove unused onboarding components and streamline onboarding logic - Deleted obsolete components including ConnectStepAdd, WalletStepAdd, and OnboardingScreen to reduce clutter. - Updated ConnectStepEdit and CreateNewStep to reflect changes in step state management. - Enhanced the onboarding flow by refining step handling and ensuring proper state transitions. * refactor: remove unused files and streamline component logic - Deleted openapi-types.ts and scenario-character-edit.tsx as they were no longer needed. - Updated various components to improve type safety and streamline imports from 'bc-wallet-openapi'. - Refined step handling and state management in onboarding components for better consistency. * Fix type casting for asset response in local file upload component * refactor: remove unused onboarding components and streamline onboarding logic - Deleted obsolete components including ConnectStepAdd, WalletStepAdd, and OnboardingScreen to reduce clutter. - Updated ConnectStepEdit and CreateNewStep to reflect changes in step state management. - Enhanced the onboarding flow by refining step handling and ensuring proper state transitions. * refactor: enhance type definitions and streamline component logic - Added new Screen interface to improve type safety in onboarding and scenario components. - Updated various components to utilize the new Screen type, ensuring consistent type usage. - Removed unused imports and streamlined logic in presentation and onboarding adapters for better clarity. - Refined step handling and state management across components to enhance overall functionality. * fix: creating a caddy config and passing the runtime arguments * refactor: improve onboarding logic and type handling - Removed unused import from onboarding-creation component for cleaner code. - Enhanced useOnboardingAdapter hook by adding caching for steps and refining step management functions. - Updated type definitions for better clarity and consistency across onboarding components. - Introduced handleSelectStep function to streamline step selection and state management. * refactor: update onboarding step state management - Added 'use client' directive to the SortableStep component for improved client-side rendering. - Refined state management logic by ensuring consistent step state transitions, particularly for the 'HUMAN_TASK' case. - Cleaned up code by adding whitespace for better readability. * refactor: consolidate onboarding components and enhance step management - Deleted obsolete components including BasicStepAdd, ConnectStepEdit, IssuanceStepAdd, WalletStepEdit, and their associated files to streamline the onboarding process. - Introduced a new StepEditor component to centralize step editing functionality and improve code organization. - Updated onboarding logic to utilize the new StepEditor, enhancing state management and user experience. - Refined type definitions and imports for better clarity and consistency across the onboarding module. * fix: update credential import UI and adjust labels for consistency * refactor: enhance step editor functionality and improve credential handling - Removed unused action requests from the StepEditor component to streamline the code. - Updated the form submission logic to ensure credential IDs are properly managed and validated. - Changed the form mode to 'onChange' for improved user experience during input. - Refined the scenario creation process by ensuring that actions are correctly populated with credential definitions. - Simplified the error handling for missing credentials during scenario creation. * fix: Implement environment variable configuration for demo web application * chore: remove console log statements for environment variables in BaseUrl.ts * chore: apply corsOptions to WS server * refactor: enhance onboarding step creation and management - Replaced createServiceStep with createAdvancedStep to support new action types in onboarding steps. - Updated CreateNewStep component to utilize advanced step creation, improving the onboarding flow. - Refined step handling logic in CreateOnboardingScreen and SortableStep components for better state management. - Enhanced the useOnboardingAdapter hook to streamline step selection and state transitions. - Improved type handling and consistency across onboarding components, ensuring better integration with the new step types. * refactor: integrate showcase adapter and update onboarding logic - Introduced useShowcaseAdapter hook to manage showcase-related operations, including saving showcases and handling scenario IDs. - Updated PublishEdit component to utilize the new useShowcaseAdapter for saving showcases. - Refined useOnboardingAdapter by removing unused comments and ensuring clarity in step management functions. * fix: update server port configuration from 5000 to 3000 in Dockerfile and index.ts * chore: Uncommented auth related code * refactor: enhance onboarding step types and update step editor logic - Expanded action request types in types.ts to include new onboarding actions. - Updated StepEditor component to utilize the new StepActionRequestUnion for better type handling. - Refined form schema in onboarding.ts to align with new action properties. - Improved auto-save functionality and ensured proper handling of action-specific data during updates. * fix: update asset URL handling in StepEditor component - Modified the asset source URL in the StepEditor to dynamically include the base URL, ensuring correct asset loading. - Added a fallback image for cases where the asset is not available, improving user experience. * refactor: update step creation logic and enhance credential schema validation * chore: Refactored * chore: Fixed eslint errors * chore: Added missing Authenticated decorator and fixed the test * chore: Added missing mocked authorization check it tests * chore: Added missing database migration * chore: Updated the environment variables * remove sensitive information from the values * updated secrets to fetch from github repo secrets * chore: add API_KEY to .env.example and update demo web service port to 3000 in docker-compose.yml * fix: correct attribute reference in handleConditionTypeChange and update predicates handling * chore: Updated the environment variables in docker-compose.yml * chore: auth fixes * chore: Added missing environment variable * Remove GitHub Actions for testing and deployment workflows, including the test action configuration and the main workflow for building, pushing, and deploying applications. --------- Co-authored-by: Sander Postma <spostma@sphereon.com> Co-authored-by: Nimesh <nimesh@northernblock.io> Co-authored-by: getmoin <heymoinn@gmail.com> Co-authored-by: Moin Mohd <107438152+getmoin@users.noreply.github.com> Co-authored-by: Zoe Maas <zmaas@4sure.tech> Co-authored-by: arbordeleau <90461953+arbordeleau@users.noreply.github.com> Co-authored-by: A.G.J. Cate <brummos@gmail.com> Co-authored-by: Ariane Bordeleau <bordeleauariane8@gmail.com> Co-authored-by: Bram ten Cate <30893001+Brummos@users.noreply.github.com> Co-authored-by: NimeshNB <127752510+NimeshNB@users.noreply.github.com> Co-authored-by: zoemaas <86769796+zoemaas@users.noreply.github.com>
* fix: correct tenant spelling and update default values in credential form; enhance import statements in publish edit component * chore: env fixes for Traction adapter * chore: env fixes for Traction adapter * chore: env fixes for Traction adapter * chore: hardcode 'bc-wallet-rabbitmq.default.svc.cluster.local' * chore: hostname -> host * chore: revert hardcoded hostname * adding rabbitmq amqp 1.0 plugin * chore: durable to 1 * chore: removed durable * chore: renabled durable * chore: RabbitMQ up * feat: add credential approval functionality and enhance image handling in onboarding components * updated the values to support the rabbitmq chart * chore: env fixes for Traction adapter * chore: env fixes for Traction adapter * chore: hardcode 'bc-wallet-rabbitmq.default.svc.cluster.local' * chore: hostname -> host * chore: revert hardcoded hostname * adding rabbitmq amqp 1.0 plugin * chore: durable to 1 * chore: removed durable * chore: renabled durable * chore: RabbitMQ up * updated the values to support the rabbitmq chart * chore: AMQ_ settings * chore: Added the relation tenant x user to the tenant repository * chore: Added users to the tenant in the diagram, Open API and fixed findById issue * chore: docker compose working including demo & showcase builder * chore: mapping for TRACTION_URL * chore: AMQ mappings update * chore: AMQ mappings update * chore: NEXT_PUBLIC_WALLET_URL update * chore: typo * chore: added MESSAGE_PROCESSOR_TOPIC mapping * chore: Fixed schema and not null issues * chore: CI context fixes * chore: AUTH_URL fix * chore: Fixed schema and not null issues * update the postgresql and rabbitmq charts and secrets values * refactor: enhance environment variable handling for traction adapter deployment * adding test functionality when a pr is created * changing the rabbitmq config to support user creation * removed comments * refactor: remove turbo command input and simplify test execution with pnpm * chore: User fixes * chore: User fixes * feat: presentation flow added * chore: general test fixes related to users * chore: build models before testing * chore: new migration added * chore: build models before testing * chore: updates * chore: more tests passing * chore: cleanup * chore: imports cleanup * chore: reintroduced the default random id value * chore: more fixes * chore: react-jsx * chore: added --forceExit to jest * chore: update TypeScript to 5.8.3 and add bc-wallet-showcase-creator to ESLint ignore * chore: example update * updating the rabbitmq user values with associated env values for api & traction * fix: adding demo web and demo server env variables * chore: working on identifier update * chore: increase timeout for test job from 10 to 15 minutes * Added BC Wallet Showcase developer documentation, including setup instructions, project structure, and deployment guidelines. Also included several images for visual reference. * Updated character issues and handleProceed with a waiting state so that the ID is ready * refactor: streamline RabbitMQ configuration in deployment and workflow files * fix: update next.config.ts to include localhost configuration with HTTP protocol and port 3001 * refactor: enhance className handling in character selection for improved styling * chore: code cleanup * chore: added migration * feat: add accessToken to session in NextAuth and improve API service error handling * chore: fix test * feat: enhance NextAuth session to include accessToken and update API service to utilize typed accessToken * chore: enable proof card in side view * chore: code cleanup * chore: predicate value should be a number * chore: adjust predicate tests * feat: implement credential management and search functionality in BasicStepEdit component - merged basic step and proof step edit into one - Updated proof request handling * chore: update diagram * chore: identifier update working * chore: prettier * chore: comment in .env * chore: Fixed issues with foreign key (tenant vs user) * chore: Fixed naming * Fix for duplication while click on next without clicking on save * chore: disabled first presentation scenario step screen * chore: remove console.log * reloading form after creating a character. * fix: Fixed bug in the update tenants method * chore: PR feedback fixes * chore: update environment variables in workflow and values files for demo server and traction adapter * refactor: streamline layout and enhance image handling across components - Updated HomePage layout for improved structure and responsiveness. - Removed unnecessary Sign Out button from Tenant component. - Added object-cover class to images in CharacterInfo, DisplayAddedCredentials, and other components for better image presentation. - Adjusted versioning in CredentialsForm for consistency. - Enhanced ShowcaseList layout and functionality, ensuring better user experience with dynamic content display. * Updated with check on selectedPersonas * updates on persona * Updates on showcase status and credential default bug reverted * update with e prevent default * image bug fixed * refactor: update ScenarioRepository and related components to improve type handling and remove unused code - Made methods in ScenarioRepository public for better accessibility. - Removed credential definition identifiers from various test cases and schema definitions. - Updated type imports to use the new structure from 'bc-wallet-openapi'. - Deleted unused components and styles related to JSON upload and navbar. - Refactored onboarding and showcase creation components to align with updated types and improve overall code clarity. * refactor: update credential handling in issuance step and remove unused proof step component - Changed the addCredential and removeCredential functions to accept CredentialDefinition objects instead of string IDs for better type safety. - Removed the unused ProofStepEdit component to streamline the codebase. - Enhanced the CreateScenariosStepsScreen to include action definitions for student card acceptance. * refactor: streamline credential types and remove unused schemas - Removed unused enum types and schemas from openapi-types.ts to simplify the codebase. - Updated imports in components to utilize the new structure from 'bc-wallet-openapi'. - Enhanced type handling in credentials-display and credential-attribute components for better clarity and consistency. * refactor: enhance credential handling and type safety across onboarding and scenario components - Updated addCredential and removeCredential functions to accept CredentialDefinition objects for improved type safety. - Adjusted type handling in BasicStepAdd, IssuanceStepAdd, and BasicStepEdit components to align with new StepRequestUIActionTypes. - Refactored DisplayAddedCredentials and DisplayStepCredentials components to ensure consistent credential type usage. - Improved local file upload component by reorganizing imports and enhancing asset handling logic. * refactor: enhance step action handling in BasicStepEdit component - Updated action handling for service steps to include detailed action definitions with attributes and predicates. - Improved type imports by adding StepActionType for better clarity and type safety. - Cleaned up console logs for better debugging and code readability. * chore: moved SendOptions * Update apps/bc-wallet-showcase-creator/components/scenario-screen/local-file-upload.tsx Co-authored-by: Ronaldo Lima <ronal2do@gmail.com> * Update apps/bc-wallet-showcase-creator/components/scenario-screen/local-file-upload.tsx Co-authored-by: Ronaldo Lima <ronal2do@gmail.com> * refactor: improve type safety and streamline credential handling across components * refactor: improve step handling and type safety in onboarding components - Removed error display for asset in BasicStepEdit and BasicStepAdd components for cleaner UI. - Updated CreateNewStep to include an empty actions array for service steps. - Enhanced type safety by explicitly casting updated steps to StepRequest in BasicStepAdd. - Refactored createServiceStep to ensure actions are spread correctly in the returned StepRequest. * fix: Fixed circular dependencies and database lock issues and added new tests for the user and tenant repositories * fix: Fixed merging issues * chore: dummy commit * chore: issuer not required for ScenarioRequest * chore: issuer not required for ScenarioRequest * fix: remove duplicate import of AssetResponse in local-file-upload component * fix: remove TypeScript error suppression and improve credential filtering logic * chore: tsconfig references * refactor: remove unused BasicStepEdit component and associated logic * refactor: clean up onboarding components and improve type safety - Removed unused state variables and commented-out code in ConnectStepEdit and WalletStepEdit for better readability. - Enhanced credential handling in DisplayAddedCredentials to ensure safe access to credentials. - Streamlined layout in BasicStepEdit by removing unnecessary height constraints. - Updated actions in useShowcaseCreation to include a structured example for better clarity. * chore: extra pnpm install after generate models * chore: revert * Fix type casting for asset response in local file upload component * chore: ts fix * chore: Missing fields in MockSessionService * chore: disable build-libs in CI * chore: renable build-libs, but exclude demo-web * fix: Added index on user * fix: Using reduce in TenantRepository.ts * fix: Using reduce in UserRepository.ts * refactor: enhance type safety and streamline imports across components - Consolidated type imports from 'bc-wallet-openapi' for better consistency. - Updated various components to utilize the new type definitions, improving type safety. - Removed unused code and imports to clean up the codebase. - Refactored step handling in onboarding components to ensure proper type usage. * fix: update example value to a number for type consistency in predicate fix: add credentialDefinitionId to sampleAction for completeness * refactor: remove unused onboarding components and streamline onboarding logic - Deleted obsolete components including ConnectStepAdd, WalletStepAdd, and OnboardingScreen to reduce clutter. - Updated ConnectStepEdit and CreateNewStep to reflect changes in step state management. - Enhanced the onboarding flow by refining step handling and ensuring proper state transitions. * refactor: remove unused files and streamline component logic - Deleted openapi-types.ts and scenario-character-edit.tsx as they were no longer needed. - Updated various components to improve type safety and streamline imports from 'bc-wallet-openapi'. - Refined step handling and state management in onboarding components for better consistency. * Fix type casting for asset response in local file upload component * refactor: remove unused onboarding components and streamline onboarding logic - Deleted obsolete components including ConnectStepAdd, WalletStepAdd, and OnboardingScreen to reduce clutter. - Updated ConnectStepEdit and CreateNewStep to reflect changes in step state management. - Enhanced the onboarding flow by refining step handling and ensuring proper state transitions. * refactor: enhance type definitions and streamline component logic - Added new Screen interface to improve type safety in onboarding and scenario components. - Updated various components to utilize the new Screen type, ensuring consistent type usage. - Removed unused imports and streamlined logic in presentation and onboarding adapters for better clarity. - Refined step handling and state management across components to enhance overall functionality. * fix: creating a caddy config and passing the runtime arguments * refactor: improve onboarding logic and type handling - Removed unused import from onboarding-creation component for cleaner code. - Enhanced useOnboardingAdapter hook by adding caching for steps and refining step management functions. - Updated type definitions for better clarity and consistency across onboarding components. - Introduced handleSelectStep function to streamline step selection and state management. * refactor: update onboarding step state management - Added 'use client' directive to the SortableStep component for improved client-side rendering. - Refined state management logic by ensuring consistent step state transitions, particularly for the 'HUMAN_TASK' case. - Cleaned up code by adding whitespace for better readability. * refactor: consolidate onboarding components and enhance step management - Deleted obsolete components including BasicStepAdd, ConnectStepEdit, IssuanceStepAdd, WalletStepEdit, and their associated files to streamline the onboarding process. - Introduced a new StepEditor component to centralize step editing functionality and improve code organization. - Updated onboarding logic to utilize the new StepEditor, enhancing state management and user experience. - Refined type definitions and imports for better clarity and consistency across the onboarding module. * fix: update credential import UI and adjust labels for consistency * refactor: enhance step editor functionality and improve credential handling - Removed unused action requests from the StepEditor component to streamline the code. - Updated the form submission logic to ensure credential IDs are properly managed and validated. - Changed the form mode to 'onChange' for improved user experience during input. - Refined the scenario creation process by ensuring that actions are correctly populated with credential definitions. - Simplified the error handling for missing credentials during scenario creation. * fix: Implement environment variable configuration for demo web application * chore: remove console log statements for environment variables in BaseUrl.ts * chore: apply corsOptions to WS server * refactor: enhance onboarding step creation and management - Replaced createServiceStep with createAdvancedStep to support new action types in onboarding steps. - Updated CreateNewStep component to utilize advanced step creation, improving the onboarding flow. - Refined step handling logic in CreateOnboardingScreen and SortableStep components for better state management. - Enhanced the useOnboardingAdapter hook to streamline step selection and state transitions. - Improved type handling and consistency across onboarding components, ensuring better integration with the new step types. * refactor: integrate showcase adapter and update onboarding logic - Introduced useShowcaseAdapter hook to manage showcase-related operations, including saving showcases and handling scenario IDs. - Updated PublishEdit component to utilize the new useShowcaseAdapter for saving showcases. - Refined useOnboardingAdapter by removing unused comments and ensuring clarity in step management functions. * fix: update server port configuration from 5000 to 3000 in Dockerfile and index.ts * chore: Uncommented auth related code * refactor: enhance onboarding step types and update step editor logic - Expanded action request types in types.ts to include new onboarding actions. - Updated StepEditor component to utilize the new StepActionRequestUnion for better type handling. - Refined form schema in onboarding.ts to align with new action properties. - Improved auto-save functionality and ensured proper handling of action-specific data during updates. * fix: update asset URL handling in StepEditor component - Modified the asset source URL in the StepEditor to dynamically include the base URL, ensuring correct asset loading. - Added a fallback image for cases where the asset is not available, improving user experience. * refactor: update step creation logic and enhance credential schema validation * chore: Refactored * chore: Fixed eslint errors * chore: Added missing Authenticated decorator and fixed the test * chore: Added missing mocked authorization check it tests * chore: Added missing database migration * chore: Updated the environment variables * remove sensitive information from the values * updated secrets to fetch from github repo secrets * chore: add API_KEY to .env.example and update demo web service port to 3000 in docker-compose.yml * fix: correct attribute reference in handleConditionTypeChange and update predicates handling * chore: Updated the environment variables in docker-compose.yml * chore: auth fixes * chore: Added missing environment variable * Remove GitHub Actions for testing and deployment workflows, including the test action configuration and the main workflow for building, pushing, and deploying applications. * Update pnpm-lock.yaml with new dependencies and versions for various packages, including TypeScript, React, and testing libraries. This update ensures compatibility with the latest versions and improves overall project stability. --------- Co-authored-by: sanderPostma <spostma@sphereon.com> Co-authored-by: Nimesh <nimesh@northernblock.io> Co-authored-by: getmoin <heymoinn@gmail.com> Co-authored-by: Moin Mohd <107438152+getmoin@users.noreply.github.com> Co-authored-by: Zoe Maas <zmaas@4sure.tech> Co-authored-by: arbordeleau <90461953+arbordeleau@users.noreply.github.com> Co-authored-by: A.G.J. Cate <brummos@gmail.com> Co-authored-by: Ariane Bordeleau <bordeleauariane8@gmail.com> Co-authored-by: Bram ten Cate <30893001+Brummos@users.noreply.github.com> Co-authored-by: NimeshNB <127752510+NimeshNB@users.noreply.github.com> Co-authored-by: zoemaas <86769796+zoemaas@users.noreply.github.com>
* chore: general test fixes related to users * chore: build models before testing * chore: new migration added * chore: build models before testing * chore: updates * chore: more tests passing * chore: cleanup * chore: imports cleanup * chore: reintroduced the default random id value * chore: more fixes * chore: react-jsx * chore: added --forceExit to jest * chore: update TypeScript to 5.8.3 and add bc-wallet-showcase-creator to ESLint ignore * chore: example update * updating the rabbitmq user values with associated env values for api & traction * fix: adding demo web and demo server env variables * chore: working on identifier update * chore: increase timeout for test job from 10 to 15 minutes * Updated character issues and handleProceed with a waiting state so that the ID is ready * refactor: streamline RabbitMQ configuration in deployment and workflow files * fix: update next.config.ts to include localhost configuration with HTTP protocol and port 3001 * refactor: enhance className handling in character selection for improved styling * chore: code cleanup * chore: added migration * feat: add accessToken to session in NextAuth and improve API service error handling * chore: fix test * feat: enhance NextAuth session to include accessToken and update API service to utilize typed accessToken * chore: enable proof card in side view * chore: code cleanup * chore: predicate value should be a number * chore: adjust predicate tests * feat: implement credential management and search functionality in BasicStepEdit component - merged basic step and proof step edit into one - Updated proof request handling * chore: update diagram * chore: identifier update working * chore: prettier * chore: comment in .env * chore: Fixed issues with foreign key (tenant vs user) * chore: Fixed naming * Fix for duplication while click on next without clicking on save * chore: disabled first presentation scenario step screen * chore: remove console.log * reloading form after creating a character. * fix: Fixed bug in the update tenants method * chore: PR feedback fixes * chore: update environment variables in workflow and values files for demo server and traction adapter * refactor: streamline layout and enhance image handling across components - Updated HomePage layout for improved structure and responsiveness. - Removed unnecessary Sign Out button from Tenant component. - Added object-cover class to images in CharacterInfo, DisplayAddedCredentials, and other components for better image presentation. - Adjusted versioning in CredentialsForm for consistency. - Enhanced ShowcaseList layout and functionality, ensuring better user experience with dynamic content display. * Updated with check on selectedPersonas * updates on persona * Updates on showcase status and credential default bug reverted * update with e prevent default * image bug fixed * refactor: update ScenarioRepository and related components to improve type handling and remove unused code - Made methods in ScenarioRepository public for better accessibility. - Removed credential definition identifiers from various test cases and schema definitions. - Updated type imports to use the new structure from 'bc-wallet-openapi'. - Deleted unused components and styles related to JSON upload and navbar. - Refactored onboarding and showcase creation components to align with updated types and improve overall code clarity. * refactor: update credential handling in issuance step and remove unused proof step component - Changed the addCredential and removeCredential functions to accept CredentialDefinition objects instead of string IDs for better type safety. - Removed the unused ProofStepEdit component to streamline the codebase. - Enhanced the CreateScenariosStepsScreen to include action definitions for student card acceptance. * refactor: streamline credential types and remove unused schemas - Removed unused enum types and schemas from openapi-types.ts to simplify the codebase. - Updated imports in components to utilize the new structure from 'bc-wallet-openapi'. - Enhanced type handling in credentials-display and credential-attribute components for better clarity and consistency. * refactor: enhance credential handling and type safety across onboarding and scenario components - Updated addCredential and removeCredential functions to accept CredentialDefinition objects for improved type safety. - Adjusted type handling in BasicStepAdd, IssuanceStepAdd, and BasicStepEdit components to align with new StepRequestUIActionTypes. - Refactored DisplayAddedCredentials and DisplayStepCredentials components to ensure consistent credential type usage. - Improved local file upload component by reorganizing imports and enhancing asset handling logic. * refactor: enhance step action handling in BasicStepEdit component - Updated action handling for service steps to include detailed action definitions with attributes and predicates. - Improved type imports by adding StepActionType for better clarity and type safety. - Cleaned up console logs for better debugging and code readability. * chore: moved SendOptions * Update apps/bc-wallet-showcase-creator/components/scenario-screen/local-file-upload.tsx Co-authored-by: Ronaldo Lima <ronal2do@gmail.com> * Update apps/bc-wallet-showcase-creator/components/scenario-screen/local-file-upload.tsx Co-authored-by: Ronaldo Lima <ronal2do@gmail.com> * refactor: improve type safety and streamline credential handling across components * refactor: improve step handling and type safety in onboarding components - Removed error display for asset in BasicStepEdit and BasicStepAdd components for cleaner UI. - Updated CreateNewStep to include an empty actions array for service steps. - Enhanced type safety by explicitly casting updated steps to StepRequest in BasicStepAdd. - Refactored createServiceStep to ensure actions are spread correctly in the returned StepRequest. * fix: Fixed circular dependencies and database lock issues and added new tests for the user and tenant repositories * fix: Fixed merging issues * chore: dummy commit * chore: issuer not required for ScenarioRequest * chore: issuer not required for ScenarioRequest * fix: remove duplicate import of AssetResponse in local-file-upload component * fix: remove TypeScript error suppression and improve credential filtering logic * chore: tsconfig references * refactor: remove unused BasicStepEdit component and associated logic * refactor: clean up onboarding components and improve type safety - Removed unused state variables and commented-out code in ConnectStepEdit and WalletStepEdit for better readability. - Enhanced credential handling in DisplayAddedCredentials to ensure safe access to credentials. - Streamlined layout in BasicStepEdit by removing unnecessary height constraints. - Updated actions in useShowcaseCreation to include a structured example for better clarity. * chore: extra pnpm install after generate models * chore: revert * Fix type casting for asset response in local file upload component * chore: ts fix * chore: Missing fields in MockSessionService * chore: disable build-libs in CI * chore: renable build-libs, but exclude demo-web * fix: Added index on user * Move bc-wallet-traction-adapter to apps directory * fix: Using reduce in TenantRepository.ts * fix: Using reduce in UserRepository.ts * refactor: enhance type safety and streamline imports across components - Consolidated type imports from 'bc-wallet-openapi' for better consistency. - Updated various components to utilize the new type definitions, improving type safety. - Removed unused code and imports to clean up the codebase. - Refactored step handling in onboarding components to ensure proper type usage. * fix: update example value to a number for type consistency in predicate fix: add credentialDefinitionId to sampleAction for completeness * chore: import credentials endpoint & Traction adapter updates * Move bc-wallet-traction-adapter to apps directory * chore: moved traction-adapter to ./apps * chore: lockfile * chore: added importCredentialDefinition back in * chore: lockfile * chore: fixed test * chore: fixed test * chore: fixed tests * chore: fixed tests * chore: fixed tests * chore: Dockerfile fix * chore: tsconfig fix * chore: tsconfig fix * chore: tsconfig fix * refactor: remove unused onboarding components and streamline onboarding logic - Deleted obsolete components including ConnectStepAdd, WalletStepAdd, and OnboardingScreen to reduce clutter. - Updated ConnectStepEdit and CreateNewStep to reflect changes in step state management. - Enhanced the onboarding flow by refining step handling and ensuring proper state transitions. * refactor: remove unused files and streamline component logic - Deleted openapi-types.ts and scenario-character-edit.tsx as they were no longer needed. - Updated various components to improve type safety and streamline imports from 'bc-wallet-openapi'. - Refined step handling and state management in onboarding components for better consistency. * Fix type casting for asset response in local file upload component * refactor: remove unused onboarding components and streamline onboarding logic - Deleted obsolete components including ConnectStepAdd, WalletStepAdd, and OnboardingScreen to reduce clutter. - Updated ConnectStepEdit and CreateNewStep to reflect changes in step state management. - Enhanced the onboarding flow by refining step handling and ensuring proper state transitions. * refactor: enhance type definitions and streamline component logic - Added new Screen interface to improve type safety in onboarding and scenario components. - Updated various components to utilize the new Screen type, ensuring consistent type usage. - Removed unused imports and streamlined logic in presentation and onboarding adapters for better clarity. - Refined step handling and state management across components to enhance overall functionality. * fix: creating a caddy config and passing the runtime arguments * refactor: improve onboarding logic and type handling - Removed unused import from onboarding-creation component for cleaner code. - Enhanced useOnboardingAdapter hook by adding caching for steps and refining step management functions. - Updated type definitions for better clarity and consistency across onboarding components. - Introduced handleSelectStep function to streamline step selection and state management. * refactor: update onboarding step state management - Added 'use client' directive to the SortableStep component for improved client-side rendering. - Refined state management logic by ensuring consistent step state transitions, particularly for the 'HUMAN_TASK' case. - Cleaned up code by adding whitespace for better readability. * refactor: consolidate onboarding components and enhance step management - Deleted obsolete components including BasicStepAdd, ConnectStepEdit, IssuanceStepAdd, WalletStepEdit, and their associated files to streamline the onboarding process. - Introduced a new StepEditor component to centralize step editing functionality and improve code organization. - Updated onboarding logic to utilize the new StepEditor, enhancing state management and user experience. - Refined type definitions and imports for better clarity and consistency across the onboarding module. * fix: update credential import UI and adjust labels for consistency * refactor: enhance step editor functionality and improve credential handling - Removed unused action requests from the StepEditor component to streamline the code. - Updated the form submission logic to ensure credential IDs are properly managed and validated. - Changed the form mode to 'onChange' for improved user experience during input. - Refined the scenario creation process by ensuring that actions are correctly populated with credential definitions. - Simplified the error handling for missing credentials during scenario creation. * fix: Implement environment variable configuration for demo web application * chore: remove console log statements for environment variables in BaseUrl.ts * chore: save work * chore: apply corsOptions to WS server * refactor: enhance onboarding step creation and management - Replaced createServiceStep with createAdvancedStep to support new action types in onboarding steps. - Updated CreateNewStep component to utilize advanced step creation, improving the onboarding flow. - Refined step handling logic in CreateOnboardingScreen and SortableStep components for better state management. - Enhanced the useOnboardingAdapter hook to streamline step selection and state transitions. - Improved type handling and consistency across onboarding components, ensuring better integration with the new step types. * refactor: integrate showcase adapter and update onboarding logic - Introduced useShowcaseAdapter hook to manage showcase-related operations, including saving showcases and handling scenario IDs. - Updated PublishEdit component to utilize the new useShowcaseAdapter for saving showcases. - Refined useOnboardingAdapter by removing unused comments and ensuring clarity in step management functions. * fix: update server port configuration from 5000 to 3000 in Dockerfile and index.ts * chore: Uncommented auth related code * chore: import cred-def working * chore: optimize imports * chore: update publish-issuer-assets to publish.issuer-assets * refactor: enhance onboarding step types and update step editor logic - Expanded action request types in types.ts to include new onboarding actions. - Updated StepEditor component to utilize the new StepActionRequestUnion for better type handling. - Refined form schema in onboarding.ts to align with new action properties. - Improved auto-save functionality and ensured proper handling of action-specific data during updates. * fix: update asset URL handling in StepEditor component - Modified the asset source URL in the StepEditor to dynamically include the base URL, ensuring correct asset loading. - Added a fallback image for cases where the asset is not available, improving user experience. * chore: import opts * refactor: update step creation logic and enhance credential schema validation * chore: Refactored * chore: Fixed eslint errors * chore: Added missing Authenticated decorator and fixed the test * chore: Added missing mocked authorization check it tests * chore: Added missing database migration * chore: Updated the environment variables * remove sensitive information from the values * updated secrets to fetch from github repo secrets * chore: caddy updates * fix: correct attribute reference in handleConditionTypeChange and update predicates handling * chore: Updated the environment variables in docker-compose.yml * chore: auth fixes * chore: Added missing environment variable * chore: added ENCRYPTION_KEY * chore: added ENCRYPTION_KEY * chore: fixed demo-server in docker * chore: ALLOW_HEADERS & logging * chore: revert commented out tests * chore: better error message * chore: mergeed in develop * chore: caddy back to 3000 * feat: add updateIssuer hook and integrate issuer update on credential approval * fix: update wallet URL and change demo web service ports to 3000 * feat: add environment variables for API server and tenant configuration in docker-compose * fix: correctly assign user to session in NextAuth token handling * fix: remove hardcoded identifier from credential schema in DisplayAddedCredentials component * fix: update error handling to check for identifier in credential schema instead of credential definition * refactor: clean up code by removing commented error handling and improving readability in Section and StepInformation components * chore: PR feedback * chore: openapi fix * chore: import optim * chore: fixed error 500 on import, traction logging, traction token rotation, import schema version * chore: filtered env logging * chore: filtered env logging * chore: verions not mandatory * chore: mapped * chore: command_timeout: "15m" * chore: added debug logging Traction adapter * chore: reverted some stuff * chore: update ALLOW_ORIGINS to include new demo web URL * chore: removed excessive logging, DEBUG_ENABLED const, NODE_PORT > PORT, support for FIXED_SHOWCASE_API_BASE_PATH for docker envs * chore: resync with BC CI / helm * chore: trivyscan * chore: sync-up develop-4sure * chore: remove clean-ghcr & lf * chore: tweaked CI flows * chore: tweaked CI flows * chore: Added "react-scripts" * chore: removed "react-scripts" --------- Co-authored-by: Zoe Maas <zmaas@4sure.tech> Co-authored-by: A.G.J. Cate <brummos@gmail.com> Co-authored-by: Ronaldo Lima <ronal2do@gmail.com> Co-authored-by: getmoin <heymoinn@gmail.com> Co-authored-by: Moin Mohd <107438152+getmoin@users.noreply.github.com> Co-authored-by: Ariane Bordeleau <bordeleauariane8@gmail.com> Co-authored-by: Nimesh <nimesh@northernblock.io> Co-authored-by: Bram ten Cate <30893001+Brummos@users.noreply.github.com> Co-authored-by: arbordeleau <90461953+arbordeleau@users.noreply.github.com> Co-authored-by: NimeshNB <127752510+NimeshNB@users.noreply.github.com> Co-authored-by: zoemaas <86769796+zoemaas@users.noreply.github.com>
* chore: added migration * feat: add accessToken to session in NextAuth and improve API service error handling * chore: fix test * feat: enhance NextAuth session to include accessToken and update API service to utilize typed accessToken * chore: enable proof card in side view * chore: code cleanup * chore: predicate value should be a number * chore: adjust predicate tests * feat: implement credential management and search functionality in BasicStepEdit component - merged basic step and proof step edit into one - Updated proof request handling * chore: update diagram * chore: identifier update working * chore: prettier * chore: comment in .env * chore: Fixed issues with foreign key (tenant vs user) * chore: Fixed naming * Fix for duplication while click on next without clicking on save * chore: disabled first presentation scenario step screen * chore: remove console.log * reloading form after creating a character. * fix: Fixed bug in the update tenants method * chore: PR feedback fixes * chore: update environment variables in workflow and values files for demo server and traction adapter * refactor: streamline layout and enhance image handling across components - Updated HomePage layout for improved structure and responsiveness. - Removed unnecessary Sign Out button from Tenant component. - Added object-cover class to images in CharacterInfo, DisplayAddedCredentials, and other components for better image presentation. - Adjusted versioning in CredentialsForm for consistency. - Enhanced ShowcaseList layout and functionality, ensuring better user experience with dynamic content display. * Updated with check on selectedPersonas * updates on persona * Updates on showcase status and credential default bug reverted * update with e prevent default * image bug fixed * refactor: update ScenarioRepository and related components to improve type handling and remove unused code - Made methods in ScenarioRepository public for better accessibility. - Removed credential definition identifiers from various test cases and schema definitions. - Updated type imports to use the new structure from 'bc-wallet-openapi'. - Deleted unused components and styles related to JSON upload and navbar. - Refactored onboarding and showcase creation components to align with updated types and improve overall code clarity. * refactor: update credential handling in issuance step and remove unused proof step component - Changed the addCredential and removeCredential functions to accept CredentialDefinition objects instead of string IDs for better type safety. - Removed the unused ProofStepEdit component to streamline the codebase. - Enhanced the CreateScenariosStepsScreen to include action definitions for student card acceptance. * refactor: streamline credential types and remove unused schemas - Removed unused enum types and schemas from openapi-types.ts to simplify the codebase. - Updated imports in components to utilize the new structure from 'bc-wallet-openapi'. - Enhanced type handling in credentials-display and credential-attribute components for better clarity and consistency. * refactor: enhance credential handling and type safety across onboarding and scenario components - Updated addCredential and removeCredential functions to accept CredentialDefinition objects for improved type safety. - Adjusted type handling in BasicStepAdd, IssuanceStepAdd, and BasicStepEdit components to align with new StepRequestUIActionTypes. - Refactored DisplayAddedCredentials and DisplayStepCredentials components to ensure consistent credential type usage. - Improved local file upload component by reorganizing imports and enhancing asset handling logic. * refactor: enhance step action handling in BasicStepEdit component - Updated action handling for service steps to include detailed action definitions with attributes and predicates. - Improved type imports by adding StepActionType for better clarity and type safety. - Cleaned up console logs for better debugging and code readability. * chore: moved SendOptions * Update apps/bc-wallet-showcase-creator/components/scenario-screen/local-file-upload.tsx Co-authored-by: Ronaldo Lima <ronal2do@gmail.com> * Update apps/bc-wallet-showcase-creator/components/scenario-screen/local-file-upload.tsx Co-authored-by: Ronaldo Lima <ronal2do@gmail.com> * refactor: improve type safety and streamline credential handling across components * refactor: improve step handling and type safety in onboarding components - Removed error display for asset in BasicStepEdit and BasicStepAdd components for cleaner UI. - Updated CreateNewStep to include an empty actions array for service steps. - Enhanced type safety by explicitly casting updated steps to StepRequest in BasicStepAdd. - Refactored createServiceStep to ensure actions are spread correctly in the returned StepRequest. * fix: Fixed circular dependencies and database lock issues and added new tests for the user and tenant repositories * fix: Fixed merging issues * chore: dummy commit * chore: issuer not required for ScenarioRequest * chore: issuer not required for ScenarioRequest * fix: remove duplicate import of AssetResponse in local-file-upload component * fix: remove TypeScript error suppression and improve credential filtering logic * chore: tsconfig references * refactor: remove unused BasicStepEdit component and associated logic * refactor: clean up onboarding components and improve type safety - Removed unused state variables and commented-out code in ConnectStepEdit and WalletStepEdit for better readability. - Enhanced credential handling in DisplayAddedCredentials to ensure safe access to credentials. - Streamlined layout in BasicStepEdit by removing unnecessary height constraints. - Updated actions in useShowcaseCreation to include a structured example for better clarity. * chore: extra pnpm install after generate models * chore: revert * Fix type casting for asset response in local file upload component * chore: ts fix * chore: Missing fields in MockSessionService * chore: disable build-libs in CI * chore: renable build-libs, but exclude demo-web * fix: Added index on user * Move bc-wallet-traction-adapter to apps directory * fix: Using reduce in TenantRepository.ts * fix: Using reduce in UserRepository.ts * refactor: enhance type safety and streamline imports across components - Consolidated type imports from 'bc-wallet-openapi' for better consistency. - Updated various components to utilize the new type definitions, improving type safety. - Removed unused code and imports to clean up the codebase. - Refactored step handling in onboarding components to ensure proper type usage. * fix: update example value to a number for type consistency in predicate fix: add credentialDefinitionId to sampleAction for completeness * chore: import credentials endpoint & Traction adapter updates * Move bc-wallet-traction-adapter to apps directory * chore: moved traction-adapter to ./apps * chore: lockfile * chore: added importCredentialDefinition back in * chore: lockfile * chore: fixed test * chore: fixed test * chore: fixed tests * chore: fixed tests * chore: fixed tests * chore: Dockerfile fix * chore: tsconfig fix * chore: tsconfig fix * chore: tsconfig fix * refactor: remove unused onboarding components and streamline onboarding logic - Deleted obsolete components including ConnectStepAdd, WalletStepAdd, and OnboardingScreen to reduce clutter. - Updated ConnectStepEdit and CreateNewStep to reflect changes in step state management. - Enhanced the onboarding flow by refining step handling and ensuring proper state transitions. * refactor: remove unused files and streamline component logic - Deleted openapi-types.ts and scenario-character-edit.tsx as they were no longer needed. - Updated various components to improve type safety and streamline imports from 'bc-wallet-openapi'. - Refined step handling and state management in onboarding components for better consistency. * Fix type casting for asset response in local file upload component * refactor: remove unused onboarding components and streamline onboarding logic - Deleted obsolete components including ConnectStepAdd, WalletStepAdd, and OnboardingScreen to reduce clutter. - Updated ConnectStepEdit and CreateNewStep to reflect changes in step state management. - Enhanced the onboarding flow by refining step handling and ensuring proper state transitions. * refactor: enhance type definitions and streamline component logic - Added new Screen interface to improve type safety in onboarding and scenario components. - Updated various components to utilize the new Screen type, ensuring consistent type usage. - Removed unused imports and streamlined logic in presentation and onboarding adapters for better clarity. - Refined step handling and state management across components to enhance overall functionality. * fix: creating a caddy config and passing the runtime arguments * refactor: improve onboarding logic and type handling - Removed unused import from onboarding-creation component for cleaner code. - Enhanced useOnboardingAdapter hook by adding caching for steps and refining step management functions. - Updated type definitions for better clarity and consistency across onboarding components. - Introduced handleSelectStep function to streamline step selection and state management. * refactor: update onboarding step state management - Added 'use client' directive to the SortableStep component for improved client-side rendering. - Refined state management logic by ensuring consistent step state transitions, particularly for the 'HUMAN_TASK' case. - Cleaned up code by adding whitespace for better readability. * refactor: consolidate onboarding components and enhance step management - Deleted obsolete components including BasicStepAdd, ConnectStepEdit, IssuanceStepAdd, WalletStepEdit, and their associated files to streamline the onboarding process. - Introduced a new StepEditor component to centralize step editing functionality and improve code organization. - Updated onboarding logic to utilize the new StepEditor, enhancing state management and user experience. - Refined type definitions and imports for better clarity and consistency across the onboarding module. * fix: update credential import UI and adjust labels for consistency * refactor: enhance step editor functionality and improve credential handling - Removed unused action requests from the StepEditor component to streamline the code. - Updated the form submission logic to ensure credential IDs are properly managed and validated. - Changed the form mode to 'onChange' for improved user experience during input. - Refined the scenario creation process by ensuring that actions are correctly populated with credential definitions. - Simplified the error handling for missing credentials during scenario creation. * fix: Implement environment variable configuration for demo web application * chore: remove console log statements for environment variables in BaseUrl.ts * chore: save work * chore: apply corsOptions to WS server * refactor: enhance onboarding step creation and management - Replaced createServiceStep with createAdvancedStep to support new action types in onboarding steps. - Updated CreateNewStep component to utilize advanced step creation, improving the onboarding flow. - Refined step handling logic in CreateOnboardingScreen and SortableStep components for better state management. - Enhanced the useOnboardingAdapter hook to streamline step selection and state transitions. - Improved type handling and consistency across onboarding components, ensuring better integration with the new step types. * refactor: integrate showcase adapter and update onboarding logic - Introduced useShowcaseAdapter hook to manage showcase-related operations, including saving showcases and handling scenario IDs. - Updated PublishEdit component to utilize the new useShowcaseAdapter for saving showcases. - Refined useOnboardingAdapter by removing unused comments and ensuring clarity in step management functions. * fix: update server port configuration from 5000 to 3000 in Dockerfile and index.ts * chore: Uncommented auth related code * chore: import cred-def working * chore: optimize imports * chore: update publish-issuer-assets to publish.issuer-assets * refactor: enhance onboarding step types and update step editor logic - Expanded action request types in types.ts to include new onboarding actions. - Updated StepEditor component to utilize the new StepActionRequestUnion for better type handling. - Refined form schema in onboarding.ts to align with new action properties. - Improved auto-save functionality and ensured proper handling of action-specific data during updates. * fix: update asset URL handling in StepEditor component - Modified the asset source URL in the StepEditor to dynamically include the base URL, ensuring correct asset loading. - Added a fallback image for cases where the asset is not available, improving user experience. * chore: import opts * refactor: update step creation logic and enhance credential schema validation * chore: Refactored * chore: Fixed eslint errors * chore: Added missing Authenticated decorator and fixed the test * chore: Added missing mocked authorization check it tests * chore: Added missing database migration * chore: Updated the environment variables * remove sensitive information from the values * updated secrets to fetch from github repo secrets * feat: add helm charts and templates to deploy in openshift environment * chore: caddy updates * fix: correct attribute reference in handleConditionTypeChange and update predicates handling * chore: Updated the environment variables in docker-compose.yml * chore: auth fixes * chore: Added missing environment variable * chore: added ENCRYPTION_KEY * chore: added ENCRYPTION_KEY * chore: fixed demo-server in docker * chore: ALLOW_HEADERS & logging * chore: revert commented out tests * chore: better error message * chore: mergeed in develop * chore: caddy back to 3000 * feat: add updateIssuer hook and integrate issuer update on credential approval * fix: update wallet URL and change demo web service ports to 3000 * feat: add environment variables for API server and tenant configuration in docker-compose * fix: correctly assign user to session in NextAuth token handling * fix: remove hardcoded identifier from credential schema in DisplayAddedCredentials component * fix: update error handling to check for identifier in credential schema instead of credential definition * refactor: clean up code by removing commented error handling and improving readability in Section and StepInformation components * chore: PR feedback * chore: openapi fix * chore: import optim * chore: fixed error 500 on import, traction logging, traction token rotation, import schema version * chore: filtered env logging * chore: filtered env logging * chore: verions not mandatory * chore: mapped * chore: command_timeout: "15m" * chore: added debug logging Traction adapter * chore: reverted some stuff * chore: update ALLOW_ORIGINS to include new demo web URL * feat: implemented import credential API - filtered credential in onBoarding screen - Added Credential Source in UI * fix: update query key for invalidating credential definitions * fix: undo queryKey update for CredentialDefinition * chore: removed excessive logging, DEBUG_ENABLED const, NODE_PORT > PORT, support for FIXED_SHOWCASE_API_BASE_PATH for docker envs * chore: resync with BC CI / helm * chore: trivyscan * chore: sync-up develop-4sure * chore: remove clean-ghcr & lf * chore: tweaked CI flows * chore: tweaked CI flows * chore: Added "react-scripts" * chore: removed "react-scripts" * chore: credentialDef.name -> tag * chore: .env major overhaul * refactor: update env variables and deployment configurations for bc-wallet services * refactor: enhance BC Wallet Helm chart and deployment configurations, including environment variable management and secret handling * refactor: update github workflows to sync with helm envs and updated documentation * docs: update README for Docker setup, enhancing installation instructions, component descriptions, and troubleshooting guidance * chore: readme amendment * chore: debugging showcase builder next env * chore: introduced mapEnv() to appease NextJS, logging cleanup * chore: removed DEMOWEB_DEFAULT_SLUG * chore: added DEMOWEB_SHOWCASE_API_URL * chore: ENCRYPTION_KEY * chore: comment for TRACTION_FIXED_SHOWCASE_API_URL * chore: lockfile * chore: deleted docker prod * chore: setup-env.sh * chore: missing env vars in values.yaml * chore: undo missing env vars in values.yaml * chore: env logging warning * chore: clean up environment variables in demo-server and showcase-creator deployments * chore: update environment variable name for Snowplow endpoint in values.yaml * chore: add TRACTION_API_URL environment variable to demo-server deployment * chore: update TRACTION_API_URL to TRACTION_DEFAULT_API_URL in demo-server deployment --------- Co-authored-by: A.G.J. Cate <brummos@gmail.com> Co-authored-by: Ronaldo Lima <ronal2do@gmail.com> Co-authored-by: Nimesh <nimesh@northernblock.io> Co-authored-by: Zoe Maas <zmaas@4sure.tech> Co-authored-by: Ariane Bordeleau <bordeleauariane8@gmail.com> Co-authored-by: Bram ten Cate <30893001+Brummos@users.noreply.github.com> Co-authored-by: getmoin <heymoinn@gmail.com> Co-authored-by: Moin Mohd <107438152+getmoin@users.noreply.github.com> Co-authored-by: arbordeleau <90461953+arbordeleau@users.noreply.github.com> Co-authored-by: NimeshNB <127752510+NimeshNB@users.noreply.github.com> Co-authored-by: zoemaas <86769796+zoemaas@users.noreply.github.com>
* Complete rewrite of the helm chart Signed-off-by: Ivan P <2119240+i5okie@users.noreply.github.com> * Add basic readme Signed-off-by: Ivan P <2119240+i5okie@users.noreply.github.com> --------- Signed-off-by: Ivan P <2119240+i5okie@users.noreply.github.com>
Signed-off-by: Ivan P <2119240+i5okie@users.noreply.github.com>
Signed-off-by: Ivan P <2119240+i5okie@users.noreply.github.com>
Signed-off-by: Ivan P <2119240+i5okie@users.noreply.github.com>
Signed-off-by: Ivan P <2119240+i5okie@users.noreply.github.com>
Signed-off-by: Ivan P <2119240+i5okie@users.noreply.github.com>
Signed-off-by: Ivan P <2119240+i5okie@users.noreply.github.com>
Signed-off-by: Ivan P <2119240+i5okie@users.noreply.github.com>
Signed-off-by: Ivan P <2119240+i5okie@users.noreply.github.com>
Signed-off-by: Ivan P <2119240+i5okie@users.noreply.github.com>
Signed-off-by: Ivan P <2119240+i5okie@users.noreply.github.com>
Signed-off-by: Ivan P <2119240+i5okie@users.noreply.github.com>
Signed-off-by: Ivan P <2119240+i5okie@users.noreply.github.com>
Signed-off-by: Ivan P <2119240+i5okie@users.noreply.github.com>
* chore: Moved the authorizationChecker function to auth.ts * chore: fixed demo-server in docker * chore: ALLOW_HEADERS & logging * chore: revert commented out tests * chore: better error message * chore: mergeed in develop * chore: caddy back to 3000 * chore: hardcoded ENCRYPTION_KEY for TenantController.integration.test.ts * feat: add updateIssuer hook and integrate issuer update on credential approval * fix: update wallet URL and change demo web service ports to 3000 * feat: add environment variables for API server and tenant configuration in docker-compose * fix: correctly assign user to session in NextAuth token handling * fix: remove hardcoded identifier from credential schema in DisplayAddedCredentials component * fix: update error handling to check for identifier in credential schema instead of credential definition * chore: Added url check based on the mode * chore: hardcoded ENCRYPTION_KEY for TenantController.integration.test.ts * refactor: clean up code by removing commented error handling and improving readability in Section and StepInformation components * chore: Added tenant insertion logic and fixed encryption bug * chore: Fixed test issues * chore: PR feedback * feat: integrate persona selection in ShowcaseEdit component * chore: openapi fix * chore: import optim * chore: Added environment variables to the tests * chore: Added url multitenancy to controller level * feat: implement ShowcaseEditableHeader component across showcase pages * feat: refactor publish page to use PublishInfoPage component for improved structure * chore: fixed error 500 on import, traction logging, traction token rotation, import schema version * chore: filtered env logging * chore: filtered env logging * chore: verions not mandatory * feat: enhance onboarding flow by passing showcaseSlug to OnboardingSteps and StepEditor components * chore: mapped * chore: command_timeout: "15m" * refactor: update background color across components to use 'bg-background' for consistency * feat: enforce banner image requirement in showcase forms and update validation mode * feat: add Badge component and display pending approval status in CredentialsDisplay * feat: add 'Pending Approval' label to English and French locale files for improved user feedback * feat: update Badge component to include 'destructiveOutline' variant and apply it in CredentialsDisplay for pending approval status * style: update dark mode background color for improved contrast * feat: refactor showcase form validation by moving schema to a separate file and updating references in ShowcaseCreate and ShowcaseEdit components * refactor: remove Sidebar and PublishMain components, update PublishInfo to conditionally display credentials * refactor: remove content field from assetDTO mapping for cleaner data structure * feat: update ShowcaseEdit to manage tenantId state and improve showcase data handling * chore: Fixed migration files issues * chore: added debug logging Traction adapter * chore: reverted some stuff * chore: update ALLOW_ORIGINS to include new demo web URL * feat: implemented import credential API - filtered credential in onBoarding screen - Added Credential Source in UI * feat: integrate Radix UI Tabs component and enhance NoSelection component with new props for better user interaction * fix: update query key for invalidating credential definitions * fix: undo queryKey update for CredentialDefinition * chore: Fixed first request issue * chore: removed excessive logging, DEBUG_ENABLED const, NODE_PORT > PORT, support for FIXED_SHOWCASE_API_BASE_PATH for docker envs * feat: enhance onboarding flow by adding new state management and updating credential handling in hooks * chore: Removed tenant creation and renamed environment variable * chore: Removed the tenant creation from the front-end and fixed the token decode function to use base64url * feat: enhance onboarding experience by adding credential management components and refactoring step editor functionality * refactor: streamline onboarding hooks by removing unnecessary properties and enhancing error handling * feat: enable showcase name editing by passing showcaseSlug prop and updating header component functionality * feat: enhance showcase functionality by integrating showcaseSlug prop in onboarding components and improving data handling in hooks * feat: improve local file upload component with enhanced error handling, asset ID extraction, and image loading feedback * feat: add presentation creation reset functionality and improve showcase creation component integration * chore: credentialDef.name -> tag * feat: enhance authentication and onboarding functionality by adding JWT interfaces, improving token handling, and integrating onboarding reset capabilities * feat: improve local file upload component with enhanced error handling, asset ID extraction, and image loading feedback * refactor: remove unused import from credential schema file * chore: .env major overhaul * docs: update README for Docker setup, enhancing installation instructions, component descriptions, and troubleshooting guidance * chore: readme amendment * chore: debugging showcase builder next env * feat: enhance step editor functionality by updating credential handling and integrating scenario management in onboarding process * feat: integrate showcase slug into scenario editing components for improved routing and data handling * chore: introduced mapEnv() to appease NextJS, logging cleanup * chore: removed DEMOWEB_DEFAULT_SLUG * chore: added DEMOWEB_SHOWCASE_API_URL * chore: ENCRYPTION_KEY * chore: comment for TRACTION_FIXED_SHOWCASE_API_URL * update helm env without changing Github secrets variables * fix: update OIDC_CLIENT_SECRET reference in helm deployment configuration * fix: remove trailing slash from SHOWCASE_API_URL in helm values.yaml * feat: implement multi-tenancy support with tenant context and provider * feat: implement authorization checker for token validation and tenant management * feat: add duplication functionality for showcases and implement DuplicationShowcaseService * refactor: update type definitions in DuplicationShowcaseService for improved clarity and functionality * fix: correct typo in 'Create tenant' label in command dialog menu * refactor: replace decodeJwt with browserDecodeJwt for improved JWT handling and clean up unused imports * feat: add authorization and HTTP status code for showcase duplication endpoint * refactor: reorganize imports in ShowcaseController for improved readability * fix: correct scenario length assertion in ShowcaseController tests and restore ScenarioRepository import in DuplicationShowcaseService * refactor: update type casting in DuplicationShowcaseService for steps and actions to enhance type safety * refactor: enhance proofRequest handling in DuplicationShowcaseService for improved structure and clarity * refactor: simplify duplicate showcase method by removing tenantId parameter and enhancing tenant retrieval in DuplicationShowcaseService * feat: add new endpoint for duplicating showcases with detailed response handling * refactor: replace decodeJwt with browserDecodeJwt for improved token decoding * chore: remove port specification from localhost configuration in next.config.ts for cleaner setup * refactor: enhance tenant retrieval and showcase duplication logic in services and components * feat: implement tenant-based routing and enhance showcase creation flow - Added tenant context provider to manage tenant ID across the application. - Updated routing in various components to include tenant ID in URLs. - Implemented middleware to set tenant ID cookie based on URL. - Created new pages for credentials, developer tools, and showcases under tenant-specific routes. - Enhanced existing components to utilize tenant context for better state management. - Refactored showcase creation and editing flows to accommodate tenant-specific logic. - Improved user experience by ensuring proper navigation and state handling across tenant routes. * refactor: extract BannerImageUpload component for better code organization and reuse in showcase creation and editing * refactor: update showcase state management by removing displayShowcase and integrating currentShowcaseSlug for improved clarity and functionality * refactor: enhance showcase and onboarding logic by introducing new parsers and removing unused fixtures for improved clarity and maintainability * feat: add presentation and issuance scenario fixtures and parsers for enhanced showcase functionality * feat: implement showcase duplication functionality and enhance showcase request parsing * refactor: replace setShowcaseFromResponse with setShowcase and update showcase state management for improved clarity * feat: introduce CredCard component and refactor credential display logic for improved onboarding experience * feat: update asset URLs to include tenant ID for multi-tenant support * refactor: improve credential management and display logic in onboarding components for enhanced user experience * refactor: update credential handling in scenario components to streamline data flow and improve user interaction * feat: implement tenant-based login and middleware enhancements for improved routing * refactor: remove unused decodeJwt import from tenant-provider * feat: integrate tenant-based asset paths in CredCard, DisplayCredential, and BannerImageUpload components * feat: enhance tenant management and routing across components * feat: implement tenant ID retrieval from URL path and update routing logic for tenant-specific pages * chore: updated the tenant model * chore: fixed test * chore: saving work * chore: fixed tests * chore: save work * chore: fixed tests * chore: fixed updateTenant * chore: saving work * chore: saving work * chore: fixed another test * chore: Only @RootTenantAuthorized() can modify tenant records * chore: Authentication fixes * chore: save-state excluding tenant switching * chore: 'Accept': 'application/json', * chore: reverted comments * chore: env syncup * chore: fixed use of showcaseApiUrlBase for tenant inclusion * chore: comments * chore: test fixes * chore: load additional traction fields in messageheader * chore: update API_KEY and OIDC_ROOT_ISSUER_URL in workflow and values files * chore: test & session fixes * chore: cleanup * chore: MockSessionService fix * chore: removed showcase_creator.env.OIDC_ROOT_CLIENT_SECRET * chore: redirect root to tenant * feat: integrate showcase scenario updates in BasicStepEdit component * feat: update navigation to include tenantId in UseCaseContainer, Section, and StartContainer components * fix: standardize cookie naming for tenant ID across authentication components * chore: showcase-filters working * chore: Added referer support * fix: update allowed types for credential attributes selection * refactor: streamline tenant ID retrieval from cookies * fix: improve login redirection logic by ensuring locale fallback * fix: update attribution links in DemoCompletedModal component * chore: Fixed tenant id in NextAuth * chore: Commented out redirecting to login page * chore: Logout fixes * chore: Logout fixes * chore: lockfile * chore: fixed showcase.repository.test.ts * chore: Save work * chore: Fixed getUrlTenantId for no-token requests * chore: implemented credentials/definitions/issuance endpoint * chore: tenantId fixes * chore: credentialDefinition filter fixes * chore: fixing tests and slug+tenant unique * chore: fixed more tests * chore: add tenantId to credential and update states * chore: fixed more tests * chore: fixed more tests * chore: values syncup * chore: __Secure-authjs.callback-url ?? * chore: secureCookie * chore: revert back charts and pipelines. update oidc envs * chore: update OIDC environment variable names in README and values.yaml * chore: remove OIDC_REALM variable from README for clarity * chore: update environment variable documentation in README and values.yaml --------- Co-authored-by: Zoe Maas <zmaas@4sure.tech> Co-authored-by: Ronaldo Lima <ronal2do@gmail.com> Co-authored-by: Moin Mohd <107438152+getmoin@users.noreply.github.com> Co-authored-by: Nimesh <nimesh@northernblock.io> Co-authored-by: NimeshNB <127752510+NimeshNB@users.noreply.github.com>
Signed-off-by: Emiliano Suñé <emiliano.sune@gmail.com>
- Updated function parameter formatting in PublishInfo, DisplayStepCredentials, EditProofRequest, and SortableStep components for consistency. - Adjusted layout styles in DisplayStepCredentials and LocalFileUpload components for better UX. - Enhanced CreateScenariosScreen to dynamically display the active persona's scenario. - Removed unused Sidebar component and related code. - Updated text input components to improve code clarity. - Fixed comments in use-onboarding-adapter and use-showcase-adapter hooks for better understanding. - Deleted unused UI store and utility test files. - Updated Next.js configuration for image handling. - Removed unnecessary Helm chart files and dependencies. - Updated Docker environment variables for clarity and correctness. - Improved OpenAPI documentation for better schema representation.
…ions and configurations
…dling and logging
…fic homepage feat: Enhance NewCharacterPage to manage headshot and body image types fix: Update AccordionGroup to link to the correct test URL feat: Modify CredentialsForm to handle credential logo types fix: Adjust CredentialsImport to correctly extract credential definition name fix: Update DeleteModal to ensure proper z-index for modal display feat: Extend FileUploadFull to accept SVG files and handle image type updates feat: Integrate DeleteModal into LandingPage for showcase deletion confirmation fix: Refine onboarding creation logic to handle persona scenarios correctly fix: Update StepEditorForm to improve service step validation logic feat: Enhance publish screen components to support SVG file uploads fix: Update showcase list to integrate deletion functionality with modal confirmation fix: Adjust onboarding adapter to handle scenarios without personas fix: Update persona adapter to manage image types during persona creation fix: Refactor showcase hook to allow conditional fetching of showcase data fix: Correct schema ID parsing logic in utility functions fix: Update common localization strings for clarity fix: Adjust French localization strings for consistency feat: Enhance credential import schema validation with regex patterns fix: Update service manager to improve token handling and debugging fix: Adjust showcase API service to correctly reference schema version fix: Improve traction service token handling and debugging output
…ent and scenario handling
Hotfixes/backend
Fix/bug fixes
…dling and logging
…fic homepage feat: Enhance NewCharacterPage to manage headshot and body image types fix: Update AccordionGroup to link to the correct test URL feat: Modify CredentialsForm to handle credential logo types fix: Adjust CredentialsImport to correctly extract credential definition name fix: Update DeleteModal to ensure proper z-index for modal display feat: Extend FileUploadFull to accept SVG files and handle image type updates feat: Integrate DeleteModal into LandingPage for showcase deletion confirmation fix: Refine onboarding creation logic to handle persona scenarios correctly fix: Update StepEditorForm to improve service step validation logic feat: Enhance publish screen components to support SVG file uploads fix: Update showcase list to integrate deletion functionality with modal confirmation fix: Adjust onboarding adapter to handle scenarios without personas fix: Update persona adapter to manage image types during persona creation fix: Refactor showcase hook to allow conditional fetching of showcase data fix: Correct schema ID parsing logic in utility functions fix: Update common localization strings for clarity fix: Adjust French localization strings for consistency feat: Enhance credential import schema validation with regex patterns fix: Update service manager to improve token handling and debugging fix: Adjust showcase API service to correctly reference schema version fix: Improve traction service token handling and debugging output
…ent and scenario handling
Hotfixes/backend
feat: implemented ZKP
…ay21' into merge_upstream
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.