discourse/app
Keegan George d886c55f63
DEV: Reusable post-list component (#30312)
This update adds a  _new_ `<PostList />` component, along with it's child components (`<PostListItem/>` and `<PostListItemDetails />`). This new generic component can be used to show a list of posts.

It can be used like so:
```js
/**
 * A component that renders a list of posts
 *
 * @component PostList
 *
 * @args {Array<Object>} posts - The array of post objects to display
 * @args {Function} fetchMorePosts - A function that fetches more posts. Must return a Promise that resolves to an array of new posts.
 * @args {String} emptyText (optional) - Custom text to display when there are no posts
 * @args {String|Array} additionalItemClasses (optional) - Additional classes to add to each post list item
 * @args {String} titleAriaLabel (optional) - Custom Aria label for the post title
 * 
*/
```
```hbs
<PostList
    @posts={{this.posts}}
    @fetchMorePosts={{this.loadMorePosts}}
    @emptyText={{i18n "custom_identifier.empty"}}
    @additionalItemClasses="custom-class"
 />
```
2024-12-19 09:20:25 -08:00
..
assets DEV: Reusable post-list component (#30312) 2024-12-19 09:20:25 -08:00
controllers SECURITY: When enabled only allow Discourse Connect logins 2024-12-19 13:13:23 -03:00
helpers UX: add color-scheme meta tag to _head (#30245) 2024-12-13 08:10:08 -03:00
jobs FIX: Redo Sidekiq monitoring to restart stuck sidekiq processes (#30198) 2024-12-18 12:48:50 +08:00
mailers UX: Use a dropdown for SSL mode for group SMTP (#27932) 2024-07-18 10:33:14 +10:00
models FEATURE: settings tab for permalinks (#30192) 2024-12-19 10:40:34 +11:00
serializers SECURITY: Moderators cannot see user emails. 2024-12-19 13:13:18 -03:00
services FEATURE: Add an option to block IPs and emails to bulk user delete (#29993) 2024-12-09 14:25:31 +03:00
views UX: add color-scheme meta tag to _head (#30245) 2024-12-13 08:10:08 -03:00