Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,11 @@ jobs:
uses: actions/configure-pages@v4

- name: Build
env:
BASE_PATH: /slcomp/
VITE_MINIO_ENDPOINT: ${{ secrets.VITE_MINIO_ENDPOINT }}
run: |
cd dashboard
Comment thread
oliveirara marked this conversation as resolved.
export BASE_PATH=/slcomp/
npm run build

- name: Upload artifact
Expand Down
7 changes: 6 additions & 1 deletion dashboard/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,12 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="description" content="LaStBeRu Explorer - Interactive dashboard for astronomical data exploration" />
<meta name="author" content="CosmoObs" />
<meta http-equiv="Content-Security-Policy" content="default-src 'self'; img-src 'self' data: blob: https: http:; style-src 'self' 'unsafe-inline'; script-src 'self'; connect-src 'self' https: http: ws: wss:; worker-src 'self' blob:; object-src 'none';" />
<!--
ws:/wss: are required by Vite HMR in dev. They are also harmless in prod
(only same-origin or explicitly-fetched URLs reach the page). For a
stricter prod-only policy, set the CSP via server headers and drop them.
-->
<meta http-equiv="Content-Security-Policy" content="default-src 'self'; img-src 'self' data: blob: https:; style-src 'self' 'unsafe-inline'; script-src 'self'; connect-src 'self' https: ws: wss:; worker-src 'self' blob:; object-src 'none'; base-uri 'self'; form-action 'self'; frame-ancestors 'none';" />
Comment thread
oliveirara marked this conversation as resolved.
<title>The LaStBeRu Explorer</title>
<link rel="icon" type="image/png" href="telescope.png" />
<style>
Expand Down
268 changes: 1 addition & 267 deletions dashboard/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 1 addition & 3 deletions dashboard/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,9 @@
"@emotion/styled": "^11.13.0",
"@mui/icons-material": "^6.0.0",
"@mui/material": "^6.0.0",
"@mui/x-data-grid": "^8.11.1",
"@tanstack/react-query": "^5.56.2",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"recoil": "^0.7.7"
"react-dom": "^18.3.1"
},
"devDependencies": {
"@eslint/compat": "^1.3.2",
Expand Down
6 changes: 5 additions & 1 deletion dashboard/prepare_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -251,7 +251,11 @@ def get_proper_values_scalar(item):
reference = len(entry.Reference[0])
for column in values:
if bool(pd.isna(entry[column])[0]):
entry.loc[0, column] = np.repeat(np.nan, reference)
# `.at[]` (scalar accessor) accepts storing the list as the cell
# value; `.loc[0, column] = <iterable>` raises in pandas >= 2.x
# ("Must have equal len keys and value when setting with an iterable").
entry[column] = entry[column].astype(object)
entry.at[0, column] = [np.nan] * reference
df_new = pd.concat([df_new, entry], axis=0).reset_index(drop=True)

df_new = df_new.drop(columns=["multiple"])
Expand Down
Loading
Loading