-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
## What's changed * chore(deps-dev): update black requirement from ~=24.3.0 to ~=24.4.2 (#314) * chore(deps-dev): bump ruff from 0.3.5 to 0.4.7 (#322) * chore(deps): bump python-dateutil from 2.8.2 to 2.9.0.post0 (#282) * chore(deps): bump react-highlight-words from 0.17.0 to 0.20.0 (#215) * feat: initialize chromatic (#334) * fix(vis-heatmap): disable deselection of aggregation type (#333) * feat: Sentry integration (#319)
- Loading branch information
Showing
15 changed files
with
158 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
name: Chromatic UI test | ||
|
||
on: | ||
push: | ||
paths: | ||
- 'src/vis/**/*' # trigger whenever something changed in the VIS (?) | ||
- '**.stories.*' # trigger whenever any story has changed | ||
|
||
jobs: | ||
build: | ||
uses: datavisyn/github-workflows/.github/workflows/build-node-python.yml@main | ||
secrets: inherit | ||
with: | ||
chromatic_enable: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,11 @@ | ||
module.exports = require('visyn_scripts/config/storybook.main.template'); | ||
const c = require('visyn_scripts/config/storybook.main.template'); | ||
|
||
const config = { | ||
...c, | ||
addons: [ | ||
// Other Storybook addons | ||
...c.addons, | ||
'@chromatic-com/storybook', | ||
], | ||
}; | ||
export default config; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
{ | ||
"projectId": "Project:640e9afaf15e817c63e10f42", | ||
"zip": true, | ||
"buildScriptName": "storybook:build" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
{ | ||
"name": "visyn_core", | ||
"description": "Core repository for datavisyn applications.", | ||
"version": "10.1.0", | ||
"version": "10.2.0", | ||
"author": { | ||
"name": "datavisyn GmbH", | ||
"email": "[email protected]", | ||
|
@@ -72,7 +72,7 @@ | |
"test": "visyn_scripts test", | ||
"bundle:dev": "visyn_scripts bundle --mode development --env workspace_mode=single", | ||
"bundle:prod": "visyn_scripts bundle --mode production --env workspace_mode=single", | ||
"chromatic": "npx chromatic --build-script-name storybook:build" | ||
"chromatic": "yarn run chromatic" | ||
}, | ||
"dependencies": { | ||
"@emotion/css": "^11.11.2", | ||
|
@@ -93,6 +93,7 @@ | |
"@mantine/styles": "~6.0.21", | ||
"@mantine/tiptap": "~7.8.1", | ||
"@mantine6/core": "npm:@mantine/core@~6.0.21", | ||
"@sentry/react": "^8.5.0", | ||
"@types/d3-hexbin": "^0.2.3", | ||
"@types/d3v7": "npm:@types/d3@^7.4.0", | ||
"@types/plotly.js-dist-min": "^2.3.0", | ||
|
@@ -112,14 +113,15 @@ | |
"plotly.js-dist-min": "~2.12.0", | ||
"react": "~18.2.0", | ||
"react-dom": "~18.2.0", | ||
"react-highlight-words": "^0.17.0", | ||
"react-highlight-words": "^0.20.0", | ||
"react-plotly.js": "^2.5.1", | ||
"react-spring": "^9.7.1", | ||
"use-deep-compare-effect": "^1.8.0", | ||
"visyn_scripts": "^9.0.0" | ||
}, | ||
"devDependencies": { | ||
"chromatic": "^6.19.9", | ||
"@chromatic-com/storybook": "^1.3.2", | ||
"chromatic": "^11.3.0", | ||
"cypress": "^13.2.0" | ||
}, | ||
"visyn": { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
black~=24.3.0 | ||
black~=24.4.2 | ||
pyright==1.1.356 | ||
pytest-runner~=6.0.1 | ||
pytest~=8.2.1 | ||
ruff==0.3.5 | ||
ruff==0.4.7 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
import json | ||
import logging | ||
from urllib.parse import urlparse | ||
|
||
import httpx | ||
from fastapi import APIRouter, Request, Response | ||
|
||
from .. import manager | ||
|
||
sentry_router = APIRouter(prefix="/api/sentry", tags=["Sentry"]) | ||
|
||
_log = logging.getLogger(__name__) | ||
|
||
|
||
@sentry_router.post("/") | ||
async def proxy_sentry_envelope(request: Request): # pyright: ignore[reportUnusedFunction] | ||
dsn = manager.settings.visyn_core.sentry.dsn | ||
if dsn: | ||
async with httpx.AsyncClient(timeout=10) as client: | ||
# Example to parse a sentry envelope: https://github.com/getsentry/examples/blob/66da5f8c9559f64f1bfa57f8dd9b0731f75cd0e9/tunneling/python/app.py | ||
envelope = await request.body() | ||
piece = envelope.split(b"\n")[0].decode("utf-8") | ||
header = json.loads(piece) | ||
dsn = urlparse(header.get("dsn")) | ||
proxy_to = manager.settings.visyn_core.sentry.proxy_to or f"{dsn.scheme}://{dsn.hostname}" | ||
project_id = dsn.path.strip("/") | ||
res = await client.post( | ||
url=f"{proxy_to}/api/{project_id}/envelope/", | ||
content=envelope, | ||
headers={"Content-Type": "application/x-sentry-envelope"}, | ||
) | ||
return Response(status_code=res.status_code, content=res.content) | ||
else: | ||
return Response(status_code=500, content="Sentry is not configured") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters