Skip to content

DEV: Customization enhancements for the Glimmer Post Stream #32063

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

Merged
merged 5 commits into from
Apr 30, 2025

Conversation

megothss
Copy link
Contributor

@megothss megothss commented Mar 28, 2025

This pull request introduces various enhancements and refactoring to the Glimmer Post Stream codebase, focusing on the integration and usage of PluginOutlet components, improved handling of post attributes, and the introduction of new properties and methods. Key changes include:

  1. PluginOutlet Integration:

    • Added PluginOutlet components across multiple files, such as post.gjs, post/avatar.gjs, and post-stream.js, to allow plugins to extend the functionality of posts, avatars, and metadata more effectively.
    • Introduced postOutletArgs to pass structured arguments, enabling better customization and extensibility for plugins.
    • Added PluginOutlet usage in post/avatar.gjs for avatar-related customizations.
  2. Refactored Post Attributes:

    • Enhanced handling of post attributes by deprecating the includePostAttributes method in favor of addTrackedPostProperties for improved compatibility with the Glimmer Post Stream.
    • Added a new isSmallAction computed property to the Post model to identify small actions or split topics.
  3. Improved Query Parameters:

    • Introduced topicPageQueryParams to manage query parameters for topics more effectively, facilitating smoother updates and interactions in components that won't need to inject the topic controller or the router service to get these parameter values.

- Fixed the outletArgs in the `post-content-cooked-html` outlet
- Added a .isSmallAction into the Post model
@megothss megothss force-pushed the dev/glimmer-post-stream-patch-1 branch from 84a8d60 to 94bf44c Compare April 22, 2025 19:35
@megothss megothss marked this pull request as ready for review April 30, 2025 00:56
Co-authored-by: David Taylor <david@taylorhq.com>
@megothss megothss changed the title DEV: Small fixes for the Glimmer Post Stream DEV: Enhancements for the Glimmer Post Stream Apr 30, 2025
@megothss megothss changed the title DEV: Enhancements for the Glimmer Post Stream DEV: Customization enhancements for the Glimmer Post Stream Apr 30, 2025
@megothss megothss merged commit d4b6f04 into main Apr 30, 2025
19 checks passed
@megothss megothss deleted the dev/glimmer-post-stream-patch-1 branch April 30, 2025 01:24
martin-brennan pushed a commit that referenced this pull request Jun 10, 2025
This commit introduces various enhancements and refactoring to the
Glimmer Post Stream codebase, focusing on the integration and usage of
`PluginOutlet` components, improved handling of post attributes, and the
introduction of new properties and methods. Key changes include:

1. **`PluginOutlet` Integration**:
- Added `PluginOutlet` components across multiple files, such as
`post.gjs`, `post/avatar.gjs`, and `post-stream.js`, to allow plugins to
extend the functionality of posts, avatars, and metadata more
effectively.
- Introduced `postOutletArgs` to pass structured arguments, enabling
better customization and extensibility for plugins.
- Added PluginOutlet usage in `post/avatar.gjs` for avatar-related
customizations.

2. **Refactored Post Attributes**:
- Enhanced handling of post attributes by deprecating the
`includePostAttributes` method in favor of `addTrackedPostProperties`
for improved compatibility with the Glimmer Post Stream.
- Added a new `isSmallAction` computed property to the `Post` model to
identify small actions or split topics.

3. **Improved Query Parameters**:
- Introduced `topicPageQueryParams` to manage query parameters for
topics more effectively, facilitating smoother updates and interactions
in components that won't need to inject the topic controller or the
router service to get these parameter values.

---------

Co-authored-by: David Taylor <david@taylorhq.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants