Skip to content

Merge Feature/persist improvements changes to release/bi-1.8.x#1480

Merged
sachiniSam merged 4 commits intorelease/bi-1.8.xfrom
feature/persist-improvements
Feb 18, 2026
Merged

Merge Feature/persist improvements changes to release/bi-1.8.x#1480
sachiniSam merged 4 commits intorelease/bi-1.8.xfrom
feature/persist-improvements

Conversation

@sachiniSam
Copy link
Contributor

@sachiniSam sachiniSam commented Feb 18, 2026

Purpose

Currently this includes the #1430 fix

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

  • Refactor

    • Simplified connection setup flow with reduced conditional logic.
    • Database connector option is now consistently available.
    • Streamlined search and filtering behavior for connector selection.
  • Style

    • Removed experimental feature badge from the connection interface.
    • Enhanced visual consistency in connector card styling and interactions.

sachiniSam and others added 4 commits February 13, 2026 12:24
Remove Experimental Flag and Card Disable for Single Persist Connection Logic
Sync feature/persist-imporvement branch with release/bi-1.8.x
@coderabbitai
Copy link
Contributor

coderabbitai bot commented Feb 18, 2026

📝 Walkthrough

Walkthrough

Removed experimental feature flag handling, state management, and UI elements from the AddConnectionPopup component. The changes eliminate conditional logic that gated database/API visibility behind experimental flags, simplify ConnectorOptionCard styling, and consolidate the introductory text to a single version. The database option is now consistently available without experimental gating.

Changes

Cohort / File(s) Summary
AddConnectionPopup Simplification
workspaces/ballerina/ballerina-visualizer/src/views/BI/Connection/AddConnectionPopup/index.tsx
Removed experimental feature flag state and all related conditional logic; simplified ConnectorOptionCard styling by eliminating per-state variants; removed ExperimentalBadge component; consolidated IntroText to a single version; removed experimental gating from options availability logic; cleaned up imports (Tooltip removal).

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~22 minutes

Poem

🐰✨ The experimental flags have hopped away,
No more conditionals to cloud the display,
The Database shines bright and clear,
Simpler paths for users here,
UI dances with newfound grace today!

🚥 Pre-merge checks | ✅ 1 | ❌ 2

❌ Failed checks (2 warnings)

Check name Status Explanation Resolution
Description check ⚠️ Warning The PR description is largely incomplete with only the Purpose section minimally filled (referencing PR #1430) and all other required sections containing only template placeholders without substantive content. Complete critical sections: Goals (describe how experimental flag removal solves issues), Approach (explain the simplification rationale), Release note (summarize the feature change), and User stories (clarify business impact). Mark non-applicable sections with 'N/A'.
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.
✅ Passed checks (1 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly indicates this is a merge PR integrating feature/persist-improvements changes into the release branch, which aligns with the commit messages and code changes removing experimental flags.

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

✨ Finishing Touches
  • 📝 Generate docstrings
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch feature/persist-improvements

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.

🧹 Nitpick comments (1)
workspaces/ballerina/ballerina-visualizer/src/views/BI/Connection/AddConnectionPopup/index.tsx (1)

589-618: Drop the now-redundant ConnectorOptionTitleContainer wrapper.

ConnectorOptionTitleContainer (defined at lines 112–118) uses justify-content: space-between, which was meaningful when an ExperimentalBadge sibling sat next to the title. With the badge removed, the wrapper now holds a single child and its layout rule is a no-op. The API-spec card above doesn't use this container at all — aligning the database card to the same pattern removes dead markup.

♻️ 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/index.tsx`
around lines 589 - 618, Remove the now-redundant ConnectorOptionTitleContainer
wrapper from the Database connector card: replace the JSX that wraps
<ConnectorOptionTitle> inside ConnectorOptionTitleContainer so that
<ConnectorOptionTitle> is a direct child of ConnectorOptionContent (matching the
API-spec card pattern), and then remove the ConnectorOptionTitleContainer
styled-component definition (lines ~112–118) if it is no longer used elsewhere
to avoid dead markup and unused styles; ensure spacing and layout remain correct
after the change.
🤖 Prompt for all review comments with AI agents
Verify each finding against the current code and only fix it if needed.

Nitpick comments:
In
`@workspaces/ballerina/ballerina-visualizer/src/views/BI/Connection/AddConnectionPopup/index.tsx`:
- Around line 589-618: Remove the now-redundant ConnectorOptionTitleContainer
wrapper from the Database connector card: replace the JSX that wraps
<ConnectorOptionTitle> inside ConnectorOptionTitleContainer so that
<ConnectorOptionTitle> is a direct child of ConnectorOptionContent (matching the
API-spec card pattern), and then remove the ConnectorOptionTitleContainer
styled-component definition (lines ~112–118) if it is no longer used elsewhere
to avoid dead markup and unused styles; ensure spacing and layout remain correct
after the change.

@sachiniSam sachiniSam merged commit 3e67a82 into release/bi-1.8.x Feb 18, 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.

2 participants