From 374029166277a6a3075cc04d0fe9d4216fe09dbe Mon Sep 17 00:00:00 2001 From: George Drummond Date: Thu, 13 Jun 2019 10:04:15 -0400 Subject: [PATCH] Delete unused flash messages --- atst/utils/flash.py | 63 --------------------------------------------- translations.yaml | 4 --- 2 files changed, 67 deletions(-) diff --git a/atst/utils/flash.py b/atst/utils/flash.py index 8adf035b..0ea62028 100644 --- a/atst/utils/flash.py +++ b/atst/utils/flash.py @@ -30,11 +30,6 @@ MESSAGES = { "message_template": "You have successfully deleted {{ user_name }} from {{ application_name }}", "category": "success", }, - "environment_access_changed": { - "title_template": "User access successfully changed.", - "message_template": "", - "category": "success", - }, "environment_added": { "title_template": translate("flash.success"), "message_template": """ @@ -52,11 +47,6 @@ MESSAGES = { "message_template": "

Please see below.

", "category": "error", }, - "invitation_resent": { - "title_template": "Invitation resent", - "message_template": "The {{ officer_type }} has been resent instructions to join this portfolio.", - "category": "success", - }, "logged_out": { "title_template": translate("flash.logged_out"), "message_template": """ @@ -76,13 +66,6 @@ MESSAGES = { """, "category": "success", }, - "new_portfolio": { - "title_template": "Portfolio created!", - "message_template": """ -

You are now ready to create applications and environments within the JEDI Cloud.

- """, - "category": "success", - }, "new_portfolio_member": { "title_template": translate("flash.success"), "message_template": """ @@ -90,13 +73,6 @@ MESSAGES = { """, "category": "success", }, - "portfolio_member_dod_id_error": { - "title_template": "CAC ID Error", - "message_template": """ - The member attempted to accept this invite, but their CAC ID did not match the CAC ID you specified on the invite. Please confirm that the DoD ID is accurate. - """, - "category": "error", - }, "portfolio_member_removed": { "title_template": translate("flash.deleted_member"), "message_template": """ @@ -104,13 +80,6 @@ MESSAGES = { """, "category": "success", }, - "portfolio_role_updated": { - "title_template": "Portfolio role updated successfully", - "message_template": """ -

{{ member_name }}'s role was successfully updated to {{ updated_role }}

- """, - "category": "success", - }, "primary_point_of_contact_changed": { "title_template": translate("flash.new_ppoc_title"), "message_template": """{{ "flash.new_ppoc_message" | translate({ "ppoc_name": ppoc_name }) }}""", @@ -137,43 +106,11 @@ MESSAGES = { """, "category": "error", }, - "task_order_congrats": { - "title_template": translate("flash.congrats"), - "message_template": translate("flash.new_portfolio"), - "actions": """ - {% from "components/icon.html" import Icon %} -
- - {{ Icon('shield') }} - {{ "flash.portfolio_home" | translate }} - - - {{ Icon('arrow-down') }} - {{ "flash.next_steps" | translate }} - -
- """, - "category": "success", - }, "task_order_draft": { "title_template": translate("task_orders.form.draft_alert_title"), "message_template": translate("task_orders.form.draft_alert_message"), "category": "warning", }, - "task_order_incomplete": { - "title_template": "Task Order Incomplete", - "message_template": """ - You must complete your task order form before submitting. - """, - "category": "error", - }, - "task_order_signed": { - "title_template": "Task Order Signed", - "message_template": """ -

Task order has been signed successfully

- """, - "category": "success", - }, "task_order_submitted": { "title_template": "Your Task Order has been uploaded successfully.", "message_template": """ diff --git a/translations.yaml b/translations.yaml index 666f30c0..a0a662d6 100644 --- a/translations.yaml +++ b/translations.yaml @@ -83,18 +83,14 @@ email: flash: application: deleted: 'You have successfully deleted the {application_name} application. To view the retained activity log, visit the portfolio administration page.' - congrats: Congrats! delete_member_success: 'You have successfully deleted {member_name} from the portfolio.' deleted_member: Portfolio member deleted environment_added: 'The environment "{env_name}" has been added to the application.' login_required_message: After you log in, you will be redirected to your destination page. login_required_title: Log in required - new_portfolio: You've created a new JEDI portfolio and jump-started your first task order! new_portfolio_member: 'You have successfully invited {user_name} to the portfolio.' new_ppoc_message: 'You have successfully added {ppoc_name} as the primary point of contact. You are no longer the PPoC.' new_ppoc_title: Primary point of contact updated - next_steps: Review next steps below - portfolio_home: Go to my portfolio home page success: Success! new_application_member: 'You have successfully invited {user_name} to the team.' updated_application_team_settings: 'You have updated the {application_name} team settings.'