Skip to content

Commit 9690c37

Browse files
authored
Merge pull request #21 from github/improve/overview-pages-workflow
Refresh billing preview views and Pages workflow
2 parents d459998 + b3fa684 commit 9690c37

14 files changed

Lines changed: 571 additions & 381 deletions

.github/workflows/deploy.yml

Lines changed: 0 additions & 65 deletions
This file was deleted.

.github/workflows/pages.yml

Lines changed: 104 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,104 @@
1+
name: CI / Deploy
2+
3+
on:
4+
workflow_dispatch:
5+
push:
6+
branches:
7+
- main
8+
pull_request:
9+
branches:
10+
- main
11+
12+
concurrency:
13+
group: github-pages-${{ github.workflow }}-${{ github.ref }}
14+
cancel-in-progress: true
15+
16+
env:
17+
CI: true
18+
NODE_VERSION: '20'
19+
20+
defaults:
21+
run:
22+
shell: bash
23+
24+
jobs:
25+
build:
26+
name: Validate and build site
27+
runs-on: ubuntu-latest
28+
timeout-minutes: 15
29+
permissions:
30+
contents: read
31+
steps:
32+
- name: Checkout repository
33+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
34+
35+
- name: Set up Node.js
36+
uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6
37+
with:
38+
node-version: ${{ env.NODE_VERSION }}
39+
cache: 'npm'
40+
cache-dependency-path: package-lock.json
41+
42+
- name: Install dependencies
43+
run: npm ci
44+
45+
- name: Lint source
46+
run: npm run lint
47+
48+
- name: Run test suite
49+
run: npm run test
50+
51+
- name: Configure GitHub Pages
52+
run: npm run build
53+
54+
pages-artifact:
55+
name: Prepare Pages artifact
56+
if: github.event_name != 'pull_request' && github.ref == 'refs/heads/main'
57+
runs-on: ubuntu-latest
58+
needs: build
59+
timeout-minutes: 15
60+
permissions:
61+
contents: read
62+
pages: write
63+
id-token: write
64+
steps:
65+
- name: Checkout repository
66+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
67+
68+
- name: Set up Node.js
69+
uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6
70+
with:
71+
node-version: ${{ env.NODE_VERSION }}
72+
cache: 'npm'
73+
cache-dependency-path: package-lock.json
74+
75+
- name: Install dependencies
76+
run: npm ci
77+
78+
- name: Configure GitHub Pages
79+
uses: actions/configure-pages@983d7736d9b0ae728b81ab479565c72886d7745b # v5
80+
81+
- name: Build production bundle
82+
run: npm run build
83+
84+
- name: Upload Pages artifact
85+
uses: actions/upload-pages-artifact@56afc609e74202658d3ffba0e8f6dda462b719fa # v3
86+
with:
87+
path: dist
88+
89+
deploy:
90+
name: Deploy site
91+
if: github.event_name != 'pull_request' && github.ref == 'refs/heads/main'
92+
environment:
93+
name: github-pages
94+
url: ${{ steps.deployment.outputs.page_url }}
95+
runs-on: ubuntu-latest
96+
needs: pages-artifact
97+
timeout-minutes: 10
98+
permissions:
99+
pages: write
100+
id-token: write
101+
steps:
102+
- name: Deploy to GitHub Pages
103+
id: deployment
104+
uses: actions/deploy-pages@d6db90164ac5ed86f2b6aed7e0febac5b3c0c03e # v4

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,5 @@ dist-ssr
2424
*.njsproj
2525
*.sln
2626
*.sw?
27+
28+
.tmp-heap

src/App.css

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -826,6 +826,46 @@
826826
gap: 20px;
827827
}
828828

829+
.cost-centers-view__tableControls {
830+
display: flex;
831+
gap: 0;
832+
flex-wrap: wrap;
833+
border-bottom: 1px solid #d1d9e0;
834+
}
835+
836+
.cost-centers-view__tableButton {
837+
border: none;
838+
border-bottom: 2px solid transparent;
839+
margin-bottom: -1px;
840+
border-radius: 0;
841+
background: transparent;
842+
color: #636c76;
843+
padding: 8px 16px;
844+
font: inherit;
845+
font-size: 14px;
846+
font-weight: 400;
847+
cursor: pointer;
848+
transition: color 0.1s ease, border-color 0.1s ease;
849+
}
850+
851+
.cost-centers-view__tableButton:hover {
852+
color: #1f2328;
853+
background: transparent;
854+
}
855+
856+
.cost-centers-view__tableButton:focus-visible {
857+
outline: 2px solid #0969da;
858+
outline-offset: -2px;
859+
border-radius: 3px;
860+
}
861+
862+
.cost-centers-view__tableButton--active {
863+
color: #1f2328;
864+
font-weight: 600;
865+
border-bottom-color: #fd8c73;
866+
background: transparent;
867+
}
868+
829869
.cost-centers-view__tableWrap {
830870
overflow: hidden;
831871
}
@@ -841,6 +881,12 @@
841881
background: #f6f8fa;
842882
}
843883

884+
.cost-centers-view__tableHint {
885+
padding: 12px 16px 0;
886+
font-size: 13px;
887+
color: #636c76;
888+
}
889+
844890
.cost-centers-view__num {
845891
text-align: right;
846892
font-variant-numeric: tabular-nums;

0 commit comments

Comments
 (0)