Skip to content

Remove Tabs component #8762

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 22, 2025
Merged

Remove Tabs component #8762

merged 1 commit into from
Jul 22, 2025

Conversation

javierjulio
Copy link
Member

The intention was always to remove the Tabs component in v4. With this removal, that means the last component that is not directly used by ActiveAdmin is Panel which will remain as is with no other enhancements. In another major release we may remove Panel. The objective is for users to own their own components, whether directly or from another third party library and to free up the name from the Arbre namespace so it can be used without conflict.

Copy link

codecov bot commented Jul 22, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 99.08%. Comparing base (10a06a5) to head (3b9dddb).
Report is 1 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #8762      +/-   ##
==========================================
- Coverage   99.11%   99.08%   -0.04%     
==========================================
  Files         141      139       -2     
  Lines        4074     4043      -31     
==========================================
- Hits         4038     4006      -32     
- Misses         36       37       +1     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

The intention was to always remove this component as part of v4. The last component that is not directly used by ActiveAdmin is Panel which will remain as is with no other enhancements. In another major release we may remove Panel. The objective is for users to own their own components, whether directly or from another third party library. This also frees up the global builder method namespace in Arbre for tabs without conflict.
@javierjulio javierjulio force-pushed the remove-tabs-component branch from e9ef911 to 3b9dddb Compare July 22, 2025 22:35
@javierjulio javierjulio merged commit 0f03a91 into master Jul 22, 2025
26 checks passed
@javierjulio javierjulio deleted the remove-tabs-component branch July 22, 2025 23:26
@henrikbjorn
Copy link

@javierjulio have the mission or goal of activeadmin changed?

I have always seen AA being an easy way to create crud like admin pages (hence the name) with a lot of flexibility for those admin "needs". Like a dashboard for the frontpage, or resource overviews with sidebars and tabs etc.

Is that not the goal anymore? With more stuff moving to "bring your own".

@javierjulio
Copy link
Member Author

@henrikbjorn I don’t think so but other things have changed and improved since this library was created 15 years ago. There are better alternatives than what we can provide or should focus on. I think the Arbre builder namespace should be open for your own components and even for some HTML elements that were broken by AA like header and footer. That has been my goal with v4.

@henrikbjorn
Copy link

@henrikbjorn I don’t think so but other things have changed and improved since this library was created 15 years ago. There are better alternatives than what we can provide or should focus on. I think the Arbre builder namespace should be open for your own components and even for some HTML elements that were broken by AA like header and footer. That has been my goal with v4.

Then I don't get the removal of those instead of finding a way to introduce override of those components etc.

To add tabs into ActiveAdmin it now requires use to write a custom component, stimulus controller etc. for it (I assume)?

@javierjulio
Copy link
Member Author

@henrikbjorn that is correct. There are CSS only approaches too. This was always the intention with v4 as there are better alternatives than what was available 15 years ago. Sorry, that won’t change here. Thank you.

tagliala added a commit that referenced this pull request Jul 24, 2025
Explicitly mention breaking changes in the upgrading guide

Ref: #8762, #8727
tagliala added a commit that referenced this pull request Jul 24, 2025
Explicitly mention breaking changes in the upgrading guide

Ref: #8762, #8727
@jaynetics
Copy link
Contributor

if anyone has an alternative that is convenient to use, i'd be interested ...

@henrikbjorn
Copy link

if anyone has an alternative that is convenient to use, i'd be interested ...

To ActiveAdmin or Tabs ?

@jaynetics
Copy link
Contributor

Tabs 😅

We use them heavily. For now, just pasting the component back in, with inlined tailwind classes like so, works fine. I guess it would only break if the surrounding styles were changed significantly or flowbite was removed, neither of which seem super likely?

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

Successfully merging this pull request may close these issues.

3 participants