Skip to content
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

Feature: Add breadcrumbs to association pages #3082

Merged
merged 11 commits into from
Aug 6, 2024

Conversation

binarygit
Copy link
Contributor

@binarygit binarygit commented Aug 1, 2024

When users open "attachment" pages, like the model for attaching a team member, as standalone pages we need to display breadcrumbs. This PR adds those breadcrumbs to such pages.

Description

Fixes #3062

Checklist:

  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • I have added tests that prove my fix is effective or that my feature works

Screenshots & recording

When navigating to the team_members page from Teams:
image

When navigating to the teams page from Users:
image

Manual review steps

  1. Step 1
  2. Step 2

Manual reviewer: please leave a comment with output from the test if that's the case.

Copy link

codeclimate bot commented Aug 1, 2024

Code Climate has analyzed commit 1496282 and detected 1 issue on this pull request.

Here's the issue category breakdown:

Category Count
Complexity 1

View more on Code Climate.

@binarygit binarygit force-pushed the add-breadcrumbs-to-assoc-pages branch from 1277b1c to 958f253 Compare August 1, 2024 19:51
@binarygit binarygit marked this pull request as ready for review August 2, 2024 06:12
@binarygit binarygit force-pushed the add-breadcrumbs-to-assoc-pages branch from 958f253 to a63d924 Compare August 2, 2024 06:15
app/controllers/avo/base_controller.rb Outdated Show resolved Hide resolved
spec/features/avo/breadcrumbs_spec.rb Outdated Show resolved Hide resolved
spec/features/avo/breadcrumbs_spec.rb Outdated Show resolved Hide resolved
@binarygit binarygit force-pushed the add-breadcrumbs-to-assoc-pages branch from 7f1ef79 to 1bb8798 Compare August 2, 2024 09:30
@binarygit binarygit requested review from Paul-Bob and removed request for Paul-Bob August 2, 2024 09:31
Copy link
Contributor

@Paul-Bob Paul-Bob left a comment

Choose a reason for hiding this comment

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

Association tables are broken when loading a team page

Also lets ensure tests are passing

@binarygit binarygit requested a review from Paul-Bob August 6, 2024 06:30
Copy link
Collaborator

@adrianthedev adrianthedev left a comment

Choose a reason for hiding this comment

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

Let's undo the @turbo_frame and remove html_req_for_association_page?

@Paul-Bob Paul-Bob merged commit 03bd724 into main Aug 6, 2024
21 of 22 checks passed
@Paul-Bob Paul-Bob deleted the add-breadcrumbs-to-assoc-pages branch August 6, 2024 08:41
Copy link
Contributor

github-actions bot commented Aug 6, 2024

This PR has been merged into main. The functionality will be available in the next release.

Please check the release guide for more information.

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

Successfully merging this pull request may close these issues.

Show breadcrumbs when viewing a has_many association alone
3 participants