Skip to content

feat: inline admin tab groups#1942

Open
j00bar wants to merge 4 commits into
unfoldadmin:mainfrom
j00bar:tab-groups
Open

feat: inline admin tab groups#1942
j00bar wants to merge 4 commits into
unfoldadmin:mainfrom
j00bar:tab-groups

Conversation

@j00bar
Copy link
Copy Markdown

@j00bar j00bar commented Mar 25, 2026

Fixes #1939

Most of the heavy lifting is done in the tab_groups templatetag function. The logic for deciding the tab element name and tab display title are pulled out of the template and into the templatetag, so that it can be different for tab groups versus solo tabs.

Tests are included. Docs are updated.

@j00bar
Copy link
Copy Markdown
Author

j00bar commented Mar 25, 2026

Thought: Would you rather have tab be str | bool - and if it's a str that's the tab group?

@j00bar j00bar changed the title Implement inline admin tab groups feat: Implement inline admin tab groups Mar 26, 2026
@j00bar j00bar changed the title feat: Implement inline admin tab groups feat: inline admin tab groups Mar 26, 2026
@lukasvinclav
Copy link
Copy Markdown
Contributor

hey, first of all thanks for the PR. Before I test the functionality, how much AI did you used?

@j00bar
Copy link
Copy Markdown
Author

j00bar commented Mar 28, 2026

hey, first of all thanks for the PR. Before I test the functionality, how much AI did you used?

I kinda hate that this is a totally fair question in these weird times but it's a fair question.

The feature was all coded by me. I used AI to help me understand the organization of and patterns in the test code and to create a first draft of tests, but I edited them after to make them more of what I wanted. The docs were edited by me.

j00bar added 2 commits March 28, 2026 17:11
- Changed app.js to make sure the active tab loads, even if it's a tabgroup
- Fixes pagination for inlines on tab groups
- Fixed inline_heading.html to show heading when on a tab grouped tab
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.

Feature request: Inline admin tab groups

2 participants