Closed bobbykolev closed 1 month ago
The changes introduced in the pull request involve a substantial refactor of components related to managing challenges, transitioning to a focus on subspaces. Key modifications include renaming components, updating GraphQL queries and mutations, and enhancing user interface elements to better support subspace management. New functionalities such as duplicating and saving subspaces as templates have been added, along with improved data structures and user interactions, including confirmation dialogs for deletions.
Files | Change Summary |
---|---|
src/core/apollo/generated/apollo-hooks.ts , src/core/apollo/generated/graphql-schema.ts |
Updated GraphQL queries and schema to replace challenge management with subspace management, including renaming queries and adding new fields for visual data like cardBanner and visual . |
src/domain/journey/space/pages/SpaceSubspaces/SubspaceListView.tsx |
Refactored ChallengeListView to SubspaceListView , updated queries and mutations to manage subspaces, added confirmation dialog for deletions, and introduced CreateSubspaceForm . |
src/domain/platform/admin/opportunity/pages/OpportunityList.tsx |
Enhanced management of subspaces with options to duplicate and save as templates, added state management for delete confirmation, and refined the data structure to include additional properties like avatar . |
src/domain/community/contributor/AccountTab/ContributorAccountView.tsx |
Streamlined mutation functions to return results directly, modified layout properties, and simplified control flow for deletion operations. |
src/domain/journey/common/JourneyCardHorizontal/JourneyCardHorizontal.tsx |
Introduced a new optional size property to enhance the JourneyAvatar component and modified the component structure for better configurability. |
src/domain/journey/common/JourneyAvatar/JourneyAvatar.tsx |
Added an optional size property to the JourneyAvatarProps interface, allowing for flexible avatar sizing options. |
src/domain/journey/space/pages/SpaceAccount/SpaceAccountView.tsx |
Removed unnecessary loading state management for deletion, simplifying the deletion logic. |
src/domain/journey/space/pages/SpaceSettings/EntityConfirmDeleteDialog.tsx |
Updated the onDelete prop to handle asynchronous operations and improved state management during delete operations. |
src/domain/journey/space/pages/SpaceSettings/SpaceSettingsView.tsx |
Changed the query refetching behavior to focus on subspaces instead of challenges after a space deletion. |
src/domain/platform/admin/opportunity/pages/OpportunitySettings/OpportunitySettingsView.tsx |
Removed loading state tracking for deletion, simplifying the handling of delete operations. |
AdminGlobalOrganizationsListDocument
and UserListDocument
queries, which are also updated in the main PR to include a visual
field, indicating a direct connection in the changes made to the GraphQL queries.π° In the meadow where subspaces grow,
We leap from challenges, our progress on show.
With banners and icons, our journey's anew,
Each hop brings us closer to what we can do!
So gather 'round, friends, letβs celebrate bright,
For every small change brings us new light! πΌ
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
As part of https://github.com/alkem-io/client-web/issues/6790
SearchableList.tsx
was replaced with a list of JourneyCardHorizontal (supporting actions menu);whitHoverState
which controls the Hover ListItem Wrapper (also fixing the layout in the Account Tab Page);EntityConfirmDeleteDialog
dialog;@SimoneZaza approved the UI/UX changes above.
Summary by CodeRabbit
Summary by CodeRabbit
New Features
Bug Fixes
Refactor
Style