[1.x] [tags] feat: option to display tags in DiscussionsSearchSource #4055
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Changes proposed in this pull request:
Introduces an option to display the tag label(s) above the discussion title in search results (
DiscussionsSearchSource
). Disabled by default to maintain current behaviour.Reviewers should focus on:
@flarum/core I feel this is something to also include in
2.x
?Screenshot
![search](https://private-user-images.githubusercontent.com/16573496/372830907-39b5585e-d642-4c9c-890c-c17b752579fd.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkxODQzNDAsIm5iZiI6MTczOTE4NDA0MCwicGF0aCI6Ii8xNjU3MzQ5Ni8zNzI4MzA5MDctMzliNTU4NWUtZDY0Mi00YzljLTg5MGMtYzE3Yjc1MjU3OWZkLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTAlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjEwVDEwNDA0MFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTYzZTA4YThlN2YxNjU2ZGVlZjQ2YTcyYjM4NzZkMWE0ZTAwYmM4NzlmYWJkNWNjZjdhMTM0OTA0NWY4ZmY4ZjImWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.jnfbRAq_RMKNnVVbeXVEMZa0smC7mgkAbylju-LUN6c)
Search:
Tags settings:
![tags settings](https://private-user-images.githubusercontent.com/16573496/372830380-14c20d72-8638-479d-9881-0ae9e7b18b35.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkxODQzNDAsIm5iZiI6MTczOTE4NDA0MCwicGF0aCI6Ii8xNjU3MzQ5Ni8zNzI4MzAzODAtMTRjMjBkNzItODYzOC00NzlkLTk4ODEtMGFlOWU3YjE4YjM1LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNTAyMTAlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjUwMjEwVDEwNDA0MFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTY1YjQxOWRmMDdiYWI3ZDlmODAzMTFkODFjODA1YTkyYmJlZWIyYjU4MDBjNzA1MGEzZTBiM2EwOGE4YWI1NDMmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0._UZgrdRzIZo1pSRaCCIV7D83Doc3TEv2DCKKocUMyHc)
QA
Necessity
Confirmed
composer test
).Required changes: