Skip to content

Commit

Permalink
Merge pull request #1374 from City-of-Helsinki/release-3.10.1
Browse files Browse the repository at this point in the history
Release 3.10.1
  • Loading branch information
NikoHelle authored Oct 9, 2024
2 parents 857b35d + 5557fd6 commit a62421b
Show file tree
Hide file tree
Showing 26 changed files with 108 additions and 67 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/development.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ jobs:
packages/react/storybook-static
packages/react/.lokirc.json
retention-days: 1
include-hidden-files: true

visual-tests:
needs: build-test
Expand Down Expand Up @@ -101,4 +102,5 @@ jobs:
with:
name: loki_images_${{ matrix.loki_configuration }}_${{ steps.sanitize_artifact_name.outputs.value }}
path: .loki/difference/*.*
include-hidden-files: true
if: failure()
1 change: 1 addition & 0 deletions .github/workflows/e2e-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ jobs:
with:
name: e2e_test_report
path: e2e/report/**
include-hidden-files: true
# if: failure()

- name: Publish Test Results
Expand Down
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,15 @@ All notable changes to this project will be documented in this file.
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).

## [3.10.1] - Oct, 09, 2024

### React

#### Fixed

- [Logo] Fixed data-testid attribute not being set with native props
- [Login] Fixed GraphQLModule exports

## [3.10.0] - Sep, 04, 2024

### React
Expand Down
2 changes: 1 addition & 1 deletion e2e/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "e2e",
"private": true,
"description": "e2e tests using Playwright",
"version": "3.10.0",
"version": "3.10.1",
"scripts": {
"inst": "yarn playwright install",
"ci": "npx playwright test",
Expand Down
4 changes: 2 additions & 2 deletions packages/core/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "hds-core",
"version": "3.10.0",
"version": "3.10.1",
"description": "Core styles for the Helsinki Design System",
"homepage": "https://github.com/City-of-Helsinki/helsinki-design-system#readme",
"license": "MIT",
Expand Down Expand Up @@ -32,7 +32,7 @@
"@storybook/manager-webpack5": "^6.5.16",
"copyfiles": "2.2.0",
"cssnano": "4.1.10",
"hds-design-tokens": "3.10.0",
"hds-design-tokens": "3.10.1",
"postcss": "8.2.15",
"postcss-cli": "8.3.1",
"postcss-import": "12.0.1",
Expand Down
2 changes: 1 addition & 1 deletion packages/design-tokens/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "hds-design-tokens",
"version": "3.10.0",
"version": "3.10.1",
"description": "Design tokens for the Helsinki Design System",
"homepage": "https://github.com/City-of-Helsinki/helsinki-design-system#readme",
"license": "MIT",
Expand Down
4 changes: 2 additions & 2 deletions packages/hds-js/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "hds-js",
"version": "3.10.0",
"version": "3.10.1",
"description": "Vanilla js for the Helsinki Design System",
"homepage": "https://github.com/City-of-Helsinki/helsinki-design-system#readme",
"license": "MIT",
Expand All @@ -14,7 +14,7 @@
"http-status-typed": "^1.0.1",
"jwt-decode": "^3.1.2",
"lodash": "^4.17.21",
"oidc-client-ts": "^2.2.2"
"oidc-client-ts": "^2.4.1"
},
"scripts": {
"prepublishOnly": "cp -r ./lib/. ."
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
8 changes: 4 additions & 4 deletions packages/react/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "hds-react",
"version": "3.10.0",
"version": "3.10.1",
"description": "React components for the Helsinki Design System",
"homepage": "https://github.com/City-of-Helsinki/helsinki-design-system#readme",
"license": "MIT",
Expand Down Expand Up @@ -128,7 +128,7 @@
"@hookform/resolvers": "^2.9.11",
"@juggle/resize-observer": "3.2.0",
"@popperjs/core": "2.11.5",
"@react-aria/visually-hidden": "3.8.0",
"@react-aria/visually-hidden": "3.8.16",
"@react-spring/web": "9.3.0",
"@types/cookie": "^0.4.1",
"@typescript-eslint/parser": "^6.19.0",
Expand All @@ -138,13 +138,13 @@
"date-fns": "2.16.1",
"downshift": "6.0.6",
"graphql": "^16.8.1",
"hds-core": "3.10.0",
"hds-core": "3.10.1",
"http-status-typed": "^1.0.1",
"jwt-decode": "^3.1.2",
"kashe": "1.0.4",
"lodash": "^4.17.21",
"memoize-one": "5.2.1",
"oidc-client-ts": "^2.2.2",
"oidc-client-ts": "^2.4.1",
"postcss": "^8.4.21",
"react-hook-form": "^7.43.3",
"react-merge-refs": "1.1.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -507,9 +507,14 @@ export const HeaderActionBarNavigationMenu = ({
};

const { isClosingOrOpening } = getState();
const canMenuBeHidden = !mobileMenuOpen && !isClosingOrOpening;
return (
<div
className={classNames(styles.headerNavigationMenu, mobileMenuOpen && styles.mobileMenuOpen)}
className={classNames(
styles.headerNavigationMenu,
mobileMenuOpen && styles.mobileMenuOpen,
canMenuBeHidden ? styles.hidden : styles.visible,
)}
id="hds-mobile-menu"
onTransitionEnd={animationDone}
>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ exports[`<HeaderActionBarNavigationMenu /> spec renders the component and menu c
</div>
</div>
<div
class="headerNavigationMenu mobileMenuOpen"
class="headerNavigationMenu mobileMenuOpen visible"
id="hds-mobile-menu"
>
<div
Expand Down
5 changes: 3 additions & 2 deletions packages/react/src/components/login/Login.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,15 +35,16 @@ import {
sessionPollerErrors,
LoginProvider,
LoginProviderProps,
useGraphQL,
useGraphQLModule,
createGraphQLModule,
} from './index';
import { Button } from '../button/Button';
import { Header } from '../header/Header';
import { Notification } from '../notification/Notification';
import { Tabs } from '../tabs/Tabs';
import { Logo, logoFi } from '../logo';
import { createGraphQLModule } from './graphQLModule/graphQLModule';
import { MyProfileQuery } from './graphQLModule/demoData/MyProfileQuery';
import { useGraphQL, useGraphQLModule } from './graphQLModule/hooks';
import { LoadingSpinner } from '../loadingSpinner';

type StoryArgs = {
Expand Down
1 change: 1 addition & 0 deletions packages/react/src/components/login/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ export * from './client/hooks';
export * from './beacon/hooks';
export * from './apiTokensClient/hooks';
export * from './sessionPoller/hooks';
export * from './graphQLModule/hooks';

// vanilla js code
export * from './index.vanilla-js';
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ export function createSignInResponse({
session_state: String(`${Math.random()}${Math.random()}`),
state: '',
token_type: 'Bearer',
url_state: undefined,
userState: {},
expires_in,
isOpenId: true,
Expand Down
17 changes: 17 additions & 0 deletions packages/react/src/components/logo/Logo.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,23 @@ describe('<Logo /> spec', () => {
getElementAttributesMisMatches(element, {
...imgProps,
dataTestId: undefined,
'data-testid': imgProps.dataTestId,
} as HTMLAttributes<HTMLImageElement>),
).toHaveLength(0);
});
it('The data-testid works and overrides dataTestId', async () => {
const propsWithDataTestId = {
'data-testid': 'data-testid',
dataTestId: 'dataTestId',
};
const { getByTestId } = render(
<Logo {...propsWithDataTestId} src="dummyPath" alt="logo" title="Helsingin kaupunki" />,
);
const element = getByTestId(propsWithDataTestId['data-testid']);
expect(
getElementAttributesMisMatches(element, {
...propsWithDataTestId,
dataTestId: undefined,
} as HTMLAttributes<HTMLImageElement>),
).toHaveLength(0);
});
Expand Down
2 changes: 1 addition & 1 deletion packages/react/src/components/logo/Logo.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -81,12 +81,12 @@ export type LogoProps = AllElementPropsWithoutRef<'img'> &

export const Logo = ({ alt, className, dataTestId, size = 'full', style, ...rest }: LogoProps) => {
const props = {
'data-testid': dataTestId,
...rest,
alt,
size,
className: classNames(styles.logo, size !== 'full' && styles[size], className),
style,
'data-testid': dataTestId,
};

return <img alt={alt} {...props} />;
Expand Down
Binary file modified release/hds-icon-kit.zip
Binary file not shown.
2 changes: 1 addition & 1 deletion release/icon-kit-template-CHANGELOG.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Helsinki Design System, Icon kit, version 3.10.0
# Helsinki Design System, Icon kit, version 3.10.1

## CHANGELOG

Expand Down
8 changes: 4 additions & 4 deletions site/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "site",
"private": true,
"description": "Documentation for Helsinki Design System",
"version": "3.10.0",
"version": "3.10.1",
"workspaces": {
"nohoist": [
"gatsby",
Expand Down Expand Up @@ -50,9 +50,9 @@
"crypto-browserify": "^3.11.0",
"eslint": "8.56.0",
"eslint-config-react-app": "^7.0.1",
"hds-core": "3.10.0",
"hds-design-tokens": "3.10.0",
"hds-react": "3.10.0",
"hds-core": "3.10.1",
"hds-design-tokens": "3.10.1",
"hds-react": "3.10.1",
"inquirer": "7.1.0",
"postcss": "8",
"prettier": "2.5.1",
Expand Down
Loading

0 comments on commit a62421b

Please sign in to comment.