Skip to content

Commit

Permalink
Release 12.0.0 (#502)
Browse files Browse the repository at this point in the history
## What's changed

* feat: Fix release.yaml
([#499](#499))
* feat: simplify useUncontrolled in Vis
([#501](#501))
* Adjust usepan hook
([#496](#496))
* Added native event to click/up events so users can query for shift and
alt keys ([#485](#485))
* Feature: Facet sorting
([#481](#481))
* fix: add null check for the user
([#474](#474))
* feat(vis-type: scatter): selecting points from multiple facets
([#469](#469))
* refactor: improve time complexity for tooltip labels + minor fixes
([#472](#472))
* fix: scatter vis for selected points
([#468](#468))
* feat: added showLabeLimit option to the general vis configuration
([#457](#457))
* feat(vis-type: violin): Add YAxis merged option to violin vis
([#445](#445))
* feat: return 401 if not logged in for loggedinas
([#465](#465))
  • Loading branch information
puehringer authored Sep 5, 2024
2 parents 417e45b + 4bfdab5 commit 20e447b
Show file tree
Hide file tree
Showing 46 changed files with 416,045 additions and 2,223 deletions.
8 changes: 8 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ updates:
directory: "/"
schedule:
interval: "weekly"
groups:
mantine-deps:
patterns:
- "mantine/*"

# Python dependencies
- package-ecosystem: "pip"
Expand All @@ -17,3 +21,7 @@ updates:
directory: "/"
schedule:
interval: "weekly"
groups:
actions-deps:
patterns:
- "*"
24 changes: 21 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,18 @@
name: build
name: Build repository

on:
workflow_dispatch:
inputs:
run_parallel:
description: 'Run jobs in parallel'
required: false
type: boolean
default: true
self_hosted:
description: 'Run on self-hosted runner'
required: false
type: boolean
default: true
cypress:
description: 'Run cypress'
required: false
Expand All @@ -14,6 +24,8 @@ on:
type: boolean
default: false
push:
pull_request:
types: [opened, ready_for_review]
pull_request_review:
types: [submitted]

Expand All @@ -22,7 +34,13 @@ jobs:
if: ${{ github.event_name != 'pull_request_review' || github.event.review.state == 'approved' }}
uses: datavisyn/github-workflows/.github/workflows/build-node-python.yml@main
secrets: inherit
# Boolean inputs are tricky in Github Actions. Their default is not honored in non-workflow-dispatch actions, so setting a default on push is tricky: https://stackoverflow.com/a/73495922
# To get on push true, use !contains(inputs.myInput, 'false')
# To get on push false, use contains(inputs.myInput, 'true')
with:
chromatic_enable: ${{ inputs.chromatic == true || github.event.review.state == 'approved' }}
run_parallel: ${{ !contains(inputs.run_parallel, 'false') }} # true except if box is not checked
runs_on: ${{ (!contains(inputs.self_hosted, 'false') && 'self-hosted') || null }} # self-hosted except if box is not checked
chromatic_enable: ${{ inputs.chromatic == true || github.event_name == 'pull_request' || github.event.review.state == 'approved' }}
cypress_enable: true
cypress_run_because_flag: ${{ inputs.cypress == true || github.event.review.state == 'approved' }}
cypress_run_because_flag: ${{ inputs.cypress == true || github.event_name == 'pull_request' || github.event.review.state == 'approved' }}
cypress_runs_on: ${{ (!contains(inputs.self_hosted, 'false') && 'self-hosted') || null }} # self-hosted except if box is not checked
4 changes: 3 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,11 @@ on:
release_version:
type: string
description: 'The next version to release'
required: false
required: true

jobs:
release:
uses: datavisyn/github-workflows/.github/workflows/release-source.yml@feat-automate-releases-releasenotes
secrets: inherit
with:
release_version: ${{ inputs.release_version }}
51 changes: 28 additions & 23 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
@@ -1,24 +1,29 @@
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [

{
"name": "Debug Storybook",
"request": "launch",
"type": "chrome",
"url": "http://localhost:6006",
"webRoot": "${workspaceFolder}"
},

{
"name": "Python: Module",
"type": "python",
"request": "launch",
"module": "visyn_core",
"justMyCode": false
}
]
}
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "Debug Storybook",
"request": "launch",
"type": "chrome",
"url": "http://localhost:6006",
"webRoot": "${workspaceFolder}"
},
{
"name": "Launch Chrome",
"request": "launch",
"type": "chrome",
"url": "http://localhost:8080",
"webRoot": "${workspaceFolder}"
},
{
"name": "Python: Module",
"type": "debugpy",
"request": "launch",
"module": "visyn_core",
"justMyCode": false
}
]
}
12 changes: 10 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,19 @@ documentation:

.PHONY: install ## Install the requirements
install:
pip install -e .
@if [ ! -z "${CI}" ]; then \
uv pip install -e . --system; \
else \
uv pip install -e .; \
fi

.PHONY: develop ## Set up the development environment
develop:
pip install -e .[develop]
@if [ ! -z "${CI}" ]; then \
uv pip install -e ".[develop]" --system; \
else \
uv pip install -e ".[develop]"; \
fi

.PHONY: env_encrypt ## Encrypts the current ./<app>/.env
env_encrypt:
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "visyn_core",
"description": "Core repository for datavisyn applications.",
"version": "11.4.2",
"version": "12.0.0",
"author": {
"name": "datavisyn GmbH",
"email": "[email protected]",
Expand Down
6 changes: 3 additions & 3 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
# a2wsgi==1.6.0 # This WSIGMiddleware is not compatible with starlette_context
alembic==1.13.1
alembic==1.13.2
cachetools==5.3.3
fastapi==0.111.0
json-cfg==0.4.2
openpyxl==3.1.4
openpyxl==3.1.5
opentelemetry-api==1.25.0
opentelemetry-exporter-otlp==1.25.0
opentelemetry-exporter-prometheus==0.46b0
Expand All @@ -21,7 +21,7 @@ pyjwt[crypto]==2.8.0
pytest-postgresql==6.0.0
python-dateutil==2.9.0.post0
requests==2.32.3
sentry-sdk~=2.6.0
sentry-sdk~=2.11.0
SQLAlchemy>=1.4.40,<=1.4.52
starlette-context==0.3.6
uvicorn[standard]==0.30.1
Expand Down
5 changes: 5 additions & 0 deletions src/app/header/UserMenu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,11 @@ export function UserMenu({ menu, user, color }: { menu: JSX.Element; user: strin
size={28}
variant="white"
>
{/*
// NOTE: @dv-usama-ansari: We would not need this fix when we upgrade to Mantine v7.11
// Extracting initials is a built-in feature in Mantine v7.11: https://mantine.dev/changelog/7-11-0/#avatar-initials
*/}

{user
.split(' ')
.map((name) => name[0])
Expand Down
2 changes: 1 addition & 1 deletion src/app/header/VisynHeader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ export function VisynHeader({
{components?.logo === undefined ? <DatavisynLogo color={backgroundColor === 'white' ? 'black' : 'white'} /> : components?.logo}
<Group gap={5}>
{components?.userAvatar === undefined ? (
user ? (
user && user.name ? (
<UserMenu menu={components?.userMenu} user={user.name} color={backgroundColor} />
) : null
) : (
Expand Down
Loading

0 comments on commit 20e447b

Please sign in to comment.