Skip to content

Commit cad2aba

Browse files
put X on dialogs
1 parent ebbefcc commit cad2aba

File tree

16 files changed

+182
-19
lines changed

16 files changed

+182
-19
lines changed

.github/workflows/build.yaml

Lines changed: 25 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,30 @@ on:
44
types: [published]
55

66
jobs:
7+
verify-frontend-build:
8+
name: ✅ Verify frontend build is up to date
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v6
12+
with:
13+
fetch-depth: 0
14+
- name: 🏗 Set up Node.js
15+
uses: actions/setup-node@v6
16+
with:
17+
node-version: '20'
18+
- name: 🧰 Install frontend dependencies
19+
working-directory: frontend
20+
run: |
21+
npm ci
22+
- name: 🧪 Build frontend and verify committed assets
23+
run: |
24+
make frontend-build
25+
git diff --exit-code -- core/pioreactor/web/static
26+
727
build:
828
name: 🔨 Build distribution
929
runs-on: ubuntu-latest
30+
needs: [verify-frontend-build]
1031
steps:
1132
- uses: actions/checkout@v4
1233
with:
@@ -49,6 +70,7 @@ jobs:
4970
build-deps:
5071
name: 🔨 Build dependencies and upload
5172
runs-on: ubuntu-latest
73+
needs: [verify-frontend-build]
5274
steps:
5375
- uses: actions/checkout@v4
5476
with:
@@ -90,7 +112,7 @@ jobs:
90112
zip-asset-upload:
91113
name: 🤐 Zip assets and upload
92114
runs-on: ubuntu-latest
93-
needs: [build, build-deps]
115+
needs: [build, build-deps, verify-frontend-build]
94116
steps:
95117
- name: Checkout repository
96118
uses: actions/checkout@v4
@@ -123,7 +145,7 @@ jobs:
123145
publish-on-pypi:
124146
name: 📦 Publish tagged releases to PyPI
125147
runs-on: ubuntu-latest
126-
needs: build
148+
needs: [build, verify-frontend-build]
127149
steps:
128150
- name: ⬇ Download build result
129151
uses: actions/download-artifact@v4
@@ -138,7 +160,7 @@ jobs:
138160
notify-custopizer-build:
139161
name: 📧 Notify Pioreactor/CustoPizer
140162
runs-on: ubuntu-latest
141-
needs: build
163+
needs: [build, verify-frontend-build]
142164
steps:
143165
- name: 👀 Determine version
144166
run: |

core/pioreactor/calibrations/session_flow.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -406,7 +406,6 @@ def result(self, result: dict[str, Any]) -> CalibrationStep:
406406
step_id="complete",
407407
step_type="result",
408408
title="Calibration complete!",
409-
body="Calibration(s) is set to Active and ready to be used.",
410409
metadata={"result": result},
411410
)
412411

core/pioreactor/web/static/asset-manifest.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"files": {
33
"main.css": "/static/static/css/main.9c7a48b7.css",
4-
"main.js": "/static/static/js/main.5fd7351c.js",
4+
"main.js": "/static/static/js/main.8cc982bf.js",
55
"static/media/pioreactor_cloud.webp": "/static/static/media/pioreactor_cloud.b15b29e435797dc69d76.webp",
66
"static/media/roboto-all-500-normal.woff": "/static/static/media/roboto-all-500-normal.0ab669b7a0d19b178f57.woff",
77
"static/media/roboto-all-700-normal.woff": "/static/static/media/roboto-all-700-normal.a457fde362a540fcadff.woff",
@@ -30,10 +30,10 @@
3030
"static/media/roboto-greek-ext-700-normal.woff2": "/static/static/media/roboto-greek-ext-700-normal.bd9854c751441ccc1a70.woff2",
3131
"index.html": "/static/index.html",
3232
"main.9c7a48b7.css.map": "/static/static/css/main.9c7a48b7.css.map",
33-
"main.5fd7351c.js.map": "/static/static/js/main.5fd7351c.js.map"
33+
"main.8cc982bf.js.map": "/static/static/js/main.8cc982bf.js.map"
3434
},
3535
"entrypoints": [
3636
"static/css/main.9c7a48b7.css",
37-
"static/js/main.5fd7351c.js"
37+
"static/js/main.8cc982bf.js"
3838
]
3939
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
<!doctype html><html lang="en"><head><meta charset="utf-8"/><link rel="icon" href="/static/favicon.ico"/><meta name="viewport" content="width=device-width,initial-scale=1"/><meta name="theme-color" content="#000000"/><meta name="description" content="Pioreactor"/><link rel="apple-touch-icon" href="/static/logo192.png"/><link rel="manifest" href="/static/manifest.json"/><script defer="defer" src="/static/static/js/main.5fd7351c.js"></script><link href="/static/static/css/main.9c7a48b7.css" rel="stylesheet"></head><body><div id="root"></div></body></html>
1+
<!doctype html><html lang="en"><head><meta charset="utf-8"/><link rel="icon" href="/static/favicon.ico"/><meta name="viewport" content="width=device-width,initial-scale=1"/><meta name="theme-color" content="#000000"/><meta name="description" content="Pioreactor"/><link rel="apple-touch-icon" href="/static/logo192.png"/><link rel="manifest" href="/static/manifest.json"/><script defer="defer" src="/static/static/js/main.8cc982bf.js"></script><link href="/static/static/css/main.9c7a48b7.css" rel="stylesheet"></head><body><div id="root"></div></body></html>

core/pioreactor/web/static/static/js/main.5fd7351c.js renamed to core/pioreactor/web/static/static/js/main.8cc982bf.js

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

core/pioreactor/web/static/static/js/main.5fd7351c.js.LICENSE.txt renamed to core/pioreactor/web/static/static/js/main.8cc982bf.js.LICENSE.txt

File renamed without changes.

core/pioreactor/web/static/static/js/main.5fd7351c.js.map renamed to core/pioreactor/web/static/static/js/main.8cc982bf.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 25 additions & 0 deletions
Loading
Lines changed: 25 additions & 0 deletions
Loading

frontend/src/CreateExperimentProfile.jsx

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,9 @@ import CapabilitiesPanel from './components/CapabilitiesPanel';
2323
import Dialog from '@mui/material/Dialog';
2424
import DialogTitle from '@mui/material/DialogTitle';
2525
import DialogContent from '@mui/material/DialogContent';
26+
import IconButton from '@mui/material/IconButton';
2627
import SearchIcon from '@mui/icons-material/Search';
28+
import CloseIcon from '@mui/icons-material/Close';
2729

2830
function addQuotesToBrackets(input) {
2931
return input.replace(/(\${0}){{(.*?)}}/g, (match, p1, p2, offset, string) => {
@@ -240,7 +242,21 @@ function ProfilesContainer(){
240242
minHeight: '80%',
241243
maxHeight: '80%',
242244
}}}>
243-
<DialogTitle>Search jobs and automations</DialogTitle>
245+
<DialogTitle>
246+
Search jobs and automations
247+
<IconButton
248+
aria-label="close"
249+
onClick={() => setOpenCapabilities(false)}
250+
sx={{
251+
position: 'absolute',
252+
right: 8,
253+
top: 8,
254+
color: (theme) => theme.palette.grey[500],
255+
}}
256+
size="large">
257+
<CloseIcon />
258+
</IconButton>
259+
</DialogTitle>
244260
<DialogContent sx={{ height: '100%' }}>
245261
<CapabilitiesPanel />
246262
</DialogContent>

0 commit comments

Comments
 (0)