-
-
Notifications
You must be signed in to change notification settings - Fork 5
SF-3742 Prompt user to select formatting options before generating draft #3737
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -36,4 +36,8 @@ export class DraftOptionsService { | |||||||||||||||
| ? new Date(entry.additionalInfo.dateFinished) > FORMATTING_OPTIONS_SUPPORTED_DATE | ||||||||||||||||
| : false; | ||||||||||||||||
| } | ||||||||||||||||
|
|
||||||||||||||||
| get formattingOptionsPath(): string[] { | ||||||||||||||||
| return ['/projects', this.activatedProjectService.projectId!, 'draft-generation', 'format']; | ||||||||||||||||
| } | ||||||||||||||||
|
devin-ai-integration[bot] marked this conversation as resolved.
Comment on lines
+40
to
+42
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🟡 Non-null assertion on
Suggested change
Was this helpful? React with 👍 or 👎 to provide feedback. |
||||||||||||||||
| } | ||||||||||||||||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -169,6 +169,9 @@ | |
| "successfully_applied_all_chapters": "Successfully applied all chapters to {{ bookName }}" | ||
| }, | ||
| "draft_generation": { | ||
| "choose_formatting_options": "Choose formatting options to continue", | ||
| "choose_formatting_options_before_new_draft": "Before you can create a new draft, you need to choose formatting options.", | ||
| "formatting_options": "Formatting options", | ||
| "back_translation_requirement": "Back translation drafts can only be generated into the roughly 200 [link:supportedLanguagesUrl]supported languages[/link].", | ||
| "cancel_generation_button": "Cancel", | ||
| "configure_sources": "Configure sources", | ||
|
|
@@ -299,7 +302,7 @@ | |
| "options_for_paragraph_breaks_and_quotation_marks": "Options for paragraph breaks and quotation marks to make editing easier", | ||
| "requested_at": "Requested {{ requestedAtTime }}.", | ||
| "requested_by": "Requested by {{ requestedByUserName }} at {{ requestedAtTime }}.", | ||
| "select_formatting_options": "The draft has been created, and there are new formatting options to select. You will only need to do this once, but you can change them whenever you wish.", | ||
| "select_formatting_options": "The draft has been created. Choose formatting options to continue.", | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. 🚩 Localization key 'select_formatting_options' changed text significantly without new key The string for Was this helpful? React with 👍 or 👎 to provide feedback. |
||
| "show_model_training_configuration": "Show model training configuration", | ||
| "training_books": "Training books", | ||
| "training_data_files_used": "The following data files were used to train the model.", | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🟡 Dialog has no cancel/dismiss button, only an action button
The formatting options dialog in
generateDraftClicked(draft-generation.component.ts:346-357) is created with only a single option (value: true, label "Formatting options"). Unlike every other dialog created viaopenGenericDialogin this codebase (e.g., the confirm dialogs atdraft-generation.component.ts:362-373anddraft-generation.component.ts:385-396), this dialog provides no explicit cancel/close button. While the user can dismiss the dialog by pressing Escape or clicking the backdrop, this is not discoverable and inconsistent with the established UX pattern of always providing a cancel/close option in generic dialogs.Was this helpful? React with 👍 or 👎 to provide feedback.