This repository has been archived on 2023-03-18. You can view files and clone it, but cannot push or open issues or pull requests.
osr-discourse-src/app/assets/javascripts/admin/addon/templates
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
..
admin-badges DEV: Update /admin/badges to modern Ember patterns (#17672) 2022-08-03 10:12:17 +01:00
components FEATURE: Adds full screen composer submit button and prompt (#17839) 2022-08-11 14:38:56 +08:00
logs DEV: Update linting setup and fix issues (#17345) 2022-07-06 10:37:54 +02:00
modal FEATURE: Allow private themes to be partially installed (#17644) 2022-08-10 13:30:18 +03:00
admin-badges.hbs DEV: Update /admin/badges to modern Ember patterns (#17672) 2022-08-03 10:12:17 +01:00
admin.hbs No implicit this codemod (#17235) 2022-07-05 19:41:31 +02:00
api-keys-index.hbs No implicit this codemod (#17235) 2022-07-05 19:41:31 +02:00
api-keys-new.hbs DEV: Update linting setup and fix issues (#17345) 2022-07-06 10:37:54 +02:00
api-keys-show.hbs DEV: Update linting setup and fix issues (#17345) 2022-07-06 10:37:54 +02:00
api.hbs DEV: Run angle-brackets codemod (#17286) 2022-06-30 12:30:50 +02:00
backups-index.hbs No implicit this codemod (#17235) 2022-07-05 19:41:31 +02:00
backups-logs.hbs No implicit this codemod (#17235) 2022-07-05 19:41:31 +02:00
backups.hbs No implicit this codemod (#17235) 2022-07-05 19:41:31 +02:00
customize-colors-index.hbs REFACTOR: Support bundling our admin section as an ember addon 2020-09-22 15:14:29 -04:00
customize-colors-show.hbs No implicit this codemod (#17235) 2022-07-05 19:41:31 +02:00
customize-colors.hbs No implicit this codemod (#17235) 2022-07-05 19:41:31 +02:00
customize-email-style-edit.hbs No implicit this codemod (#17235) 2022-07-05 19:41:31 +02:00
customize-email-style.hbs REFACTOR: Support bundling our admin section as an ember addon 2020-09-22 15:14:29 -04:00
customize-email-templates-edit.hbs No implicit this codemod (#17235) 2022-07-05 19:41:31 +02:00
customize-email-templates.hbs REFACTOR: Support bundling our admin section as an ember addon 2020-09-22 15:14:29 -04:00
customize-robots-txt.hbs No implicit this codemod (#17235) 2022-07-05 19:41:31 +02:00
customize-themes-edit.hbs No implicit this codemod (#17235) 2022-07-05 19:41:31 +02:00
customize-themes-index.hbs No implicit this codemod (#17235) 2022-07-05 19:41:31 +02:00
customize-themes-show.hbs FEATURE: Allow private themes to be partially installed (#17644) 2022-08-10 13:30:18 +03:00
customize-themes.hbs No implicit this codemod (#17235) 2022-07-05 19:41:31 +02:00
customize.hbs No implicit this codemod (#17235) 2022-07-05 19:41:31 +02:00
dashboard_general.hbs No implicit this codemod (#17235) 2022-07-05 19:41:31 +02:00
dashboard_moderation.hbs No implicit this codemod (#17235) 2022-07-05 19:41:31 +02:00
dashboard_reports.hbs DEV: Update linting setup and fix issues (#17345) 2022-07-06 10:37:54 +02:00
dashboard_security.hbs No implicit this codemod (#17235) 2022-07-05 19:41:31 +02:00
dashboard.hbs No implicit this codemod (#17235) 2022-07-05 19:41:31 +02:00
email-advanced-test.hbs DEV: Update linting setup and fix issues (#17345) 2022-07-06 10:37:54 +02:00
email-bounced.hbs No implicit this codemod (#17235) 2022-07-05 19:41:31 +02:00
email-index.hbs No implicit this codemod (#17235) 2022-07-05 19:41:31 +02:00
email-preview-digest.hbs No implicit this codemod (#17235) 2022-07-05 19:41:31 +02:00
email-received.hbs No implicit this codemod (#17235) 2022-07-05 19:41:31 +02:00
email-rejected.hbs No implicit this codemod (#17235) 2022-07-05 19:41:31 +02:00
email-sent.hbs FEATURE: Show SMTP response on admin email sent list and rearrange columns (#17143) 2022-08-03 08:11:54 +10:00
email-skipped.hbs No implicit this codemod (#17235) 2022-07-05 19:41:31 +02:00
email.hbs DEV: Run angle-brackets codemod (#17286) 2022-06-30 12:30:50 +02:00
embedding.hbs No implicit this codemod (#17235) 2022-07-05 19:41:31 +02:00
emojis.hbs No implicit this codemod (#17235) 2022-07-05 19:41:31 +02:00
logs.hbs No implicit this codemod (#17235) 2022-07-05 19:41:31 +02:00
permalinks.hbs No implicit this codemod (#17235) 2022-07-05 19:41:31 +02:00
plugins-index.hbs No implicit this codemod (#17235) 2022-07-05 19:41:31 +02:00
plugins.hbs No implicit this codemod (#17235) 2022-07-05 19:41:31 +02:00
reports-show.hbs No implicit this codemod (#17235) 2022-07-05 19:41:31 +02:00
search-logs-index.hbs No implicit this codemod (#17235) 2022-07-05 19:41:31 +02:00
search-logs-term.hbs No implicit this codemod (#17235) 2022-07-05 19:41:31 +02:00
site-settings-category.hbs No implicit this codemod (#17235) 2022-07-05 19:41:31 +02:00
site-settings.hbs No implicit this codemod (#17235) 2022-07-05 19:41:31 +02:00
site-text-edit.hbs No implicit this codemod (#17235) 2022-07-05 19:41:31 +02:00
site-text-index.hbs DEV: Update linting setup and fix issues (#17345) 2022-07-06 10:37:54 +02:00
site-text.hbs REFACTOR: Support bundling our admin section as an ember addon 2020-09-22 15:14:29 -04:00
user-badges.hbs No implicit this codemod (#17235) 2022-07-05 19:41:31 +02:00
user-fields.hbs No implicit this codemod (#17235) 2022-07-05 19:41:31 +02:00
user-index.hbs No implicit this codemod (#17235) 2022-07-05 19:41:31 +02:00
user-tl3-requirements.hbs No implicit this codemod (#17235) 2022-07-05 19:41:31 +02:00
user.hbs DEV: Run angle-brackets codemod (#17286) 2022-06-30 12:30:50 +02:00
users-list-show.hbs No implicit this codemod (#17235) 2022-07-05 19:41:31 +02:00
users-list.hbs UX: remove .btn-default from admin btn (#17515) 2022-07-15 22:09:48 +02:00
watched-words-action.hbs DEV: Update linting setup and fix issues (#17345) 2022-07-06 10:37:54 +02:00
watched-words.hbs No implicit this codemod (#17235) 2022-07-05 19:41:31 +02:00
web-hooks-show-events.hbs DEV: Update linting setup and fix issues (#17345) 2022-07-06 10:37:54 +02:00
web-hooks-show.hbs DEV: Update linting setup and fix issues (#17345) 2022-07-06 10:37:54 +02:00
web-hooks.hbs DEV: Update linting setup and fix issues (#17345) 2022-07-06 10:37:54 +02:00