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 admin pages for site-wide handle_info callbacks #210

Merged

Conversation

ddink
Copy link
Contributor

@ddink ddink commented Aug 23, 2024

What will it allow you to do that you can't do today?

These changes will make it possible to administrate the site-wide handle_info callbacks that will be applied to each Beacon page.

Why do you need this feature and how will it benefit other users?

This feature will give users the ability to handle messages sent by Kernel.send/2 . Commonly, this can be used to do things like put flash messages, navigate to another LiveView, work with streams, etc. in response to messages sent by the application.

Are there any drawbacks to this feature?

This feature is not designed to create page-specific handle_info callbacks—just site-wide callbacks that are useable on all of a site’s pages. I’m happy to add a page-specific handle_info callbacks feature at a later point, though.

Changes to handle_info callbacks through the admin require a recompile before they are useable. They are not immediately useable upon a refresh of a Beacon page the way that an update to a Beacon page is immediately viewable.

@ddink ddink changed the title add admin pages for site-wide handle_info callbacks Feature: add admin pages for site-wide handle_info callbacks Aug 23, 2024
@ddink ddink force-pushed the site_wide_handle_info_callbacks_feature branch from efbf7f3 to 15ffa88 Compare August 28, 2024 19:43
@leandrocp leandrocp self-requested a review September 9, 2024 14:14
Copy link
Contributor

@leandrocp leandrocp left a comment

Choose a reason for hiding this comment

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

Thanks! Will be merged soon along with BeaconCMS/beacon#578

@leandrocp
Copy link
Contributor

@ddink this PR is scheduled in the v0.1.0 release, we are just finishing some materials, in the mean time feel free to use the main branch if you need it.

Thanks ❤️

@leandrocp leandrocp merged commit 5db43c0 into BeaconCMS:main Sep 23, 2024
2 of 3 checks passed
@leandrocp
Copy link
Contributor

Hey @ddink just release v0.1.0 with these changes https://github.com/BeaconCMS/beacon_live_admin/releases/tag/v0.1.0
Thanks again!

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