Skip to content

Add missing changes from feature/persistImprovements branch#1502

Merged
sachiniSam merged 5 commits intowso2:release/bi-1.8.xfrom
sachiniSam:persistImprovements
Feb 19, 2026
Merged

Add missing changes from feature/persistImprovements branch#1502
sachiniSam merged 5 commits intowso2:release/bi-1.8.xfrom
sachiniSam:persistImprovements

Conversation

@sachiniSam
Copy link
Contributor

@sachiniSam sachiniSam commented Feb 19, 2026

Purpose

Seems with the devant connection changes, some of the components have been removed and new component has been introduced, with this the changes which was present in feature branch is not present in release branch.
This pr adds those back in.

Also fixes some broken styles on connection form which caused with the devant changes

Goals

Describe the solutions that this feature/fix will introduce to resolve the problems described above

Approach

Describe how you are implementing the solutions. Include an animated GIF or screenshot if the change affects the UI (email documentation@wso2.com to review all UI text). Include a link to a Markdown file or Google doc if the feature write-up is too long to paste here.

UI Component Development

Specify the reason if following are not followed.

  • Added reusable UI components to the ui-toolkit. Follow the intructions when adding the componenent.
  • Use ui-toolkit components wherever possible. Run npm run storybook from the root directory to view current components.
  • Matches with the native VSCode look and feel.

Manage Icons

Specify the reason if following are not followed.

  • Added Icons to the font-wso2-vscode. Follow the instructions.

User stories

Summary of user stories addressed by this change>

Release note

Brief description of the new feature or bug fix as it will appear in the release notes

Documentation

Link(s) to product documentation that addresses the changes of this PR. If no doc impact, enter “N/A” plus brief explanation of why there’s no doc impact

Training

Link to the PR for changes to the training content in https://github.com/wso2/WSO2-Training, if applicable

Certification

Type “Sent” when you have provided new/updated certification questions, plus four answers for each question (correct answer highlighted in bold), based on this change. Certification questions/answers should be sent to certification@wso2.com and NOT pasted in this PR. If there is no impact on certification exams, type “N/A” and explain why.

Marketing

Link to drafts of marketing content that will describe and promote this feature, including product page changes, technical articles, blog posts, videos, etc., if applicable

Automation tests

  • Unit tests

    Code coverage information

  • Integration tests

    Details about the test cases and coverage

Security checks

Samples

Provide high-level details about the samples related to this feature

Related PRs

List any other related PRs

Migrations (if applicable)

Describe migration steps and platforms on which migration has been tested

Test environment

List all JDK versions, operating systems, databases, and browser/versions on which this feature/fix was tested

Learning

Describe the research phase and any blog posts, patterns, libraries, or add-ons you used to solve the problem.

Summary by CodeRabbit

  • Refactoring
    • Simplified the connection setup experience by removing experimental feature indicators and related backend validation checks.
  • Style
    • Removed the experimental badge from the connection UI.
  • UI
    • Adjusted spacing and padding in the connection configuration popup and eliminated an unnecessary wrapper for cleaner rendering.

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Feb 19, 2026

Warning

Rate limit exceeded

@sachiniSam has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 8 minutes and 20 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.

📝 Walkthrough

Walkthrough

Removed experimental feature-flag and persistence checks from the Add Connection popup and deleted the ExperimentalBadge styled component; adjusted layout/padding and removed an extra wrapper in the ConnectionConfigurationPopup render.

Changes

Cohort / File(s) Summary
Add Connection popup
workspaces/ballerina/ballerina-visualizer/src/views/BI/Connection/AddConnectionPopup/AddConnectionPopupContent.tsx, workspaces/ballerina/ballerina-visualizer/src/views/BI/Connection/AddConnectionPopup/styles.ts
Removed Tooltip import, removed state vars experimentalEnabled and hasPersistConnection and their useEffect hooks, eliminated backend queries for experimental/persist checks, and deleted the exported ExperimentalBadge styled component.
Connection configuration layout
workspaces/ballerina/ballerina-visualizer/src/views/BI/Connection/ConnectionConfigurationPopup/index.tsx
Adjusted horizontal margin on ConnectorInfoCard, added horizontal padding to ConfigContent and updated bottom padding behavior, and removed the extra FormWrap wrapper when rendering ConnectionConfigurationForm.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Poem

🐇 I hopped through code with eager paws,
Traced flags and badges, fixed their flaws,
Removed the clutter, cleared the way,
Connections leaner — hip hooray! ✨

🚥 Pre-merge checks | ❌ 3

❌ Failed checks (2 warnings, 1 inconclusive)

Check name Status Explanation Resolution
Description check ⚠️ Warning The PR description fills only the Purpose section with a brief explanation about restoring missing changes, but leaves all other required template sections empty or as placeholders. Complete the Goals, Approach, User stories, Release note, and Documentation sections at minimum to explain what was changed, how it impacts functionality, and relevant testing performed.
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
Title check ❓ Inconclusive The title refers to restoring changes from a feature branch, which is partially related to the changeset, but doesn't clearly specify the actual changes (removing experimental features and fixing form styles). Consider revising to be more specific, such as 'Remove experimental feature flags and fix connection form styles' to better reflect the substantive changes.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Caution

Some comments are outside the diff and can’t be posted inline due to platform limitations.

⚠️ Outside diff range comments (1)
workspaces/ballerina/ballerina-visualizer/src/views/BI/Connection/AddConnectionPopup/AddConnectionPopupContent.tsx (1)

65-66: ⚠️ Potential issue | 🟡 Minor

Remove debug console.log calls before merging to release branch.

Five console.log statements (lines 65–66, 99–100, 124) log raw backend payloads. These are debug artifacts that add noise and may expose internal data structures in production tooling.

🧹 Proposed cleanup
-            console.log(">>> bi connectors", model);
-            console.log(">>> bi filtered connectors", model.categories);
             setConnectors(model.categories);
-            console.log(">>> bi searched connectors", model);
-            console.log(">>> bi filtered connectors", model.categories);
             // When searching, the API might return a flat array...
-            console.log(">>> normalized categories for search", normalizedCategories);
             setConnectors(normalizedCategories);

Also applies to: 99-100, 124-124

🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In
`@workspaces/ballerina/ballerina-visualizer/src/views/BI/Connection/AddConnectionPopup/AddConnectionPopupContent.tsx`
around lines 65 - 66, Remove the debug console.log calls that print raw backend
payloads in the AddConnectionPopupContent component (search for console.log(">>>
bi connectors", model) and the other console.log lines printing
model/categories/payload); either delete these statements or replace them with a
proper debug-level logger behind an environment check (e.g., only log when DEBUG
or NODE_ENV !== 'production') so no raw internal data is printed in production
builds, and ensure removal/replacement is applied to all occurrences noted in
the component (the three console.log sites).
🧹 Nitpick comments (1)
workspaces/ballerina/ballerina-visualizer/src/views/BI/Connection/AddConnectionPopup/AddConnectionPopupContent.tsx (1)

317-319: ConnectorOptionTitleContainer is now a superfluous wrapper.

After removing ExperimentalBadge, ConnectorOptionTitleContainer wraps a single ConnectorOptionTitle child. The API-spec card at line 292 uses ConnectorOptionTitle directly without this container, creating an asymmetry. If ConnectorOptionTitleContainer applies any flex/spacing styles intended for the badge layout, it may produce a subtle visual difference between the two cards.

♻️ Proposed cleanup
-                                    <ConnectorOptionTitleContainer>
-                                        <ConnectorOptionTitle>Connect to a Database</ConnectorOptionTitle>
-                                    </ConnectorOptionTitleContainer>
+                                    <ConnectorOptionTitle>Connect to a Database</ConnectorOptionTitle>
🤖 Prompt for AI Agents
Verify each finding against the current code and only fix it if needed.

In
`@workspaces/ballerina/ballerina-visualizer/src/views/BI/Connection/AddConnectionPopup/AddConnectionPopupContent.tsx`
around lines 317 - 319, Remove the now-superfluous ConnectorOptionTitleContainer
wrapper around ConnectorOptionTitle in AddConnectionPopupContent: replace the
JSX that nests <ConnectorOptionTitle> inside <ConnectorOptionTitleContainer>
with just <ConnectorOptionTitle> (matching the API-spec card usage), and if
ConnectorOptionTitleContainer carried any layout styles needed for badge
spacing, move those necessary styles into ConnectorOptionTitle or the parent
card component so both cards render consistently; delete
ConnectorOptionTitleContainer if it is no longer referenced elsewhere.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Outside diff comments:
In
`@workspaces/ballerina/ballerina-visualizer/src/views/BI/Connection/AddConnectionPopup/AddConnectionPopupContent.tsx`:
- Around line 65-66: Remove the debug console.log calls that print raw backend
payloads in the AddConnectionPopupContent component (search for console.log(">>>
bi connectors", model) and the other console.log lines printing
model/categories/payload); either delete these statements or replace them with a
proper debug-level logger behind an environment check (e.g., only log when DEBUG
or NODE_ENV !== 'production') so no raw internal data is printed in production
builds, and ensure removal/replacement is applied to all occurrences noted in
the component (the three console.log sites).

---

Nitpick comments:
In
`@workspaces/ballerina/ballerina-visualizer/src/views/BI/Connection/AddConnectionPopup/AddConnectionPopupContent.tsx`:
- Around line 317-319: Remove the now-superfluous ConnectorOptionTitleContainer
wrapper around ConnectorOptionTitle in AddConnectionPopupContent: replace the
JSX that nests <ConnectorOptionTitle> inside <ConnectorOptionTitleContainer>
with just <ConnectorOptionTitle> (matching the API-spec card usage), and if
ConnectorOptionTitleContainer carried any layout styles needed for badge
spacing, move those necessary styles into ConnectorOptionTitle or the parent
card component so both cards render consistently; delete
ConnectorOptionTitleContainer if it is no longer referenced elsewhere.

@sachiniSam sachiniSam merged commit af6f0fb into wso2:release/bi-1.8.x Feb 19, 2026
7 checks passed
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.

3 participants