Skip to content

Conversation

@TarunvirBains
Copy link
Contributor

fix parent admin form not behaving like an admin form (eg log out button context missing)

@j-antunes
Copy link
Contributor

Hi! Thanks for opening this PR. Could you please elaborate a bit more? What was the issue you where seeing? Is there any unit test you could add?

Thank you!

@AdamDonna
Copy link
Contributor

@TarunvirBains

  1. Please update the description of this PR to give a reviewer enough context to make an educated review
  2. Please add unit tests to confirm the behaviour doesn't introduce regressions

@bckohan
Copy link
Contributor

bckohan commented Dec 2, 2025

The issue described here is that the breadcrumbs, logout and admin nav disappear in the polymorphic model type selection form. I'm going to accept this PR, but I need to add tests and rebase.

Without fix:
Screenshot 2025-12-02 at 11 18 25 AM

With fix:

Screenshot 2025-12-02 at 11 17 59 AM

@bckohan bckohan force-pushed the parentadmin-behave-as-admin branch from 1d62780 to 179bc3d Compare December 2, 2025 19:22
@bckohan bckohan self-assigned this Dec 2, 2025
@bckohan bckohan changed the title Update parentadmin.py Show full admin context (breadcrumb and logout nav) in model type selection admin form Dec 2, 2025
@bckohan bckohan force-pushed the parentadmin-behave-as-admin branch 2 times, most recently from a66d42a to f8f1b63 Compare December 2, 2025 20:44
@bckohan bckohan self-requested a review December 2, 2025 20:45
Copy link
Contributor

@bckohan bckohan left a comment

Choose a reason for hiding this comment

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

Tests have been added.

- fix parent admin form not behaving like an admin form (eg log out button context missing)
- add test for model type add form correctly embedding in the rest of the admin
- separate playwright admin form tests
- update changelog

Co-authored-by: TarunvirBains <[email protected]>
Co-authored-by: Brian Kohan <[email protected]>
@bckohan bckohan force-pushed the parentadmin-behave-as-admin branch from f8f1b63 to 47323bd Compare December 2, 2025 20:50
@bckohan bckohan merged commit 9399f7d into jazzband:master Dec 2, 2025
41 of 42 checks passed
@codecov
Copy link

codecov bot commented Dec 2, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 74.71%. Comparing base (3d4cacb) to head (47323bd).
⚠️ Report is 2 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #580      +/-   ##
==========================================
+ Coverage   73.97%   74.71%   +0.74%     
==========================================
  Files          21       21              
  Lines        1337     1337              
  Branches      211      211              
==========================================
+ Hits          989      999      +10     
+ Misses        266      261       -5     
+ Partials       82       77       -5     

☔ 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.

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.

4 participants