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

[FEAT] Configurable character limit on live chat #360

Conversation

ogustavo-pereira
Copy link

Proposed changes

Implementing a new character limit field in the LiveChat Aparence.

Issue(s)

RocketChat#17451

How to test or reproduce

  1. Open Livechat Aparence
  2. Edit Characther Limit input
  3. Save
  4. reload the page and check if the information has been saved

If you want test with Livechat, you will need this feature

Screenshots

image

Types of changes

  • New feature (non-breaking change which adds functionality)

Checklist

  • I have read the CONTRIBUTING doc
  • I have signed the CLA
  • Lint and unit tests pass locally with my changes
  • I have added tests that prove my fix is effective or that my feature works (if applicable)
  • I have added necessary documentation (if applicable)
  • Any dependent changes have been merged and published in downstream modules

Changelog

additional setting in Admin panel for setting a character limit on livechat.

Further comments

graywolf336 and others added 30 commits June 1, 2020 16:04
The payload sent to the release service contains an invalid reference to the tag/version and wasn't working when building develop branch.
* Fix wrong method call on app installation

* Update subscription check to take cancelled state into account
Co-authored-by: Aaron Ogle <geekgonecrazy@users.noreply.github.com>
… does not restore the content into the composer (RocketChat#16332)

Co-authored-by: Danish <danish@kitchen.mshome.net>
Co-authored-by: Rodrigo Nascimento <rodrigoknascimento@gmail.com>
Co-authored-by: Guilherme Gazzo <guilhermegazzo@gmail.com>
…ons (RocketChat#17826)

* return empty object if there is no callback

* Improve department forward restrictions
…ocketChat#17857)

* Delay reporting the import progress to the frontend so it doesn't overwhelm the connection

* Increased time to 250ms
* Fix wrong method call on app installation

* Update subscription check to take cancelled state into account
Co-authored-by: Aaron Ogle <geekgonecrazy@users.noreply.github.com>
…ons (RocketChat#17826)

* return empty object if there is no callback

* Improve department forward restrictions
Copy link

@dlassalle dlassalle left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ran into an issue when testing, can you have a look?
Also if you could cherry pick your two commits instead of the hundreds that our fork differs by, that would be great

@@ -12,6 +12,7 @@ Meteor.methods({
const validSettings = [
'Livechat_title',
'Livechat_title_color',
'Livechat_title_character_limit',

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Im having trouble getting this to save correctly. When I tried debugging the setting below...

		settings.forEach((setting) => {
			rcSettings.updateById(setting._id, setting.value);
                        console.log(`========DEBUG ${ setting._id } ${ setting.value }`.green)
                        console.log(rcSettings.get(setting._id))
		});

i got

I20200722-11:58:45.627(-4)? ========DEBUG Livechat_title Rocket.Chat
I20200722-11:58:45.627(-4)? Rocket.Chat
I20200722-11:58:45.632(-4)? ========DEBUG Livechat_title_color #366bc4
I20200722-11:58:45.632(-4)? #366bc4
I20200722-11:58:45.635(-4)? ========DEBUG Livechat_title_character_limit 13
I20200722-11:58:45.636(-4)? undefined
I20200722-11:58:45.638(-4)? ========DEBUG Livechat_show_agent_info true
I20200722-11:58:45.638(-4)? true
I20200722-11:58:45.640(-4)? ========DEBUG Livechat_show_agent_email true
I20200722-11:58:45.640(-4)? true
I20200722-11:58:45.642(-4)? ========DEBUG Livechat_display_offline_form false
I20200722-11:58:45.642(-4)? false

@@ -16,6 +16,10 @@ <h2>{{_ "Settings"}}</h2>
<label for="color">{{_ "Title_bar_color"}}</label>
<input type="color" class="preview-settings rc-input__element" name="color" id="color" value="{{color}}" />
</div>
<div class="input-line">
<label for="limitTextLength">{{_ "Characther Limit"}}</label>

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
<label for="limitTextLength">{{_ "Characther Limit"}}</label>
<label for="limitTextLength">{{_ "Character Limit"}}</label>

MartinSchoeler and others added 18 commits July 22, 2020 17:22
* Only run the update check when opting to register the server.
Doing it this way enables people to easily disable the update
check just like they can sending data to Rocket.Chat services.

* Add a new setting to enable/disable the update checker

Co-authored-by: Aaron Ogle <geekgonecrazy@users.noreply.github.com>
* Added nickname field, hints for disabled fields

* More missing nicknames
Co-authored-by: Tasso Evangelista <tasso.evangelista@rocket.chat>
* Link push gateway setting to cloud register

* Add migration to disable gateway and alert admins
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.