progress made

This commit is contained in:
2025-08-11 20:31:48 -07:00
parent 805af2f199
commit 304b5de40b
15 changed files with 4028 additions and 404 deletions

View File

@@ -4,6 +4,267 @@
margin-top: 20px;
}
/* Modal styles - for existing HTML modals */
.twp-modal {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, 0.5);
display: none;
align-items: center;
justify-content: center;
z-index: 100000;
}
.twp-modal[style*="flex"] {
display: flex !important;
}
/* Modal overlay for custom modals */
.twp-modal-overlay {
position: fixed !important;
top: 0 !important;
left: 0 !important;
width: 100% !important;
height: 100% !important;
background: rgba(0, 0, 0, 0.7) !important;
display: none;
z-index: 100000 !important;
align-items: center !important;
justify-content: center !important;
}
.twp-modal-overlay.show {
display: flex !important;
}
/* Ensure modal displays flex when shown by jQuery */
.twp-modal-overlay[style*="block"] {
display: flex !important;
}
.twp-modal-content {
background: white;
border-radius: 8px;
max-width: 500px;
width: 90%;
/* Removed max-height and overflow for ThickBox compatibility */
box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
animation: twp-modal-appear 0.3s ease;
}
/* When inside ThickBox, remove overflow and adjust styling */
#TB_ajaxContent .twp-modal {
display: block !important;
position: static;
width: 100%;
height: auto;
background: none;
}
#TB_ajaxContent .twp-modal-content {
max-height: none;
overflow: visible;
width: 100%;
max-width: none;
box-shadow: none;
padding: 20px;
box-sizing: border-box;
}
/* Ensure form elements don't overflow */
#TB_ajaxContent input[type="text"],
#TB_ajaxContent input[type="number"],
#TB_ajaxContent input[type="time"],
#TB_ajaxContent input[type="url"],
#TB_ajaxContent select,
#TB_ajaxContent textarea {
max-width: 100%;
box-sizing: border-box;
}
/* Fix schedule modal specific issues */
#schedule-modal .twp-modal-content {
overflow-x: hidden;
}
/* Step Configuration Modal - appears on top of Workflow Builder */
#step-config-modal {
position: fixed !important;
top: 0 !important;
left: 0 !important;
width: 100% !important;
height: 100% !important;
background: transparent !important; /* No background overlay - ThickBox provides it */
z-index: 100060 !important; /* Higher than ThickBox (100050) */
display: none;
pointer-events: none; /* Allow clicks through to ThickBox overlay */
}
#step-config-modal.show,
#step-config-modal[style*="flex"] {
display: flex !important;
align-items: center !important;
justify-content: center !important;
}
#step-config-modal .twp-modal-content {
position: relative;
background: white;
border: 1px solid #ccc;
box-shadow: 0 10px 30px rgba(0,0,0,0.5);
max-width: 600px;
width: 90%;
max-height: 80vh;
overflow-y: auto;
padding: 20px;
border-radius: 5px;
pointer-events: all; /* Re-enable clicks on modal content */
}
#schedule-form {
max-width: 100%;
}
#schedule-form label {
display: block;
margin-bottom: 5px;
}
#schedule-form input[type="checkbox"] {
margin-right: 5px;
}
@keyframes twp-modal-appear {
from {
opacity: 0;
transform: scale(0.9) translateY(-20px);
}
to {
opacity: 1;
transform: scale(1) translateY(0);
}
}
.twp-modal-header {
padding: 20px 20px 0 20px;
border-bottom: none;
}
.twp-modal-header h3 {
margin: 0;
font-size: 1.3em;
color: #333;
}
.twp-modal-body {
padding: 20px;
line-height: 1.6;
}
.twp-modal-body p {
margin: 0 0 15px 0;
}
.twp-modal-body p:last-child {
margin-bottom: 0;
}
.twp-modal-footer {
padding: 0 20px 20px 20px;
text-align: right;
}
.twp-modal-close {
cursor: pointer;
}
/* After-hours steps styling */
.after-hours-steps-container {
border: 1px solid #ddd;
border-radius: 4px;
padding: 15px;
background: #f9f9f9;
}
.after-hours-step-list {
margin-bottom: 15px;
}
.after-hours-step {
background: #fff;
border: 1px solid #ddd;
border-radius: 4px;
margin-bottom: 10px;
padding: 10px;
}
.after-hours-step:last-child {
margin-bottom: 0;
}
.step-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 8px;
font-weight: bold;
}
.step-number {
background: #0073aa;
color: white;
width: 24px;
height: 24px;
border-radius: 50%;
display: inline-flex;
align-items: center;
justify-content: center;
font-size: 12px;
margin-right: 8px;
}
.step-type {
flex: 1;
}
.remove-step {
color: #a00;
text-decoration: none;
padding: 2px 8px;
}
.remove-step:hover {
background: #f8d7da;
border-radius: 2px;
}
.step-details textarea,
.step-details input[type="text"] {
width: 100%;
margin-bottom: 8px;
}
.add-after-hours-step {
display: flex;
gap: 10px;
align-items: center;
}
.add-after-hours-step select {
flex: 1;
}
.no-steps-message {
text-align: center;
color: #666;
font-style: italic;
padding: 20px;
margin: 0;
}
.twp-stats-grid {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
@@ -61,30 +322,44 @@
color: #996800;
}
/* Modal Styles */
.twp-modal {
position: fixed;
z-index: 9999;
left: 0;
top: 0;
width: 100%;
height: 100%;
background-color: rgba(0, 0, 0, 0.5);
display: flex;
align-items: center;
justify-content: center;
/* WordPress ThickBox Modal Styles */
.twp-wp-modal-content {
padding: 20px;
background: #fff;
}
.twp-modal-content {
background: #fff;
padding: 30px;
border-radius: 8px;
width: 90%;
max-width: 600px;
max-height: 80vh;
overflow-y: auto;
.twp-wp-modal-header {
display: flex;
justify-content: space-between;
align-items: center;
margin-bottom: 15px;
padding-bottom: 10px;
border-bottom: 1px solid #ddd;
}
.twp-wp-modal-header h2 {
margin: 0;
font-size: 1.3em;
color: #333;
}
.twp-wp-modal-body {
margin-bottom: 20px;
line-height: 1.6;
}
.twp-wp-modal-body p {
margin: 0 0 10px 0;
}
.twp-wp-modal-footer {
text-align: right;
padding-top: 10px;
border-top: 1px solid #ddd;
}
/* Removed duplicate .twp-modal-content - consolidated above */
.twp-modal-content.large {
max-width: 900px;
}
@@ -166,6 +441,15 @@
.queue-actions {
display: flex;
gap: 10px;
margin-top: 15px;
}
.queue-actions .button-link-delete {
color: #dc3232 !important;
}
.queue-actions .button-link-delete:hover {
color: #a00 !important;
}
/* Workflow Builder */
@@ -366,8 +650,9 @@
.ivr-option {
display: grid;
grid-template-columns: 50px 1fr 120px 100px;
grid-template-columns: 50px 1fr 120px 1fr 100px;
align-items: center;
gap: 10px;
padding: 10px;
border-bottom: 1px solid #ddd;
background: #fafafa;
@@ -382,6 +667,15 @@
border: 1px solid #ccc;
border-radius: 3px;
padding: 5px 8px;
width: 100%;
}
.ivr-target-container {
position: relative;
}
.ivr-target-container > * {
width: 100% !important;
}
.add-ivr-option {

File diff suppressed because it is too large Load Diff