discourse/app/assets/javascripts/admin/addon/templates/components
Joe c85921a548
FEATURE: Adds full screen composer submit button and prompt (#17839)
Context: https://meta.discourse.org/t/still-display-the-reply-create-topic-button-when-using-full-screen-composition/123597/6?u=johani

Right now, we don't show the submit buttons when you enter the full-screen composer. The reasons for that are described in the context link above.

This PR adds the improvements highlighted here: https://meta.discourse.org/t/still-display-the-reply-create-topic-button-when-using-full-screen-composition/123597/12?u=johani

Here's a list of the changes this PR introduces:

1. When you enter full-screen mode, we will now add a prompt that matches the browser fullscreen <kbd>F11</kbd> function. It looks like so

    <img width="500" src="https://user-images.githubusercontent.com/33972521/183529813-71a20167-a661-466c-b9ef-c4d34e231000.png">
    
    The prompt fades away after a couple of seconds.
    
2. This PR adds the submit buttons to the full-screen composer mode. The submit buttons should work like normal if the post has no errors. If the post has errors (title too short, body too short, required categories/tags), then the button will make the composer exit the full-screen mode so that users will see the errors and fix them. The error logic is based on what we currently have; this PR doesn't add any new validation. Here's a video of what that looks like:

    https://meta.discourse.org/t/-/127948/14?u=johani
2022-08-11 14:38:56 +08:00
..
report-filters DEV: Update linting setup and fix issues (#17345) 2022-07-06 10:37:54 +02:00
site-settings FIX: Ensure there is no limit on tag list settings (#17355) 2022-07-06 12:23:23 +01:00
ace-editor.hbs No implicit this codemod (#17235) 2022-07-05 19:41:31 +02:00
admin-backups-logs.hbs No implicit this codemod (#17235) 2022-07-05 19:41:31 +02:00
admin-editable-field.hbs No implicit this codemod (#17235) 2022-07-05 19:41:31 +02:00
admin-form-row.hbs No implicit this codemod (#17235) 2022-07-05 19:41:31 +02:00
admin-nav.hbs
admin-penalty-history.hbs No implicit this codemod (#17235) 2022-07-05 19:41:31 +02:00
admin-report-chart.hbs
admin-report-counters.hbs No implicit this codemod (#17235) 2022-07-05 19:41:31 +02:00
admin-report-counts.hbs No implicit this codemod (#17235) 2022-07-05 19:41:31 +02:00
admin-report-inline-table.hbs No implicit this codemod (#17235) 2022-07-05 19:41:31 +02:00
admin-report-per-day-counts.hbs No implicit this codemod (#17235) 2022-07-05 19:41:31 +02:00
admin-report-stacked-chart.hbs
admin-report-storage-stats.hbs No implicit this codemod (#17235) 2022-07-05 19:41:31 +02:00
admin-report-table-cell.hbs No implicit this codemod (#17235) 2022-07-05 19:41:31 +02:00
admin-report-table-header.hbs No implicit this codemod (#17235) 2022-07-05 19:41:31 +02:00
admin-report-table-row.hbs No implicit this codemod (#17235) 2022-07-05 19:41:31 +02:00
admin-report-table.hbs No implicit this codemod (#17235) 2022-07-05 19:41:31 +02:00
admin-report-trust-level-counts.hbs No implicit this codemod (#17235) 2022-07-05 19:41:31 +02:00
admin-report.hbs No implicit this codemod (#17235) 2022-07-05 19:41:31 +02:00
admin-theme-editor.hbs DEV: Update linting setup and fix issues (#17345) 2022-07-06 10:37:54 +02:00
admin-user-field-item.hbs DEV: Update linting setup and fix issues (#17345) 2022-07-06 10:37:54 +02:00
admin-watched-word.hbs FEATURE: Add support for case-sensitive Watched Words (#17445) 2022-08-02 10:06:03 +02:00
admin-web-hook-event-chooser.hbs DEV: Update linting setup and fix issues (#17345) 2022-07-06 10:37:54 +02:00
admin-web-hook-event.hbs No implicit this codemod (#17235) 2022-07-05 19:41:31 +02:00
admin-web-hook-status.hbs No implicit this codemod (#17235) 2022-07-05 19:41:31 +02:00
composer-fullscreen-prompt.hbs FEATURE: Adds full screen composer submit button and prompt (#17839) 2022-08-11 14:38:56 +08:00
dashboard-new-feature-item.hbs No implicit this codemod (#17235) 2022-07-05 19:41:31 +02:00
dashboard-new-features.hbs No implicit this codemod (#17235) 2022-07-05 19:41:31 +02:00
dashboard-problems.hbs No implicit this codemod (#17235) 2022-07-05 19:41:31 +02:00
email-styles-editor.hbs No implicit this codemod (#17235) 2022-07-05 19:41:31 +02:00
embeddable-host.hbs DEV: Update linting setup and fix issues (#17345) 2022-07-06 10:37:54 +02:00
embedding-setting.hbs DEV: Update linting setup and fix issues (#17345) 2022-07-06 10:37:54 +02:00
emoji-value-list.hbs No implicit this codemod (#17235) 2022-07-05 19:41:31 +02:00
flag-user-lists.hbs No implicit this codemod (#17235) 2022-07-05 19:41:31 +02:00
flag-user.hbs No implicit this codemod (#17235) 2022-07-05 19:41:31 +02:00
highlighted-code.hbs No implicit this codemod (#17235) 2022-07-05 19:41:31 +02:00
inline-edit-checkbox.hbs DEV: Update linting setup and fix issues (#17345) 2022-07-06 10:37:54 +02:00
install-theme-item.hbs No implicit this codemod (#17235) 2022-07-05 19:41:31 +02:00
ip-lookup.hbs No implicit this codemod (#17235) 2022-07-05 19:41:31 +02:00
penalty-post-action.hbs No implicit this codemod (#17235) 2022-07-05 19:41:31 +02:00
permalink-form.hbs No implicit this codemod (#17235) 2022-07-05 19:41:31 +02:00
resumable-upload.hbs No implicit this codemod (#17235) 2022-07-05 19:41:31 +02:00
screened-ip-address-form.hbs DEV: Fix submit-on-enter and de-jQ two components (#17484) 2022-07-14 08:59:33 +08:00
secret-value-list.hbs FIX: Inputs using focusout regressed in #17345 (#17389) 2022-07-08 13:00:33 +02:00
setting-validation-message.hbs No implicit this codemod (#17235) 2022-07-05 19:41:31 +02:00
silence-details.hbs No implicit this codemod (#17235) 2022-07-05 19:41:31 +02:00
simple-list.hbs FIX: Inputs using focusout regressed in #17345 (#17389) 2022-07-08 13:00:33 +02:00
site-customization-change-details.hbs No implicit this codemod (#17235) 2022-07-05 19:41:31 +02:00
site-customization-change-field.hbs No implicit this codemod (#17235) 2022-07-05 19:41:31 +02:00
site-setting.hbs DEV: Update linting setup and fix issues (#17345) 2022-07-06 10:37:54 +02:00
site-text-summary.hbs No implicit this codemod (#17235) 2022-07-05 19:41:31 +02:00
staff-actions.hbs DEV: Update linting setup and fix issues (#17345) 2022-07-06 10:37:54 +02:00
suspension-details.hbs No implicit this codemod (#17235) 2022-07-05 19:41:31 +02:00
tags-uploader.hbs No implicit this codemod (#17235) 2022-07-05 19:41:31 +02:00
themes-list-item.hbs No implicit this codemod (#17235) 2022-07-05 19:41:31 +02:00
themes-list.hbs DEV: Update linting setup and fix issues (#17345) 2022-07-06 10:37:54 +02:00
value-list.hbs FIX: Inputs using focusout regressed in #17345 (#17389) 2022-07-08 13:00:33 +02:00
version-checks.hbs No implicit this codemod (#17235) 2022-07-05 19:41:31 +02:00
watched-word-form.hbs FEATURE: Add support for case-sensitive Watched Words (#17445) 2022-08-02 10:06:03 +02:00
watched-word-uploader.hbs No implicit this codemod (#17235) 2022-07-05 19:41:31 +02:00