Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(app): field service groups connected to indexedDb #2475

Merged
merged 3 commits into from
Sep 9, 2024

Conversation

rhahao
Copy link
Member

@rhahao rhahao commented Sep 9, 2024

No description provided.

Copy link

vercel bot commented Sep 9, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Updated (UTC)
organized-app ✅ Ready (Inspect) Visit Preview Sep 9, 2024 1:38pm

Copy link
Contributor

coderabbitai bot commented Sep 9, 2024

Caution

Review failed

The pull request is closed.

Walkthrough

This pull request introduces several changes across various files, primarily focusing on the management and display of field service groups within a React application. Key modifications include the replacement of the ServiceGroups component with FieldServiceGroups, updates to routing paths, enhancements to the Autocomplete component, and the addition of new components and hooks for managing group creation, editing, and deletion. Additionally, several styled components and type definitions are introduced to improve the structure and functionality of the application.

Changes

File Change Summary
src/App.tsx Replaced ServiceGroups with FieldServiceGroups; updated routing path from /service-groups to /field-service-groups.
src/RootWrap.tsx Added a new breakpoint desktopLarge: 1400 to the theme's breakpoints.
src/components/autocomplete/index.tsx Added a new variant prop to the Autocomplete component's props, affecting the TextField variant rendering.
src/components/autocomplete/index.types.ts Introduced variant property in AutocompletePropsType.
src/components/icons/IconAssistant.tsx Modified SVG mask ID and path data for the icon.
src/components/icons/IconGroupOverseer.tsx Removed the IconGroupOverseer component.
src/components/icons/IconOverseer.tsx Added a new IconOverseer component with customizable props.
src/components/icons/index.ts Updated exports: removed IconGroupOverseer, added IconOverseer, and re-added IconPersonPlaceholder.
src/definition/field_service_groups.ts Removed _deleted and updatedAt properties from FieldServiceGroupMemberType.
src/features/congregation/field_service_groups/create_group/group_details/index.styles.tsx Added styled components GroupHeader and GroupItems.
src/features/congregation/field_service_groups/create_group/group_details/index.tsx Introduced GroupDetails component for creating field service groups.
src/features/congregation/field_service_groups/create_group/group_details/index.types.ts Added GroupDetailsProps and UsersOption type definitions.
src/features/congregation/field_service_groups/create_group/group_details/useGroupDetails.tsx Introduced useGroupDetails hook for managing group details.
src/features/congregation/field_service_groups/create_group/index.tsx Added CreateGroup component for group creation.
src/features/congregation/field_service_groups/create_group/index.types.ts Introduced CreateGroupProps and CreateState type definitions.
src/features/congregation/field_service_groups/create_group/new_group_members/index.tsx Added NewGroupMembers component for managing new group members.
src/features/congregation/field_service_groups/create_group/new_group_members/index.types.ts Added NewGroupMembersProps type definition.
src/features/congregation/field_service_groups/create_group/useCreateGroup.tsx Introduced useCreateGroup hook for managing group creation logic.
src/features/congregation/field_service_groups/group_delete/index.tsx Added GroupDelete component for confirming group deletion.
src/features/congregation/field_service_groups/group_delete/index.types.ts Introduced GroupDeleteProps type definition.
src/features/congregation/field_service_groups/group_delete/useGroupDelete.tsx Introduced useGroupDelete hook for handling group deletion logic.
src/features/congregation/field_service_groups/group_edit/index.tsx Added GroupEdit component for editing group details.
src/features/congregation/field_service_groups/group_edit/index.types.ts Introduced GroupEditProps type definition.
src/features/congregation/field_service_groups/group_edit/useGroupEdit.tsx Introduced useGroupEdit hook for managing group editing logic.
src/features/congregation/field_service_groups/group_item/badge/index.tsx Added GroupBadge component for displaying group badges.
src/features/congregation/field_service_groups/group_item/badge/index.types.ts Introduced GroupBadgeProps type definition.
src/features/congregation/field_service_groups/group_item/badge/useBadge.tsx Introduced useBadge hook for managing badge properties.
src/features/congregation/field_service_groups/group_item/header/index.tsx Added GroupHeader component for rendering group headers.
src/features/congregation/field_service_groups/group_item/header/index.types.ts Introduced GroupHeaderProps type definition.
src/features/congregation/field_service_groups/group_item/header/useHeader.tsx Introduced useHeader hook for managing header state.
src/features/congregation/field_service_groups/group_item/index.styles.tsx Added GroupContainer styled component.
src/features/congregation/field_service_groups/group_item/index.tsx Introduced GroupItem component for rendering group items.
src/features/congregation/field_service_groups/group_item/index.types.ts Introduced GroupItemProps type definition.
src/features/congregation/field_service_groups/group_item/member/index.tsx Added GroupMember component for rendering group members.
src/features/congregation/field_service_groups/group_item/member/index.types.ts Introduced GroupMemberProps type definition.
src/features/congregation/field_service_groups/group_item/member/useMember.tsx Introduced useMember hook for managing member functionalities.
src/features/congregation/field_service_groups/group_item/remove_person/index.tsx Added RemovePerson component for confirming member removal.
src/features/congregation/field_service_groups/group_item/remove_person/index.types.ts Introduced RemovePersonProps type definition.
src/features/congregation/field_service_groups/group_item/remove_person/useRemovePerson.tsx Introduced useRemovePerson hook for managing member removal logic.
src/features/congregation/field_service_groups/group_item/useGroupItem.tsx Introduced useGroupItem hook for managing group item data.
src/features/congregation/field_service_groups/group_members/index.tsx Added GroupMembers component for managing group member lists.
src/features/congregation/field_service_groups/group_members/index.types.ts Introduced GroupMembersProps, UsersOption, and MemberType type definitions.
src/features/congregation/field_service_groups/group_members/member_item/index.tsx Added MemberItem component for displaying individual members.
src/features/congregation/field_service_groups/group_members/member_item/index.types.ts Introduced MemberItemProps type definition.
src/features/congregation/field_service_groups/group_members/member_item/useMemberItem.tsx Introduced useMemberItem hook for managing member item data.
src/features/congregation/field_service_groups/group_members/useGroupMembers.tsx Introduced useGroupMembers hook for managing group members.
src/features/congregation/field_service_groups/groups_reorder/group_item/index.tsx Added GroupItem component for reordering groups.
src/features/congregation/field_service_groups/groups_reorder/group_item/index.types.ts Introduced GroupItemProps type definition.
src/features/congregation/field_service_groups/groups_reorder/index.styles.tsx Added GroupsContainer styled component.
src/features/congregation/field_service_groups/groups_reorder/index.tsx Introduced GroupsReorder component for reordering groups.
src/features/congregation/field_service_groups/groups_reorder/index.types.ts Introduced GroupsReorderProps and GroupType type definitions.
src/features/congregation/field_service_groups/groups_reorder/useGroupsReorder.tsx Introduced useGroupsReorder hook for managing group reordering.
src/features/congregation/field_service_groups/index.styles.tsx Added GroupsContainer styled component.
src/features/congregation/field_service_groups/index.tsx Introduced FieldServiceGroupsContainer component for displaying field service groups.
src/features/congregation/field_service_groups/useFieldServiceGroups.tsx Introduced useFieldServiceGroups hook for managing field service groups.
src/pages/congregation/service_groups/components/drag_list/drag_list.types.tsx Removed type definitions for drag list props.
src/pages/congregation/service_groups/components/drag_list/index.tsx Removed CustomDragList component.
src/pages/congregation/service_groups/components/group_card/group_card.types.tsx Removed type definitions for group card components.
src/pages/congregation/service_groups/components/group_card/index.tsx Removed group card components.
src/pages/congregation/service_groups/index.tsx Removed ServiceGroups component.
src/pages/congregation/service_groups/modal_windows/create_new_group/create_new_group.types.tsx Removed type definitions for creating new groups.
src/pages/congregation/service_groups/modal_windows/create_new_group/index.tsx Removed CreateNewGroupModalWindow component.
src/pages/congregation/service_groups/modal_windows/delete_group/delete_group.types.tsx Removed type definitions for delete group modal.
src/pages/congregation/service_groups/modal_windows/delete_group/index.tsx Removed DeleteGroupModalWindow component.
src/pages/congregation/service_groups/modal_windows/edit_group/edit_group.types.tsx Removed type definitions for edit group modal.
src/pages/congregation/service_groups/modal_windows/edit_group/index.tsx Removed EditGroupModalWindow component.
src/pages/congregation/service_groups/modal_windows/modal_window.styled.tsx Removed styled component for modal windows.
src/pages/congregation/service_groups/modal_windows/quick_settings/index.tsx Removed QuickSettingsModalWindow component.
src/pages/congregation/service_groups/modal_windows/quick_settings/quick_settings.types.tsx Removed type definitions for quick settings modal.
src/pages/congregation/service_groups/modal_windows/remove_publisher/index.tsx Removed RemovePublisherModalWindow component.
src/pages/congregation/service_groups/modal_windows/remove_publisher/remove_publisher.types.tsx Removed type definitions for remove publisher modal.

Possibly related PRs

Warning

Rate limit exceeded

@rhahao has exceeded the limit for the number of commits or files that can be reviewed per hour. Please wait 12 minutes and 0 seconds before requesting another review.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

📥 Commits

Reviewing files that changed from the base of the PR and between 8427a4e and 7ccd103.


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?

❤️ Share
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Generate unit testing code for this file.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai generate unit testing code for this file.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and generate unit testing code.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

Copy link

New and removed dependencies detected. Learn more about Socket for GitHub ↗︎

Package New capabilities Transitives Size Publisher
npm/@types/[email protected] None 0 24.9 kB types

View full report↗︎

Copy link

sonarqubecloud bot commented Sep 9, 2024

@rhahao rhahao merged commit 1e38035 into sws2apps:main Sep 9, 2024
12 checks passed
@rhahao
Copy link
Member Author

rhahao commented Nov 30, 2024

🎉 This PR is included in version 2.130.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant