* FEATURE: Topic summarization Summarize topics using the TopicView's "summary" filter. The UI is similar to what we do for chat, but we don't allow the user to select a timeframe. Co-authored-by: Rafael dos Santos Silva <[email protected]>
32 lines
873 B
Handlebars
32 lines
873 B
Handlebars
<DModalBody @title="discourse_ai.summarization.title">
|
|
{{#if @allowTimeframe}}
|
|
<span>{{i18n "discourse_ai.summarization.description"}}</span>
|
|
<ComboBox
|
|
@value={{this.sinceHours}}
|
|
@content={{this.sinceOptions}}
|
|
@onChange={{action this.summarize}}
|
|
@valueProperty="value"
|
|
@class="summarization-since"
|
|
/>
|
|
{{/if}}
|
|
|
|
<div class="channel-summary">
|
|
<ConditionalLoadingSpinner @condition={{this.loading}} />
|
|
|
|
{{#unless this.loading}}
|
|
<Textarea @value={{this.summary}} disabled="true" class="summary-area" />
|
|
{{/unless}}
|
|
</div>
|
|
|
|
</DModalBody>
|
|
|
|
<div class="modal-footer">
|
|
{{#unless @allowTimeframe}}
|
|
<DButton
|
|
@class="btn-primary create"
|
|
@action={{this.summarize}}
|
|
@label="discourse_ai.summarization.summarize"
|
|
/>
|
|
{{/unless}}
|
|
<DModalCancel @close={{route-action "closeModal"}} />
|
|
</div> |