|
| 1 | +// Copyright (C) 2022-2025 Intel Corporation |
| 2 | +// LIMITED EDGE SOFTWARE DISTRIBUTION LICENSE |
| 3 | + |
| 4 | +import { FUX_NOTIFICATION_KEYS } from '../../../core/user-settings/dtos/user-settings.interface'; |
| 5 | +import { DocsUrl } from '../tutorials/utils'; |
| 6 | + |
| 7 | +interface FuxNotificationData { |
| 8 | + header: string | undefined; |
| 9 | + description: string; |
| 10 | + docUrl: DocsUrl | undefined; |
| 11 | + nextStepId: FUX_NOTIFICATION_KEYS | undefined; |
| 12 | + previousStepId: FUX_NOTIFICATION_KEYS | undefined; |
| 13 | + showDismissAll: boolean; |
| 14 | +} |
| 15 | + |
| 16 | +export const getFuxNotificationData = (fuxNotificationId: string): FuxNotificationData => { |
| 17 | + switch (fuxNotificationId) { |
| 18 | + case FUX_NOTIFICATION_KEYS.ANNOTATE_INTERACTIVELY: |
| 19 | + return { |
| 20 | + header: '', |
| 21 | + description: 'Click here to start annotating your dataset.', |
| 22 | + docUrl: DocsUrl.ACTIVE_LEARNING, |
| 23 | + nextStepId: undefined, |
| 24 | + previousStepId: undefined, |
| 25 | + showDismissAll: false, |
| 26 | + }; |
| 27 | + case FUX_NOTIFICATION_KEYS.ANNOTATOR_AUTO_TRAINING_STARTED: |
| 28 | + return { |
| 29 | + header: '', |
| 30 | + description: |
| 31 | + `This auto-training job is scheduled and ready to start when resources are available.` + |
| 32 | + ` Click the 'bell' icon to see the training progress.`, |
| 33 | + docUrl: undefined, |
| 34 | + nextStepId: undefined, |
| 35 | + previousStepId: undefined, |
| 36 | + showDismissAll: false, |
| 37 | + }; |
| 38 | + case FUX_NOTIFICATION_KEYS.ANNOTATOR_TOOLS: |
| 39 | + return { |
| 40 | + header: 'How to annotate my data?', |
| 41 | + description: |
| 42 | + `Effective data annotation lays the groundwork for a model’s ability to accurately interpret and` + |
| 43 | + ` learn from information. By annotating your data, you teach the model what patterns to ` + |
| 44 | + `recognize. Intel® Geti™ provides you with various smart annotation assistants to accelerate` + |
| 45 | + ` this annotation process.`, |
| 46 | + docUrl: DocsUrl.ANNOTATION_TOOLS, |
| 47 | + nextStepId: FUX_NOTIFICATION_KEYS.ANNOTATOR_ACTIVE_SET, |
| 48 | + previousStepId: undefined, |
| 49 | + showDismissAll: true, |
| 50 | + }; |
| 51 | + case FUX_NOTIFICATION_KEYS.ANNOTATOR_ACTIVE_SET: |
| 52 | + return { |
| 53 | + header: `What’s Active set?`, |
| 54 | + description: |
| 55 | + `In the media gallery you can switch between Active set and Dataset. Active set is set by default` + |
| 56 | + ` in Intel® Geti™ and it displays the media items in an order that is optimal for creating a ` + |
| 57 | + `well-balanced model, based on their informative features compared to the rest of your dataset.` + |
| 58 | + ` However, you can switch to Dataset to display the media items in the order that was arranged ` + |
| 59 | + `in your dataset folder.`, |
| 60 | + docUrl: DocsUrl.MEDIA_GALLERY, |
| 61 | + nextStepId: undefined, |
| 62 | + previousStepId: FUX_NOTIFICATION_KEYS.ANNOTATOR_TOOLS, |
| 63 | + showDismissAll: true, |
| 64 | + }; |
| 65 | + case FUX_NOTIFICATION_KEYS.ANNOTATOR_SUCCESSFULLY_TRAINED: |
| 66 | + return { |
| 67 | + header: 'Your model has been successfully trained', |
| 68 | + description: '', |
| 69 | + docUrl: DocsUrl.MODELS, |
| 70 | + nextStepId: FUX_NOTIFICATION_KEYS.ANNOTATOR_CHECK_PREDICTIONS, |
| 71 | + previousStepId: undefined, |
| 72 | + showDismissAll: true, |
| 73 | + }; |
| 74 | + case FUX_NOTIFICATION_KEYS.ANNOTATOR_CHECK_PREDICTIONS: |
| 75 | + return { |
| 76 | + header: 'Check predictions', |
| 77 | + description: |
| 78 | + `Click here to review the accuracy of your model by comparing the model’s predictions against` + |
| 79 | + ` your original annotations. Use our tools to analyze and adjust the predictions as needed, so` + |
| 80 | + ` they can be used during the next training rounds. This will help to further improve your ` + |
| 81 | + `model's performance.`, |
| 82 | + docUrl: DocsUrl.TESTS, |
| 83 | + nextStepId: undefined, |
| 84 | + previousStepId: FUX_NOTIFICATION_KEYS.ANNOTATOR_SUCCESSFULLY_TRAINED, |
| 85 | + showDismissAll: true, |
| 86 | + }; |
| 87 | + case FUX_NOTIFICATION_KEYS.ANNOTATOR_CONTINUE_ANNOTATING: |
| 88 | + return { |
| 89 | + header: 'Continue annotating', |
| 90 | + description: '', |
| 91 | + docUrl: DocsUrl.ANNOTATION_EDITOR, |
| 92 | + nextStepId: undefined, |
| 93 | + previousStepId: undefined, |
| 94 | + showDismissAll: true, |
| 95 | + }; |
| 96 | + case FUX_NOTIFICATION_KEYS.CREDIT_BALANCE_BUTTON: |
| 97 | + return { |
| 98 | + header: '', |
| 99 | + description: '', |
| 100 | + docUrl: undefined, |
| 101 | + nextStepId: undefined, |
| 102 | + previousStepId: undefined, |
| 103 | + showDismissAll: false, |
| 104 | + }; |
| 105 | + default: |
| 106 | + return { |
| 107 | + header: '', |
| 108 | + description: '', |
| 109 | + docUrl: undefined, |
| 110 | + previousStepId: undefined, |
| 111 | + nextStepId: undefined, |
| 112 | + showDismissAll: true, |
| 113 | + }; |
| 114 | + } |
| 115 | +}; |
0 commit comments