discourse/app/assets/javascripts/admin/addon
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
..
adapters
components FIX: Allow to add the same watched word with a different case (#17799) 2022-08-05 12:18:17 +02:00
controllers FEATURE: Allow private themes to be partially installed (#17644) 2022-08-10 13:30:18 +03:00
helpers DEV: Remove 'htmlSafe' string prototype extensions (#16766) 2022-05-13 14:58:26 -05:00
mixins DEV: Use includes() instead of indexOf() >= 0 (#17553) 2022-07-19 10:27:40 +08:00
models FEATURE: Add support for case-sensitive Watched Words (#17445) 2022-08-02 10:06:03 +02:00
routes DEV: Update /admin/badges to modern Ember patterns (#17672) 2022-08-03 10:12:17 +01:00
services DEV: Update linting setup and fix issues (#17345) 2022-07-06 10:37:54 +02:00
templates FEATURE: Adds full screen composer submit button and prompt (#17839) 2022-08-11 14:38:56 +08:00