Skip to content

Commit 61649be

Browse files
author
Drew Proebstel
committed
Merge branch 'main' into 2024_fyst_return_delete
2 parents ed9ea48 + 535f4e9 commit 61649be

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

43 files changed

+1812
-165
lines changed
Lines changed: 3 additions & 0 deletions
Loading

app/assets/images/chat.svg

Lines changed: 3 additions & 0 deletions
Loading

app/assets/images/id.svg

Lines changed: 3 additions & 0 deletions
Loading

app/assets/images/timer.svg

Lines changed: 3 additions & 0 deletions
Loading

app/assets/images/wifi.svg

Lines changed: 3 additions & 0 deletions
Loading

app/assets/stylesheets/application.scss

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
@import "components/client-filters";
3434
@import "components/doc-help";
3535
@import "components/hub-form";
36+
@import "components/hub-doc-assessment";
3637
@import "components/illustrations";
3738
@import "components/progress-indicator";
3839
@import "components/marketing-comparison";
@@ -70,6 +71,7 @@
7071
@import "components/info-box";
7172
@import "components/form-cards";
7273
@import "components/offboarding";
74+
@import "components/service-card";
7375
@import "components/external-link";
7476
@import "pages/form_13614c";
7577
@import "pages/provider-list";
@@ -381,4 +383,13 @@ ol.with-bullets {
381383
}
382384
}
383385

386+
.rounded-box {
387+
border-radius: 1rem;
388+
padding: 2rem;
389+
border: 1px solid #000000;
390+
align-items: center;
391+
display: flex;
392+
flex-direction: column;
393+
width: 100%;
394+
}
384395

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
#doc-assessments-table {
2+
margin: 10rem 5rem 5rem 5rem;
3+
4+
5+
table {
6+
border-collapse: collapse;
7+
font-size: 12px;
8+
}
9+
10+
tr.error {
11+
background-color: #FEF2E7;
12+
}
13+
14+
tr.fail {
15+
background-color: #FEE7E7;
16+
}
17+
18+
tr.pass {
19+
background-color: #E7FEEC;
20+
}
21+
22+
td, th {
23+
border: 1px solid black;
24+
padding: 10px 20px;
25+
}
26+
27+
th {
28+
font-weight: bold;
29+
text-transform: capitalize;
30+
}
31+
}
Lines changed: 78 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
.service-card--title {
2+
font-weight: bold;
3+
font-size: 3rem;
4+
text-align: center;
5+
margin-bottom: 3rem;
6+
margin-top: 0.5rem;
7+
}
8+
9+
.service-card--body {
10+
text-align: center;
11+
font-weight: bold;
12+
margin-bottom: 2rem;
13+
line-height: 100%;
14+
}
15+
16+
.service-card--list {
17+
list-style: none;
18+
padding: 0;
19+
margin: 2rem;
20+
max-width: 300px;
21+
}
22+
23+
.service-card--list-item {
24+
display: grid;
25+
grid-template-columns: auto 1fr;
26+
gap: 2rem;
27+
padding: 1rem 0;
28+
align-items: center;
29+
}
30+
31+
.service-card__icon-wrapper {
32+
justify-self: end;
33+
width: 1.6rem;
34+
height: 1.6rem;
35+
display: flex;
36+
align-items: center;
37+
justify-content: center;
38+
}
39+
40+
.service-card__item-text {
41+
justify-self: start;
42+
text-align: left;
43+
margin: 0;
44+
font-size: 17px;
45+
line-height: 1.2;
46+
}
47+
48+
img {
49+
max-width: none;
50+
}
51+
52+
.button-wrapper {
53+
font-size: 22px;
54+
align-self: stretch;
55+
56+
@media screen and (min-width: $tablet-up) {
57+
align-self: center;
58+
}
59+
}
60+
61+
.reveal--service-card {
62+
box-sizing: border-box;
63+
color: #333333;
64+
border: 2px solid #d1d1d1;
65+
background-color: #f5f5f5;
66+
align-self: stretch;
67+
68+
@media screen and (min-width: $tablet-up) {
69+
width: 34.5rem;
70+
align-self: center;
71+
}
72+
73+
.reveal__button {
74+
color: #000000;
75+
font-weight: normal;
76+
font-size: inherit;
77+
}
78+
}

app/controllers/application_controller.rb

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -217,6 +217,30 @@ def navigator
217217
session[:navigator]
218218
end
219219

220+
def set_utm_medium
221+
return unless params[:utm_medium].present?
222+
223+
unless utm_medium.present?
224+
session[:utm_medium] = params[:utm_medium].slice(0, 50)
225+
end
226+
end
227+
228+
def utm_medium
229+
session[:utm_medium]
230+
end
231+
232+
def set_utm_campaign
233+
return unless params[:utm_campaign].present?
234+
235+
unless utm_campaign.present?
236+
session[:utm_campaign] = params[:utm_campaign].slice(0, 50)
237+
end
238+
end
239+
240+
def utm_campaign
241+
session[:utm_campaign]
242+
end
243+
220244
def set_get_started_link
221245
I18n.with_locale(locale) do
222246
@get_started_link = open_for_gyr_intake? ? question_path(Questions::TriagePersonalInfoController) : nil

app/controllers/hub/documents_controller.rb

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,14 @@ def destroy
6666
redirect_back(fallback_location: hub_client_documents_path)
6767
end
6868

69+
def rerun_screener
70+
return head :forbidden if acts_like_production? || !current_user.admin?
71+
72+
DocScreenerJob.perform_now(@document.id)
73+
74+
redirect_back(fallback_location: edit_hub_client_document_path(client_id: @document.client.id, id: @document), notice: "Re-ran document screening.")
75+
end
76+
6977
private
7078

7179
def load_document_type_options

0 commit comments

Comments
 (0)