Skip to content

Commit

Permalink
Merge branch 'master' into open-dialog-design
Browse files Browse the repository at this point in the history
  • Loading branch information
jenniferarnesen authored Dec 5, 2024
2 parents d84881b + 0410cfc commit 5edcdd3
Show file tree
Hide file tree
Showing 41 changed files with 6,928 additions and 12,802 deletions.
3 changes: 3 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,7 @@ const { config } = require('@dhis2/cli-style')

module.exports = {
extends: [config.eslintReact],
rules: {
'react/no-unknown-property': ['error', { ignore: ['jsx', 'global'] }],
},
}
6 changes: 3 additions & 3 deletions .github/workflows/copy-build-to-d2-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,14 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
token: ${{env.GH_TOKEN}}

- name: Set up Node.js
uses: actions/setup-node@v1
uses: actions/setup-node@v4
with:
node-version: '16.x'
node-version: '20.x'

- name: Install dependencies
run: yarn install --frozen-lockfile
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/dhis2-verify-commits.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ jobs:
lint-pr-title:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: c-hive/gha-yarn-cache@v1
- uses: actions/checkout@v4
- uses: c-hive/gha-yarn-cache@v2
- run: yarn install --frozen-lockfile
- id: commitlint
run: echo ::set-output name=config_path::$(node -e "process.stdout.write(require('@dhis2/cli-style').config.commitlint)")
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/node-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,12 +27,12 @@ jobs:
runs-on: ubuntu-latest
if: "!contains(github.event.head_commit.message, '[skip ci]')"
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v4
with:
token: ${{env.GH_TOKEN}}
- uses: actions/setup-node@v1
- uses: actions/setup-node@v4
with:
node-version: 16.x
node-version: 20.x

- name: Install
run: yarn install --frozen-lockfile
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/node-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ jobs:
runs-on: ubuntu-latest
if: "!contains(github.event.head_commit.message, '[skip ci]')"
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 16.x
node-version: 20.x

- name: Install
run: yarn install --frozen-lockfile
Expand Down
30 changes: 23 additions & 7 deletions .storybook/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ const makeBabelConfig = require('@dhis2/cli-app-scripts/config/makeBabelConfig.j

module.exports = {
addons: ['@storybook/preset-create-react-app'],
stories: ['../src/**/*.stories.@(js|mdx)'],
stories: ['../src/**/*.stories.@(js)'],

babel: async (config) => {
// currently styled-jsx is configured the same way for prod and
// dev so it doesn't matter what the mode is here.
Expand All @@ -17,12 +18,27 @@ module.exports = {
// with the storybook babel configuration.
return {
...config,
presets: [...config.presets, ...custom.presets],
plugins: [
...config.plugins,
...custom.plugins,
...custom.env[mode].plugins,
],
presets: custom.presets,
plugins: [...custom.plugins, ...custom.env[mode].plugins].map(
(plugin) => {
if (plugin instanceof Array) {
return [plugin[0], { ...plugin[1], loose: true }]
}

return [plugin, { loose: true }]
}
),
}
},

framework: {
name: '@storybook/react-webpack5',
options: {},
},

docs: {},

typescript: {
reactDocgen: 'react-docgen-typescript',
},
}
6 changes: 0 additions & 6 deletions .storybook/preview-head.html

This file was deleted.

3 changes: 3 additions & 0 deletions .storybook/preview.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
import { CssReset } from '@dhis2/ui'
import React from 'react'
const { withJsx } = require('@mihkeleidast/storybook-addon-source')

export const decorators = [
withJsx,
(Story) => (
<div>
<CssReset />
Expand All @@ -22,3 +24,4 @@ export const decorators = [
</div>
),
]
//export const tags = ['autodocs', 'autodocs'];
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
## [26.9.3](https://github.com/dhis2/analytics/compare/v26.9.2...v26.9.3) (2024-11-22)


### Bug Fixes

* enable ou tree and levels/groups with user orgunits (DHIS2-18066) ([#1702](https://github.com/dhis2/analytics/issues/1702)) ([f58c708](https://github.com/dhis2/analytics/commit/f58c708af214f13147e5c95ede8545fc5c03bc57))

## [26.9.2](https://github.com/dhis2/analytics/compare/v26.9.1...v26.9.2) (2024-11-03)


Expand Down
22 changes: 12 additions & 10 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@dhis2/analytics",
"version": "26.9.2",
"version": "26.9.3",
"main": "./build/cjs/index.js",
"module": "./build/es/index.js",
"exports": {
Expand All @@ -20,8 +20,8 @@
},
"scripts": {
"build": "d2-app-scripts build",
"build-storybook": "build-storybook",
"start-storybook": "start-storybook --port 5000",
"build-storybook": "storybook build",
"start-storybook": "storybook dev --port 5000",
"start": "yarn start-storybook",
"test": "d2-app-scripts test",
"lint": "d2-style check",
Expand All @@ -31,21 +31,22 @@
},
"devDependencies": {
"@dhis2/app-runtime": "^3.9.0",
"@dhis2/cli-app-scripts": "^9.0.1",
"@dhis2/cli-style": "^10.4.1",
"@dhis2/cli-app-scripts": "^11.7.4",
"@dhis2/cli-style": "^10.7.4",
"@dhis2/d2-i18n": "^1.1.0",
"@dhis2/ui": "^9.4.4",
"@sambego/storybook-state": "^2.0.1",
"@storybook/addons": "^6.5.16",
"@storybook/preset-create-react-app": "^3.1.7",
"@storybook/react": "^6.5.16",
"@mihkeleidast/storybook-addon-source": "^1.0.1",
"@storybook/preset-create-react-app": "^8.3.6",
"@storybook/react": "^8.3.6",
"@storybook/react-webpack5": "^8.3.6",
"@testing-library/jest-dom": "^5.16.5",
"@testing-library/react": "^12.1.5",
"enzyme": "^3.9.0",
"enzyme-adapter-react-16": "^1.15.6",
"fs-extra": "^10.1.0",
"jest-enzyme": "^7.0.2",
"prop-types": "^15",
"storybook": "^8.3.6",
"styled-jsx": "^4.0.1"
},
"peerDependencies": {
Expand Down Expand Up @@ -75,7 +76,8 @@
"resize-observer-polyfill": "^1.5.1"
},
"resolutions": {
"@dhis2/ui": "^9.2.0"
"@dhis2/ui": "^9.2.0",
"eslint": "^7.32.0"
},
"files": [
"build"
Expand Down
Loading

0 comments on commit 5edcdd3

Please sign in to comment.