feat: autosave processing form fields before timeout [WTEL-9474](https://webitel.atlassian.net/browse/WTEL-9474) - #1412
Open
RomanZaritskyi wants to merge 1 commit into
Open
Conversation
dlohvinov
reviewed
Jul 20, 2026
| @@ -0,0 +1,201 @@ | |||
| import { autosaveProcessingForms } from '../processingAutosave.js'; | |||
Contributor
There was a problem hiding this comment.
прошу подивитися налаштування ІДЕ щоб вона при автоімпорті не дописувала js/ts ext
| @@ -1,5 +1,6 @@ | |||
| import { watch } from 'vue'; | |||
| import { WebSocketConnectionState } from '../../../../ui/enums/WebSocketConnectionState.enum.ts'; | |||
| import { autosaveProcessingForms } from '../scripts/processingAutosave.js'; | |||
| context.dispatch('CLEAR_ALL_TASKS'); | ||
| }); | ||
| }, | ||
| SUBSCRIBE_TO_PROCESSING_AUTOSAVE: (context) => { |
Contributor
There was a problem hiding this comment.
мб це краще робити на рівні тої таби, чи щось таке?
мені виглядає стрьомно що тут вигрібається прям все, і по всьому йде та функція, щосекунди
|
|
||
| aliveAttempts.add(attempt.id); | ||
|
|
||
| if (!attempt._processing?.autosave) return; |
Contributor
There was a problem hiding this comment.
оцей _processing підказує наче це якесь приватне проперті на яке краще не зашиватись)
Contributor
Author
There was a problem hiding this comment.
Дійсно, я не додивився , я знайшов подібні патерни у воркспейсі, тому використав, але у webitel-sdk бачу що якщо треба щось отримати з _processing то пишеться гетер.
Contributor
There was a problem hiding this comment.
мб ts файл зробити, типізувати?
| @@ -0,0 +1,30 @@ | |||
| import { formattingFormBeforeSend } from '../../../../ui/modules/info-section/modules/processing/script/formattingFormBeforeSend.js'; | |||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.