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

Add nodes to page dialog #2699

Merged

Conversation

sascha-karnatz
Copy link
Contributor

@sascha-karnatz sascha-karnatz commented Jan 19, 2024

What is this pull request for?

Add a new menu tab to page configuration dialog. This is a shortcut to create a menu entry for the current page. It is also the first try to provide Turbo Frames inside of Alchemy, which is coming with a few challenges (flash messages, and updated tab headline)

Screenshots

Aufnahme 2024-02-01 at 11 19 08@2x

Checklist

  • I have followed Pull Request guidelines
  • I have added a detailed description into each commit message
  • I have added tests to cover this change

@sascha-karnatz sascha-karnatz marked this pull request as draft January 19, 2024 18:01
@sascha-karnatz sascha-karnatz force-pushed the node-tab-in-page-configuration branch 2 times, most recently from 381a01e to 535ab2d Compare January 19, 2024 18:36
@tvdeyen tvdeyen added this to the 7.2 milestone Jan 24, 2024
@sascha-karnatz sascha-karnatz force-pushed the node-tab-in-page-configuration branch 8 times, most recently from c20465c to 7e4a48e Compare February 1, 2024 10:18
@sascha-karnatz sascha-karnatz marked this pull request as ready for review February 1, 2024 10:18
@sascha-karnatz sascha-karnatz changed the title Draft: Add nodes to page dialog Add nodes to page dialog Feb 1, 2024
@sascha-karnatz sascha-karnatz requested a review from a team February 1, 2024 10:19
@sascha-karnatz sascha-karnatz force-pushed the node-tab-in-page-configuration branch from 7e4a48e to 8782d70 Compare February 1, 2024 10:33
sascha-karnatz added a commit to sascha-karnatz/alchemy_i18n that referenced this pull request Feb 1, 2024
Add German translations for menu tab in page configuration.

Ref: AlchemyCMS/alchemy_cms#2699
sascha-karnatz added a commit to sascha-karnatz/alchemy_i18n that referenced this pull request Feb 1, 2024
Add German translations for menu tab in page configuration.

Ref: AlchemyCMS/alchemy_cms#2699
@sascha-karnatz sascha-karnatz force-pushed the node-tab-in-page-configuration branch from 8782d70 to a82063b Compare February 1, 2024 10:44
Copy link
Member

@tvdeyen tvdeyen left a comment

Choose a reason for hiding this comment

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

A very nice feature! Some small nits

app/views/alchemy/admin/nodes/_page_nodes.erb Outdated Show resolved Hide resolved
app/views/alchemy/admin/nodes/_page_nodes.erb Outdated Show resolved Hide resolved
spec/features/admin/nodes_management_spec.rb Outdated Show resolved Hide resolved
spec/features/admin/nodes_management_spec.rb Outdated Show resolved Hide resolved
@sascha-karnatz sascha-karnatz force-pushed the node-tab-in-page-configuration branch from a82063b to 378d7e7 Compare February 1, 2024 14:17
@sascha-karnatz sascha-karnatz force-pushed the node-tab-in-page-configuration branch from 378d7e7 to f582999 Compare February 5, 2024 11:08
Add a new menu tab to page configuration dialog. This is a shortcut to create a menu entry for the current page. It is also the first try to provide Turbo Frames inside of Alchemy, which is coming with a few challenges (flash messages, and updated tab headline).
@sascha-karnatz sascha-karnatz force-pushed the node-tab-in-page-configuration branch from f582999 to 061afe6 Compare February 5, 2024 12:16
Copy link
Member

@tvdeyen tvdeyen left a comment

Choose a reason for hiding this comment

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

Nice work 👍🏻

I like how we start adopting the great features of Turbo more and more

spec/controllers/alchemy/admin/nodes_controller_spec.rb Outdated Show resolved Hide resolved
@tvdeyen tvdeyen enabled auto-merge February 5, 2024 12:19
<%= f.hidden_field :page_id, value: @page.id %>
<%= f.hidden_field :language_id, value: @page.language_id %>

<%= render Alchemy::Admin::NodeSelect.new(nil, url: alchemy.api_nodes_path(language_id: @page.language_id, include: :ancestors)) do %>
Copy link

Choose a reason for hiding this comment

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

Render path contains parameter value

@tvdeyen tvdeyen merged commit 5d4c6d5 into AlchemyCMS:main Feb 5, 2024
33 of 34 checks passed
@sascha-karnatz sascha-karnatz deleted the node-tab-in-page-configuration branch February 27, 2024 08:48
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