kloudlite / web

Kloudlite Web
http://kloudlite.io
GNU Affero General Public License v3.0
2 stars 1 forks source link

Update webinar changes #289

Closed nxtCoder19 closed 2 months ago

nxtCoder19 commented 2 months ago

Summary by Sourcery

Enhance the webinar application by integrating user authentication, refactor the webinar and meeting pages for better data handling and loading management, update TypeScript configuration, and clean up the codebase by commenting out unused code.

New Features:

Enhancements:

Build:

Chores:

sourcery-ai[bot] commented 2 months ago

Reviewer's Guide by Sourcery

This pull request updates the webinar application, removes cluster-related code from the console application, and makes various other changes across multiple files. The main focus is on updating the webinar application to handle user authentication and session management, while also removing dependencies on cluster information in the console application.

File-Level Changes

Change Details Files
Updated webinar application to handle user authentication and session management
  • Added axios for API calls
  • Implemented user authentication check
  • Added redirect logic for unauthenticated users
  • Updated JoinWebinar component to use authenticated user data
  • Modified Meeting component to use Suspense for better loading handling
src/apps/webinar/src/app/page.tsx
src/apps/webinar/src/app/components/join-webinar.tsx
src/apps/webinar/src/app/pages/meeting/page.tsx
src/apps/webinar/src/app/api/get-user/route.ts
Removed cluster-related code from console application
  • Commented out cluster-related imports and variables
  • Removed cluster-dependent logic
  • Updated function parameters and return types to exclude cluster information
src/apps/console/page-components/app/compute.tsx
src/apps/console/routes/_main+/$account+/env+/$environment+/routers/handle-router.tsx
src/apps/console/routes/_main+/$account+/env+/$environment+/new-app/app-compute.tsx
src/apps/console/routes/_main+/$account+/env+/$environment+/external-apps/external-app-resource.tsx
src/apps/console/routes/_main+/$account+/env+/$environment+/_layout.tsx
src/apps/console/routes/_main+/$account+/env+/$environment+/apps/apps-resources-v2.tsx
src/apps/console/routes/_main+/$account+/env+/$environment+/managed-resources/managed-resources-resource-v2.tsx
Updated authentication flow in the auth application
  • Modified login route to handle callback parameter
  • Updated login button to use dynamic login URL based on callback presence
src/apps/auth/routes/_providers+/login.tsx
Updated TypeScript configuration for webinar application
  • Added new path mappings
  • Updated compiler options
src/apps/webinar/tsconfig.json

Tips - Trigger a new Sourcery review by commenting `@sourcery-ai review` on the pull request. - Continue your discussion with Sourcery by replying directly to review comments. - You can change your review settings at any time by accessing your [dashboard](https://app.sourcery.ai): - Enable or disable the Sourcery-generated pull request summary or reviewer's guide; - Change the review language; - You can always [contact us](mailto:support@sourcery.ai) if you have any questions or feedback.