Don
June 17, 2024, 5:44am
1
Hello
On mobile the AI custom prompts seems pretty sensitive to close. When when we use this feature and want to align it to read comfortable the touch action outside the modal on the screen instantly close it. It would be nice to only close with Cancel button. Or might be much better experience on mobile to use it like the topic map or fast edit slides up in a modal.
Thanks
3 Likes
keegan
(Keegan George)
July 10, 2024, 7:08pm
3
Thanks for bringing this up @Don . Great suggestion! I’ve updated it so that the post AI helper appears as a bottom slide up modal on mobile devices.
discourse:main
← discourse:feature-modal-mobile-post-menu
opened 07:00PM - 04 Jul 24 UTC
**This PR makes a few updates for the AI post helper menu.**
To the end-user,… the most notable change is that the AI post helper menu is shown as a bottom modal when invoked on a `mobileView`. This should help resolve issues such as mentioned on [Meta](https://meta.discourse.org/t/custom-prompts-too-easily-close-on-mobile/312322).
On the dev side, there has been some refactoring to help accommodate this:
- `AIHelperOptionsMenu` (now `AiPostHelperTrigger`) now solely responsible for showing <kbd>:sparkles: Ask AI</kbd> trigger button and text highlighting
- New component: `AiPostHelperMenu` will be responsible for showing AI helper options, loading state, and requests.
- The `AiPostHelperMenu` component acts as a regular Ember component on desktop and a `DMenu` component with `modalForMobile: true` on `mobileView`
- Moves AI helper options to a dedicated component (`AiHelperOptionsList`) for easy re-use in both post helper and composer helper.
### Desktop View:
![Screenshot 2024-07-04 at 11 57 12](https://github.com/discourse/discourse-ai/assets/30090424/8f5eea80-01c1-430a-81e2-0d3c6dc4d59e)
### Mobile View:
<img src="https://github.com/discourse/discourse-ai/assets/30090424/34678729-92ea-4411-9276-57e0e28de981" width="300" />
1 Like
keegan
(Keegan George)
Closed
July 11, 2024, 7:09pm
5
This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.