Skip to content

Commit d54521a

Browse files
authored
Merge pull request #93 from Bit-Apps-Pro/rishad-dev-tmp
version updated to v2.5.1
2 parents 2bf5de2 + 08e8ea3 commit d54521a

File tree

14 files changed

+161
-120
lines changed

14 files changed

+161
-120
lines changed

bitwpfi.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
/**
44
* Plugin Name: Bit Integrations
55
* Plugin URI: https://bitapps.pro/bit-integrations
6-
* Description: Bit Integrations is a platform that integrates with over 270+ different platforms to help with various tasks on your WordPress site, like WooCommerce, Form builder, Page builder, LMS, Sales funnels, Bookings, CRM, Webhooks, Email marketing, Social media and Spreadsheets, etc
7-
* Version: 2.5.1
6+
* Description: Bit Integrations is a platform that integrates with over 280+ different platforms to help with various tasks on your WordPress site, like WooCommerce, Form builder, Page builder, LMS, Sales funnels, Bookings, CRM, Webhooks, Email marketing, Social media and Spreadsheets, etc
7+
* Version: 2.5.2
88
* Author: Automation & Integration Plugin - Bit Apps
99
* Author URI: https://bitapps.pro
1010
* Text Domain: bit-integrations
@@ -24,7 +24,7 @@
2424
$btcbi_db_version = '1.1';
2525

2626
// Define most essential constants.
27-
define('BTCBI_VERSION', '2.5.1');
27+
define('BTCBI_VERSION', '2.5.2');
2828
define('BTCBI_PLUGIN_MAIN_FILE', __FILE__);
2929

3030
require_once plugin_dir_path(__FILE__) . 'includes/loader.php';

frontend-dev/src/Utils/StaticData/webhookIntegrations.js

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,12 @@ export const customFormIntegrations = [
5454
'ProfileGrid',
5555
'MemberPressCourse',
5656
'ModernEventsCalendar',
57+
'SureFeedback',
58+
'WpPolls',
59+
'WpAllImport',
60+
'MyCred',
61+
'WPLMS',
62+
'WPLoyalty',
5763
]
5864

5965
export const actionHookIntegrations = ['ActionHook']

frontend-dev/src/components/AllIntegrations/IntegrationHelpers/WebHook/WebHooksIntegration.jsx

Lines changed: 93 additions & 91 deletions
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,14 @@ export default function WebHooksIntegration({
2424
const [isLoading, setIsLoading] = useState(false)
2525
const [tab, setTab] = useState(1)
2626
const method = ['GET', 'POST', 'PUT', 'PATCH', 'OPTION', 'DELETE', 'TRACE', 'CONNECT']
27-
const handleInput = (e) => {
27+
const handleInput = e => {
2828
const tmpConfConf = { ...webHooks }
2929
tmpConfConf[e.target.name] = e.target.value
3030
setWebHooks({ ...tmpConfConf })
3131
}
32-
const testWebHook = (webHooksDetails) => {
32+
const testWebHook = webHooksDetails => {
3333
setIsLoading(true)
34-
bitsFetch({ hookDetails: webHooksDetails }, 'test_webhook').then((response) => {
34+
bitsFetch({ hookDetails: webHooksDetails }, 'test_webhook').then(response => {
3535
if (response && response.success) {
3636
setSnackbar({ show: true, msg: `${response.data}` })
3737
setIsLoading(false)
@@ -88,7 +88,7 @@ export default function WebHooksIntegration({
8888
<div className="f-m">{__('Integration Name', 'bit-integrations')}</div>
8989
<input
9090
name="name"
91-
onChange={(e) => handleInput(e, webHooks, setWebHooks)}
91+
onChange={e => handleInput(e, webHooks, setWebHooks)}
9292
className="btcd-paper-inp mt-1"
9393
type="text"
9494
value={webHooks.name}
@@ -102,7 +102,7 @@ export default function WebHooksIntegration({
102102
<div className="f-m">{__('Link:', 'bit-integrations')}</div>
103103
<input
104104
name="url"
105-
onChange={(e) => handleInput(e, webHooks, setWebHooks)}
105+
onChange={e => handleInput(e, webHooks, setWebHooks)}
106106
className="btcd-paper-inp mt-1"
107107
type="text"
108108
value={webHooks.url}
@@ -113,7 +113,7 @@ export default function WebHooksIntegration({
113113
<div className="f-m">{__('Method:', 'bit-integrations')}</div>
114114
<select
115115
name="method"
116-
onChange={(e) => handleInput(e, webHooks, setWebHooks)}
116+
onChange={e => handleInput(e, webHooks, setWebHooks)}
117117
defaultValue={webHooks.method}
118118
className="btcd-paper-inp mt-1"
119119
disabled={isInfo}>
@@ -134,96 +134,98 @@ export default function WebHooksIntegration({
134134
</small>
135135
)}
136136
{!isInfo && (
137-
<Button
138-
onClick={() => testWebHook(webHooks, setIsLoading, setSnackbar)}
139-
className="btn btcd-btn-o-purple">
140-
{__('Test Webhook', 'bit-integrations')}
141-
{isLoading && <LoaderSm size={14} clr="#022217" className="ml-2" />}
142-
</Button>
143-
)}
144-
<br />
145-
<br />
146-
<Tabs>
147-
<div className="flx mt-2">
148-
<Tab>
149-
<button className={`btcd-s-tab-link ${tab === 1 && 's-t-l-active'}`} type="button">
150-
{__('Params', 'bit-integrations')}
151-
</button>
152-
</Tab>
153-
<Tab>
154-
<button className={`btcd-s-tab-link ${tab === 2 && 's-t-l-active'}`} type="button">
155-
{__('Headers', 'bit-integrations')}
156-
</button>
157-
</Tab>
158-
<Tab>
159-
<button className={`btcd-s-tab-link ${tab === 3 && 's-t-l-active'}`} type="button">
160-
{__('Body', 'bit-integrations')}
161-
</button>
162-
</Tab>
163-
</div>
164-
<div className="btcd-hr" />
165-
<Panel>
166-
<Params
167-
webHooks={webHooks}
168-
setWebHooks={setWebHooks}
169-
formFields={formFields}
170-
isInfo={isInfo}
171-
setTab={setTab}
172-
/>
173-
</Panel>
174-
<Panel>
175-
<RequestHeaders
176-
webHooks={webHooks}
177-
setWebHooks={setWebHooks}
178-
formFields={formFields}
179-
isInfo={isInfo}
180-
setTab={setTab}
181-
/>
182-
</Panel>
183-
<Panel>
184-
<Body
185-
webHooks={webHooks}
186-
setWebHooks={setWebHooks}
187-
formFields={formFields}
188-
isInfo={isInfo}
189-
setTab={setTab}
190-
/>
191-
</Panel>
192-
</Tabs>
193-
194-
{webHooks?.condition && (
195137
<>
196-
<div className="flx">
197-
<TableCheckBox
198-
onChange={(e) => checkedCondition(e.target.value, e.target.checked)}
199-
checked={webHooks?.condition?.action_behavior === 'cond'}
200-
className="wdt-200 mt-4 mr-2"
201-
value="cond"
202-
title={__('Conditional Logics', 'bit_integration')}
203-
isInfo={isInfo}
204-
/>
205-
</div>
138+
<Button
139+
onClick={() => testWebHook(webHooks, setIsLoading, setSnackbar)}
140+
className="btn btcd-btn-o-purple">
141+
{__('Test Webhook', 'bit-integrations')}
142+
{isLoading && <LoaderSm size={14} clr="#022217" className="ml-2" />}
143+
</Button>
144+
206145
<br />
207-
{webHooks?.condition?.action_behavior === 'cond' && (
208-
<ConditionalLogic
209-
formFields={formFields}
210-
dataConf={webHooks}
211-
setDataConf={setWebHooks}
212-
/>
146+
<br />
147+
<Tabs>
148+
<div className="flx mt-2">
149+
<Tab>
150+
<button className={`btcd-s-tab-link ${tab === 1 && 's-t-l-active'}`} type="button">
151+
{__('Params', 'bit-integrations')}
152+
</button>
153+
</Tab>
154+
<Tab>
155+
<button className={`btcd-s-tab-link ${tab === 2 && 's-t-l-active'}`} type="button">
156+
{__('Headers', 'bit-integrations')}
157+
</button>
158+
</Tab>
159+
<Tab>
160+
<button className={`btcd-s-tab-link ${tab === 3 && 's-t-l-active'}`} type="button">
161+
{__('Body', 'bit-integrations')}
162+
</button>
163+
</Tab>
164+
</div>
165+
<div className="btcd-hr" />
166+
<Panel>
167+
<Params
168+
webHooks={webHooks}
169+
setWebHooks={setWebHooks}
170+
formFields={formFields}
171+
isInfo={isInfo}
172+
setTab={setTab}
173+
/>
174+
</Panel>
175+
<Panel>
176+
<RequestHeaders
177+
webHooks={webHooks}
178+
setWebHooks={setWebHooks}
179+
formFields={formFields}
180+
isInfo={isInfo}
181+
setTab={setTab}
182+
/>
183+
</Panel>
184+
<Panel>
185+
<Body
186+
webHooks={webHooks}
187+
setWebHooks={setWebHooks}
188+
formFields={formFields}
189+
isInfo={isInfo}
190+
setTab={setTab}
191+
/>
192+
</Panel>
193+
</Tabs>
194+
195+
{webHooks?.condition && (
196+
<>
197+
<div className="flx">
198+
<TableCheckBox
199+
onChange={e => checkedCondition(e.target.value, e.target.checked)}
200+
checked={webHooks?.condition?.action_behavior === 'cond'}
201+
className="wdt-200 mt-4 mr-2"
202+
value="cond"
203+
title={__('Conditional Logics', 'bit_integration')}
204+
isInfo={isInfo}
205+
/>
206+
</div>
207+
<br />
208+
{webHooks?.condition?.action_behavior === 'cond' && (
209+
<ConditionalLogic
210+
formFields={formFields}
211+
dataConf={webHooks}
212+
setDataConf={setWebHooks}
213+
/>
214+
)}
215+
</>
213216
)}
217+
{create && (
218+
<button
219+
onClick={() => nextPage()}
220+
className="btn btcd-btn-lg purple sh-sm flx"
221+
type="button">
222+
{__('Next', 'bit-integrations')}
223+
<BackIcn className="ml-1 rev-icn" />
224+
</button>
225+
)}
226+
<Note note={info} />
214227
</>
215228
)}
216-
{create && (
217-
<button
218-
onClick={() => nextPage()}
219-
className="btn btcd-btn-lg purple sh-sm flx"
220-
type="button">
221-
{__('Next', 'bit-integrations')}
222-
<BackIcn className="ml-1 rev-icn" />
223-
</button>
224-
)}
225-
226-
<Note note={info} />
227229
</div>
228230
)
229231
}

frontend-dev/src/pages/ChangelogToggle.jsx

Lines changed: 17 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export default function ChangelogToggle() {
1818

1919
// const source = !btcbi.isPro ? 'bit-integrations' : 'bit-integrations-pro'
2020
// const dealURL = `https://bitapps.pro/new-year-deal/#bit-integrations-pricing`
21-
const releaseDate = '12th March 2025'
21+
const releaseDate = '24th March 2025'
2222

2323
// Changelog items format [{ 'label': '', 'desc': '', 'isPro': true }]
2424
const changeLog = [
@@ -39,13 +39,12 @@ export default function ChangelogToggle() {
3939
headClass: 'new-trigger',
4040
itemClass: 'integration-list',
4141
items: [
42-
{ label: 'Fluent Boards', desc: '3 new events added', isPro: true },
43-
{ label: 'Jetpack CRM', desc: '10 new events added', isPro: true },
44-
{ label: 'Masteriyo LMS', desc: '4 new events added', isPro: true },
45-
{ label: 'MemberPress Courses', desc: '2 new events added', isPro: true },
46-
{ label: 'Modern Events Calendar', desc: '4 new events added', isPro: true },
47-
{ label: 'Paymattic', desc: '1 new events added', isPro: true },
48-
{ label: 'ProfileGrid', desc: '12 new events added', isPro: true }
42+
{ label: 'myCred', desc: '5 new events added', isPro: true },
43+
{ label: 'SureFeedback', desc: '2 new events added', isPro: true },
44+
{ label: 'WP All Import', desc: '3 new events added', isPro: true },
45+
{ label: 'WPLMS', desc: '1 new events added', isPro: true },
46+
{ label: 'WPLoyalty', desc: '1 new events added', isPro: true },
47+
{ label: 'WP-Polls', desc: '1 new events added', isPro: true }
4948
]
5049
},
5150
{
@@ -66,14 +65,19 @@ export default function ChangelogToggle() {
6665
itemClass: 'fixes-list',
6766
items: [
6867
{
69-
label: 'SureCart',
70-
desc: 'Resolved an issue where order cancellation wasn’t executing correctly on specific products.',
68+
label: 'Webhook (Action)',
69+
desc: 'Fixed an issue where the Info Page was showing blank.',
70+
isPro: false
71+
},
72+
{
73+
label: 'Fluent Community',
74+
desc: 'Resolved the "invalid argument" issue.',
7175
isPro: true
7276
},
7377
{
74-
label: 'Mail',
75-
desc: 'Fixed a glitch in the trigger integration component when editing existing integrations.',
76-
isPro: false
78+
label: 'Voxel (Trigger)',
79+
desc: 'Fixed the issue where hooks were incorrectly listed.',
80+
isPro: true
7781
}
7882
]
7983
}
94.4 KB
Loading
34.1 KB
Loading
8.11 KB
Loading
20.8 KB
Loading
23 KB
Loading
672 Bytes
Loading

0 commit comments

Comments
 (0)