Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FEATURE: chat integration and usability tweaks #22

Merged
merged 1 commit into from Feb 28, 2024

Conversation

jacobtread
Copy link
Contributor

@jacobtread jacobtread commented Jan 23, 2024

Changes

  • Added integration into the Discourse Chat feature
  • Open meeting links in a new tab rather than redirecting the current
  • Separated templating and javascript (Tooling for .gjs seems not well supported and features like or helpers didn't seem to work with it)
  • Added new default options

This is part of a two part pull request which will likely arrive some time after if you choose to accept these changes. The upcoming pull request adds new features such a seperate header icon for creating meetings and changes to how the settings are layed out. But I thought it best to not include those in this pull request as they might deviated too much from your initial ideas and could slow down the process of reviewing this

Discourse Chat Integration

This changes adds an integration into the Discourse Chat feature adding a button to the chat options for allowing creating meeting links within the chat channels (two variants "dropdown" and "inline" from a new setting):

dropdown inline
image image

The button opens the same window (just with the additional options disabled), since I couldn't seem to find a way to get the chat feature to support the [wrap][/wrap] bbcode without looking into it too much further, so in this case the meeting links are in plain text rather than formatted as buttons:
image
Pressing "Insert" then inserts the meeting link into the current draft message:
image

The above chat integration can be toggled with a setting and has another setting for choosing the position of the button.

Link open in new tab

This also a change, making it so normal meeting links that are not using the iframe option, open in a new tab rather than redirecting the current tab.

Additional configuration

I've also added an additional three new settings related to the iframes:

image

hide iframe buttons: Controls whether the settings for desktop and mobile iframes are shown to user
default mobile iframe: Controls the default value for the mobile iframe setting
default desktop iframe: Controls the default value for the mobile iframe setting

@jacobtread jacobtread marked this pull request as draft January 23, 2024 19:10
@jacobtread jacobtread changed the title FEATURE: chat integration and open link in new window FEATURE: chat integration and usability tweaks Jan 23, 2024
Added integration with Discourse Chat to allow creating a link within the options of a chat window

Open plain meeting links in a new browser tab rather than overwriting the current tab

Added settings for the new chat button integration

Separated template from javascript for better maintainability

Added new settings for choose the default options in regards to iframes
@jjaffeux jjaffeux merged commit fc2885d into discourse:main Feb 28, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants