Skip to content

feat: migrate ABViewForm to plugin architecture#701

Open
Joshua-ChiangMai wants to merge 1 commit intomasterfrom
jb/testPluginForm_clean
Open

feat: migrate ABViewForm to plugin architecture#701
Joshua-ChiangMai wants to merge 1 commit intomasterfrom
jb/testPluginForm_clean

Conversation

@Joshua-ChiangMai
Copy link

migrate ABViewForm to plugin architecture

@Joshua-ChiangMai Joshua-ChiangMai added the patch Tag Pull Requests to trigger a patch version update label Mar 3, 2026
@github-actions
Copy link
Contributor

github-actions bot commented Mar 3, 2026

Lighthouse Performance Report

Metrics





📄Full Report
Note: Above values are an average of 3 reports, only the last report was uploaded.

Copy link
Collaborator

@johnny-hausman johnny-hausman left a comment

Choose a reason for hiding this comment

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

OK, good start.

Now we will need to slowly pull these external files into your plugin.

const ABAbviewformComponent = FNAbviewformComponent({ ABViewComponentPlugin });

const ABRecordRule = require("../../../../rules/ABViewRuleListFormRecordRules");
const ABSubmitRule = require("../../../../rules/ABViewRuleListFormSubmitRules");
Copy link
Collaborator

Choose a reason for hiding this comment

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

As a plugin, our goal is to make sure the plugin has all the code it needs internally or passed in via the APIObject ( meaning: FNAbviewform( APIObject ) ).

Here we are accessing two files that are still embedded in the main AppBuilder Code base. We are going to need to migrate these files INTO your plugin.

That means you will have to pull in ALOT of additional files here. Organize them into a view_form/rules, view_form/rules/ruleActions. like they are in the main code base.

import ABViewFormItem from "../../../views/ABViewFormItem.js";
import ABViewFormCustom from "../../../views/ABViewFormCustom.js";
import ABViewFormTextbox from "../../../views/ABViewFormTextbox.js";
import ABViewFormJson from "../../../views/ABViewFormJson.js";
Copy link
Collaborator

Choose a reason for hiding this comment

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

Like my comment above, we will need to figure out how to embed these files into the Form Plugin.

@johnny-hausman
Copy link
Collaborator

Also, have you ran the tests on your local machine to see what the errors are?

@Joshua-ChiangMai
Copy link
Author

Also, have you ran the tests on your local machine to see what the errors are?

I tested the functionality manually in the web app locally, but I haven’t run the e2e tests yet. I’ll run them today and see what’s causing the failures. Thanks.

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

Labels

patch Tag Pull Requests to trigger a patch version update

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants