-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Added modules and struct for fetching static templates. * Added endpoint for getting static templates. * Added client fetch for static templates. * Added a page for static templates table. * Fix line breaks. * Render static templates in a table. * Adjusted UI to allow selecting a template. * Save message_type to DB. * Clear appropriate state when clearing selected template. * Use new column for template linking. * Add IDs to templates. * Keep message_type as an Enum. * Add template and alert to show response. * Serialize alert if not nil. * Simplified return. * Remove unused endpoint. * Move cache seeding logic. * Tests and credo. * Ignore sobelow false positive. * Remove unused imports. * Fix message type formatting. * Added an archived field to static templates. * Added tests for static templates. * Move static template file from server to client. * Revert some unnecessarily changed code. * Address feedback from QA. * Address PR feedback.
- Loading branch information
Showing
19 changed files
with
660 additions
and
207 deletions.
There are no files selected for viewing
This file contains 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
93 changes: 93 additions & 0 deletions
93
assets/css/dashboard/new-pa-message/static-template-page.scss
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,93 @@ | ||
.static-template-page { | ||
padding: 24px 48px; | ||
|
||
.header-container { | ||
padding-right: 48px; | ||
max-width: 1380px; | ||
max-height: 48px; | ||
margin-bottom: 40px; | ||
|
||
.header, | ||
.cancel-button-col, | ||
.cancel-button { | ||
height: 48px; | ||
} | ||
|
||
.cancel-button-col { | ||
flex: none; | ||
width: 100px; | ||
|
||
.cancel-button { | ||
color: $text-link-primary; | ||
text-decoration: none; | ||
|
||
&:hover { | ||
color: $text-link-primary; | ||
background-color: $cool-gray-15; | ||
} | ||
} | ||
} | ||
} | ||
|
||
.static-template-page-body { | ||
.filter-group-col { | ||
max-width: 200px; | ||
margin-right: 48px; | ||
} | ||
|
||
.static-template-table-container { | ||
max-width: 1096px; | ||
|
||
.table-header { | ||
font-size: 32px; | ||
} | ||
|
||
.static-template-table { | ||
width: 100%; | ||
|
||
.header-row { | ||
height: 55px; | ||
vertical-align: bottom; | ||
border-bottom: 1px solid $border-primary; | ||
|
||
.message-column-header { | ||
padding-bottom: 8px; | ||
padding-left: 16px; | ||
} | ||
} | ||
|
||
.template-row { | ||
background-color: $cool-gray-15; | ||
border-bottom: 1px solid $divider-secondary; | ||
|
||
.title { | ||
font-weight: 700; | ||
} | ||
|
||
.message-cell { | ||
padding: 8px 16px; | ||
|
||
.message { | ||
white-space: pre-line; | ||
} | ||
} | ||
|
||
.select-button-cell { | ||
vertical-align: top; | ||
padding: 16px 38px 0 16px; | ||
|
||
.select-button { | ||
padding: 0; | ||
color: $text-secondary; | ||
} | ||
} | ||
|
||
&:hover { | ||
background-color: $cool-gray-20; | ||
cursor: pointer; | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} |
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.