In Admin Settings -> Agents & Actions -> Actions, trying to enter a new number via keyboard in "Chat max documents" and "Workflow max documents", since the "min"="2", trying to enter any value that starts with a 1 defaults the starting number to 2, so typing "11" is automatically changed to "21". I know it's possible to change the 2 to a 1 after typing in the second number, or using the slider, but I can see problems if an admin is moving quickly through the settings and doesn't realize the setting they entered was automatically changed by the HTML on entry to a value that's roughly double the intended one.
|
<input type="range" class="form-range document-action-capability-range" id="document_action_analyze_chat_max_documents_range" min="2" max="300" step="1" value="{{ analyze_capability.chat_max_documents }}" data-range-sync="document_action_analyze_chat_max_documents" data-range-display="document_action_analyze_chat_max_documents_value" /> |
|
</div> |
|
<div class="col-lg-4"> |
|
<input type="number" class="form-control" id="document_action_analyze_chat_max_documents" name="document_action_analyze_chat_max_documents" min="2" max="300" value="{{ analyze_capability.chat_max_documents }}" /> |
|
<input type="range" class="form-range document-action-capability-range" id="document_action_analyze_workflow_max_documents_range" min="2" max="1000" step="1" value="{{ analyze_capability.workflow_max_documents }}" data-range-sync="document_action_analyze_workflow_max_documents" data-range-display="document_action_analyze_workflow_max_documents_value" /> |
|
</div> |
|
<div class="col-lg-4"> |
|
<input type="number" class="form-control" id="document_action_analyze_workflow_max_documents" name="document_action_analyze_workflow_max_documents" min="2" max="1000" value="{{ analyze_capability.workflow_max_documents }}" /> |
I typed "11" in all 4 of the boxes below:

In Admin Settings -> Agents & Actions -> Actions, trying to enter a new number via keyboard in "Chat max documents" and "Workflow max documents", since the "min"="2", trying to enter any value that starts with a 1 defaults the starting number to 2, so typing "11" is automatically changed to "21". I know it's possible to change the 2 to a 1 after typing in the second number, or using the slider, but I can see problems if an admin is moving quickly through the settings and doesn't realize the setting they entered was automatically changed by the HTML on entry to a value that's roughly double the intended one.
simplechat/application/single_app/templates/admin/_panes/actions.html
Lines 33 to 36 in 65e5f6a
simplechat/application/single_app/templates/admin/_panes/actions.html
Lines 51 to 54 in 65e5f6a
I typed "11" in all 4 of the boxes below:
