Skip to content

Conversation

rahatyeasinemon
Copy link
Collaborator

No description provided.

@RishadAlam RishadAlam requested a review from Copilot October 7, 2025 06:15
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR adds comprehensive FluentCommunity integration to the system, introducing support for community management features through a new integration module.

Key changes:

  • Complete FluentCommunity integration with multiple actions (add user, remove user, course management, post creation, etc.)
  • Frontend components for configuration and field mapping
  • Backend API routes and controllers for FluentCommunity operations

Reviewed Changes

Copilot reviewed 15 out of 15 changed files in this pull request and generated 5 comments.

Show a summary per file
File Description
includes/Actions/FluentCommunity/Routes.php Defines API routes for FluentCommunity operations
includes/Actions/FluentCommunity/RecordApiHelper.php Handles record operations and API interactions for FluentCommunity
includes/Actions/FluentCommunity/FluentCommunityController.php Main controller for FluentCommunity integration logic
frontend-dev/src/components/Flow/New/SelectAction.jsx Adds FluentCommunity to action selection dropdown
frontend-dev/src/components/AllIntegrations/NewInteg.jsx Registers FluentCommunity integration component
frontend-dev/src/components/AllIntegrations/IntegInfo.jsx Adds FluentCommunity authorization component
frontend-dev/src/components/AllIntegrations/FluentCommunity/.js Complete frontend implementation including forms, field mapping, authorization, and static data
frontend-dev/src/components/AllIntegrations/EditInteg.jsx Registers edit component for FluentCommunity

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

@RishadAlam RishadAlam requested a review from Copilot October 8, 2025 06:17
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

Copilot reviewed 15 out of 15 changed files in this pull request and generated 3 comments.

Comments suppressed due to low confidence (1)

frontend-dev/src/components/AllIntegrations/FluentCommunity/FluentCommunityIntegLayout.jsx:1

  • [nitpick] Using backslash prefix for \\is_null() is inconsistent with other function calls in the same file. Consider using is_null() without the backslash for consistency, or apply the backslash prefix consistently throughout the file.
import { __ } from '../../../Utils/i18nwrap'

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

if (
(fluentCommunityConf?.actionName === 'add-course' ||
fluentCommunityConf?.actionName === 'remove-course') &&
!fluentCommunityConf.course_id
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

use ['add-course', 'remove-course'].includes(fluentCommunityConf?.actionName)

})
return
}
if (fluentCommunityConf.name !== '' && fluentCommunityConf.field_map.length > 0) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

move those conditions to a separate common file that could be used from multiple files

delete newConf?.fluentCommunityList
delete newConf?.fluentCommunityTags

if (e.target.value !== '') {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

use value instead of e.targe.value

setFluentCommunityConf({ ...newConf })
}

const handleAction = e => {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

optimize and rename handleAction

value={fluentCommunityConf?.actionName}
className="btcd-paper-inp w-5">
<option value="">{__('Select Action', 'bit-integrations')}</option>
{action.map(({ label, value, is_pro }) => (
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Map action dropdown in one loop. See what others do

)}
{(fluentCommunityConf?.actionName === 'add-user' ||
fluentCommunityConf?.actionName === 'remove-user') &&
fluentCommunityConf?.fluentCommunityList &&
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use [''add-user', 'remove-user'].includes(fluentCommunityConf?.actionName)

)}
{(fluentCommunityConf?.actionName === 'add-course' ||
fluentCommunityConf?.actionName === 'remove-course') &&
fluentCommunityConf?.fluentCommunityCourses &&
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Use [''add-user', 'remove-user'].includes(fluentCommunityConf?.actionName)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants