Skip to content

Commit

Permalink
Merge pull request #1435 from 18F/develop
Browse files Browse the repository at this point in the history
[Feature] Update default font size and use color palette -- Staging
  • Loading branch information
levinmr authored Nov 19, 2024
2 parents f2849bd + a1c94fe commit 1217ca2
Show file tree
Hide file tree
Showing 39 changed files with 455 additions and 360 deletions.
24 changes: 21 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
- name: Install Node
uses: actions/setup-node@v4
with:
node-version: "lts/*"
node-version-file: ".nvmrc"
cache: 'npm'
- name: Install node dependencies
# Fix for installing puppeteer which is a pa11y dependency.
Expand All @@ -31,7 +31,7 @@ jobs:
- name: Install Node
uses: actions/setup-node@v4
with:
node-version: "lts/*"
node-version-file: ".nvmrc"
cache: 'npm'
- name: Install node dependencies
# Fix for installing puppeteer which is a pa11y dependency.
Expand All @@ -41,18 +41,33 @@ jobs:
run: npm ci --verbose --timing
- name: Lint SCSS
run: npm run lint:styles
audit-dependencies:
runs-on: ubuntu-latest
steps:
- name: Code checkout
uses: actions/checkout@v4
- name: Install Node
uses: actions/setup-node@v4
with:
node-version-file: ".nvmrc"
cache: 'npm'
- name: Install node dependencies
run: npm ci
- name: Validate npm package signatures
run: npm audit signatures
test:
needs:
- lint-js
- lint-styles
- audit-dependencies
runs-on: ubuntu-latest
steps:
- name: Code Checkout
uses: actions/checkout@v4
- name: Install Node
uses: actions/setup-node@v4
with:
node-version: "lts/*"
node-version-file: ".nvmrc"
cache: 'npm'
- name: Install node dependencies
# Fix for installing puppeteer which is a pa11y dependency.
Expand All @@ -66,6 +81,7 @@ jobs:
needs:
- lint-js
- lint-styles
- audit-dependencies
- test
if: github.ref == 'refs/heads/develop'
uses: 18F/analytics.usa.gov/.github/workflows/deploy.yml@develop
Expand All @@ -89,6 +105,7 @@ jobs:
needs:
- lint-js
- lint-styles
- audit-dependencies
- test
if: github.ref == 'refs/heads/staging'
uses: 18F/analytics.usa.gov/.github/workflows/deploy.yml@develop
Expand All @@ -112,6 +129,7 @@ jobs:
needs:
- lint-js
- lint-styles
- audit-dependencies
- test
if: github.ref == 'refs/heads/master'
uses: 18F/analytics.usa.gov/.github/workflows/deploy.yml@develop
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ jobs:
- name: Install Node
uses: actions/setup-node@v4
with:
node-version: "lts/*"
node-version-file: ".nvmrc"
cache: 'npm'
- name: Install node dependencies
run: npm ci --timing
Expand Down
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
20.11
22
2 changes: 1 addition & 1 deletion _includes/about.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<h1 class="analytics-about__header margin-0 padding-bottom-1">
On this page
</h1>
<ul class="analytics-definitions__table-of-contents usa-list margin-top-0">
<ul class="analytics-about__table-of-contents usa-list margin-top-0">
<li><a href="#about-this-site">About this site</a></li>
<li>
<a href="#download-ga4-data">
Expand Down
38 changes: 31 additions & 7 deletions _includes/analytics_definitions.html
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ <h1 class="analytics-definitions__header margin-0 padding-bottom-1">
>
<button
type="button"
class="usa-accordion__button white bg-dark-blue"
class="usa-accordion__button white bg-palette-color-2"
aria-expanded="true"
aria-controls="report-descriptions-content"
>
Expand Down Expand Up @@ -179,15 +179,18 @@ <h3 id="report_realtime_top_pages" class="usa-accordion__heading">
class="usa-accordion__content usa-prose"
>
<ul>
<li>Metric: <a href="#metric_sessions">sessions</a></li>
<li>
Metric:
<a href="#metric_screen_page_views">screen page views</a>
</li>
<li>
Dimensions: <a href="#dimension_host_name">hostname</a>, full
page URL, <a href="#dimension_page_title">page title</a>
</li>
<li>
Description: top 30 second-level domain websites and/or
subdomains based on the number of total sessions. Updated daily
for 7 and 30-day aggregate reports.
subdomains based on the number of total page views. Updated
daily for 7 and 30-day aggregate reports.
</li>
</ul>
</div>
Expand Down Expand Up @@ -330,7 +333,7 @@ <h3 id="report_realtime_top_pages" class="usa-accordion__heading">
>
<button
type="button"
class="usa-accordion__button white bg-dark-blue"
class="usa-accordion__button white bg-palette-color-2"
aria-expanded="true"
aria-controls="data-definitions-content"
>
Expand Down Expand Up @@ -813,19 +816,40 @@ <h4 id="metric_event_count" class="usa-accordion__heading">
<span> The number of times users triggered an event. </span>
</div>

<h4 id="metric_sessions" class="usa-accordion__heading">
<h4 id="metric_screen_page_views" class="usa-accordion__heading">
<button
type="button"
class="usa-accordion__button"
aria-expanded="false"
aria-controls="metrics__section6"
>
Sessions
Screen page views
</button>
</h4>
<div
id="metrics__section6"
class="usa-accordion__content usa-prose"
>
<span>
The number of app screens or web pages your users viewed.
Repeated views of a single page or screen are counted.
(screen_view + page_view events).
</span>
</div>

<h4 id="metric_sessions" class="usa-accordion__heading">
<button
type="button"
class="usa-accordion__button"
aria-expanded="false"
aria-controls="metrics__section7"
>
Sessions
</button>
</h4>
<div
id="metrics__section7"
class="usa-accordion__content usa-prose"
>
<span>
The number of sessions that began on websites or applications. A
Expand Down
2 changes: 1 addition & 1 deletion _includes/data_download.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ <h1>Download the data</h1>

<p>
<a
class="analytics-data__historical-data-link light-blue-two"
class="analytics-data__historical-data-link palette-color-4"
href="/historical-data-download"
>
<em
Expand Down
5 changes: 4 additions & 1 deletion _includes/header.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
<header id="analytics-header" class="grid-row white bg-dark-blue padding-3">
<header
id="analytics-header"
class="grid-row white bg-palette-color-1 padding-3"
>
<h1 class="margin-top-0 margin-x-0 margin-bottom-1">
<img
src="{{ site.baseurl }}/images/analytics.svg"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ exports[`ConsolidatedBarChart when data is loaded and the expected key exists in
48.5%
</div>
<div
class="chart__bar-chart__item__bar bg-light-blue"
class="chart__bar-chart__item__bar bg-palette-color-5"
style="width: 49%;"
/>
</div>
Expand All @@ -52,7 +52,7 @@ exports[`ConsolidatedBarChart when data is loaded and the expected key exists in
35.7%
</div>
<div
class="chart__bar-chart__item__bar bg-light-blue"
class="chart__bar-chart__item__bar bg-palette-color-5"
style="width: 36%;"
/>
</div>
Expand All @@ -70,7 +70,7 @@ exports[`ConsolidatedBarChart when data is loaded and the expected key exists in
8.8%
</div>
<div
class="chart__bar-chart__item__bar bg-light-blue"
class="chart__bar-chart__item__bar bg-palette-color-5"
style="width: 9%;"
/>
</div>
Expand All @@ -88,7 +88,7 @@ exports[`ConsolidatedBarChart when data is loaded and the expected key exists in
1.9%
</div>
<div
class="chart__bar-chart__item__bar bg-light-blue"
class="chart__bar-chart__item__bar bg-palette-color-5"
style="width: 2%;"
/>
</div>
Expand All @@ -106,7 +106,7 @@ exports[`ConsolidatedBarChart when data is loaded and the expected key exists in
1.9%
</div>
<div
class="chart__bar-chart__item__bar bg-light-blue"
class="chart__bar-chart__item__bar bg-palette-color-5"
style="width: 2%;"
/>
</div>
Expand All @@ -124,7 +124,7 @@ exports[`ConsolidatedBarChart when data is loaded and the expected key exists in
1.4%
</div>
<div
class="chart__bar-chart__item__bar bg-light-blue"
class="chart__bar-chart__item__bar bg-palette-color-5"
style="width: 1%;"
/>
</div>
Expand All @@ -142,7 +142,7 @@ exports[`ConsolidatedBarChart when data is loaded and the expected key exists in
1%
</div>
<div
class="chart__bar-chart__item__bar bg-light-blue"
class="chart__bar-chart__item__bar bg-palette-color-5"
style="width: 1%;"
/>
</div>
Expand All @@ -160,7 +160,7 @@ exports[`ConsolidatedBarChart when data is loaded and the expected key exists in
0.2%
</div>
<div
class="chart__bar-chart__item__bar bg-light-blue"
class="chart__bar-chart__item__bar bg-palette-color-5"
style="width: 0%;"
/>
</div>
Expand All @@ -178,7 +178,7 @@ exports[`ConsolidatedBarChart when data is loaded and the expected key exists in
0.1%
</div>
<div
class="chart__bar-chart__item__bar bg-light-blue"
class="chart__bar-chart__item__bar bg-palette-color-5"
style="width: 0%;"
/>
</div>
Expand All @@ -196,7 +196,7 @@ exports[`ConsolidatedBarChart when data is loaded and the expected key exists in
0.4%
</div>
<div
class="chart__bar-chart__item__bar bg-light-blue"
class="chart__bar-chart__item__bar bg-palette-color-5"
style="width: 0%;"
/>
</div>
Expand Down Expand Up @@ -227,7 +227,7 @@ exports[`ConsolidatedBarChart when data is loaded and the expected key exists in
48.7%
</div>
<div
class="chart__bar-chart__item__bar bg-light-blue"
class="chart__bar-chart__item__bar bg-palette-color-5"
style="width: 49%;"
/>
</div>
Expand All @@ -245,7 +245,7 @@ exports[`ConsolidatedBarChart when data is loaded and the expected key exists in
35.8%
</div>
<div
class="chart__bar-chart__item__bar bg-light-blue"
class="chart__bar-chart__item__bar bg-palette-color-5"
style="width: 36%;"
/>
</div>
Expand All @@ -263,7 +263,7 @@ exports[`ConsolidatedBarChart when data is loaded and the expected key exists in
8.8%
</div>
<div
class="chart__bar-chart__item__bar bg-light-blue"
class="chart__bar-chart__item__bar bg-palette-color-5"
style="width: 9%;"
/>
</div>
Expand All @@ -281,7 +281,7 @@ exports[`ConsolidatedBarChart when data is loaded and the expected key exists in
1.9%
</div>
<div
class="chart__bar-chart__item__bar bg-light-blue"
class="chart__bar-chart__item__bar bg-palette-color-5"
style="width: 2%;"
/>
</div>
Expand All @@ -299,7 +299,7 @@ exports[`ConsolidatedBarChart when data is loaded and the expected key exists in
1.9%
</div>
<div
class="chart__bar-chart__item__bar bg-light-blue"
class="chart__bar-chart__item__bar bg-palette-color-5"
style="width: 2%;"
/>
</div>
Expand All @@ -317,7 +317,7 @@ exports[`ConsolidatedBarChart when data is loaded and the expected key exists in
1.4%
</div>
<div
class="chart__bar-chart__item__bar bg-light-blue"
class="chart__bar-chart__item__bar bg-palette-color-5"
style="width: 1%;"
/>
</div>
Expand All @@ -335,7 +335,7 @@ exports[`ConsolidatedBarChart when data is loaded and the expected key exists in
1%
</div>
<div
class="chart__bar-chart__item__bar bg-light-blue"
class="chart__bar-chart__item__bar bg-palette-color-5"
style="width: 1%;"
/>
</div>
Expand All @@ -353,7 +353,7 @@ exports[`ConsolidatedBarChart when data is loaded and the expected key exists in
0.2%
</div>
<div
class="chart__bar-chart__item__bar bg-light-blue"
class="chart__bar-chart__item__bar bg-palette-color-5"
style="width: 0%;"
/>
</div>
Expand All @@ -371,7 +371,7 @@ exports[`ConsolidatedBarChart when data is loaded and the expected key exists in
0.1%
</div>
<div
class="chart__bar-chart__item__bar bg-light-blue"
class="chart__bar-chart__item__bar bg-palette-color-5"
style="width: 0%;"
/>
</div>
Expand Down
Loading

0 comments on commit 1217ca2

Please sign in to comment.