Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hds 2460 general documentation updates #1378

Closed
wants to merge 88 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
88 commits
Select commit Hold shift + click to select a range
27dd116
release-4.0.0) (HDS-2124) new tag
mrTuomoK Apr 24, 2024
539e574
release-4.0.0) (HDS-2191) new button
mrTuomoK Apr 25, 2024
9593b74
release-4.0.0) (tag-ts) Fix "ref" prop in TagProps
NikoHelle May 2, 2024
6c3f3e8
(release-4.0.0) Fix core button icon story with spans
mrTuomoK May 7, 2024
8d27c4d
release-4.0.0) () fix icon before and after selectors
mrTuomoK May 8, 2024
e0143f4
release-4.0.0) (HDS-1833) Link size to enum, iconLeft -> iconStart an…
mrTuomoK Apr 29, 2024
d355184
release-4.0.0) (HDS-1834) Linkbox size to enum
mrTuomoK Jun 3, 2024
09db12b
release-4.0.0) (HDS-1835) change logo size prop to enum
mrTuomoK Jun 3, 2024
99d4d13
release-4.0.0) (HDS-1836) Notification and ErrorSUmmary sizes to enum
mrTuomoK Jun 3, 2024
f4c3981
release-4.0.0) (HDS-1838) icon size to enum
mrTuomoK Jun 3, 2024
231eb11
release-4.0.0) () fix giving html props in TagProps and add helper Ty…
mrTuomoK Jun 6, 2024
4dc8c7b
(release-4.0.0) merge development to release-4.0.0
mrTuomoK Jul 5, 2024
8baead2
release-4.0.0) (hds-2103) New information element to hero in core
NikoHelle Apr 5, 2024
5cafbd3
release-4.0.0) (hds-2103) React version
NikoHelle Apr 4, 2024
134f411
release-4.0.0) (hds-2103) Update script for single story reference up…
NikoHelle Apr 6, 2024
830f8b5
release-4.0.0) (hds-2103) Update reference images
NikoHelle Apr 6, 2024
4473862
release-4.0.0) (hds-2103) Adjust Hero playground options
NikoHelle Apr 7, 2024
b043ff0
release-4.0.0) (hds-2103) Update docs
NikoHelle Apr 8, 2024
ab74925
release-4.0.0) (hds-2103) Updated changelog
NikoHelle Apr 8, 2024
059c5f8
release-4.0.0) (hds-2103) Updated test snapshots with information and…
NikoHelle Apr 8, 2024
1cac2ad
release-4.0.0) (hds-2103) Migration guide
NikoHelle Apr 18, 2024
2b6f069
release-4.0.0) (HDS-2331) Add initial Playwright tests
mrTuomoK Jul 19, 2024
707b699
release-4.0.0) (hds-2062) Remove default id and headingId attributes …
NikoHelle Jul 29, 2024
d1aba14
release-4.0.0) (hds-2062) Updated missing Tabs docs
NikoHelle Jul 29, 2024
cf8850e
release-4.0.0) (hds-2062) Removed default dataTestIds.
NikoHelle Jul 29, 2024
24b6404
release-4.0.0) (hds-2273) Fix gaps and spacing in SelectionGroup
NikoHelle Jul 29, 2024
80ab7e2
release-4.0.0) (hds-2273) Fix issue when ErrorText and HelperText co-…
NikoHelle Jul 29, 2024
0d03554
release-4.0.0) (hds-2273) Use label styles from core
NikoHelle Jul 29, 2024
b2afea8
release-4.0.0) (hds-2273) New loki images
NikoHelle Jul 29, 2024
11966e0
release-4.0.0) (hds-2273) Updated Changelog
NikoHelle Jul 29, 2024
609971e
release-4.0.0) (hds-2198) Update line-height docs
NikoHelle Aug 1, 2024
ecb5b68
release-4.0.0) (hds-2198) Updated changelog
NikoHelle Aug 1, 2024
bfc7840
release-4.0.0) (hds-2215) Change heading line-heights
NikoHelle Jul 30, 2024
66ee3fa
release-4.0.0) (hds-2215) Change heading letter-spacings
NikoHelle Jul 30, 2024
dc5905e
release-4.0.0) (hds-2215) Remove "black" header title variant
NikoHelle Jul 31, 2024
f69ce9b
release-4.0.0) (hds-2215) Faux css to scss converter
NikoHelle Jul 31, 2024
b349736
release-4.0.0) (hds-2215) Use core heading styles in React Header
NikoHelle Jul 31, 2024
7f3bdb8
release-4.0.0) (hds-2215) Use core Heading styles in other React comp…
NikoHelle Jul 31, 2024
5b08007
release-4.0.0) (hds-2215) Adjust heading styles in other files with s…
NikoHelle Jul 31, 2024
81b2fee
release-4.0.0) (hds-2215) New ref images
NikoHelle Jul 30, 2024
200d8bf
release-4.0.0) (hds-2215) Updated changelog
NikoHelle Jul 30, 2024
79e30f7
release-4.0.0) (hds-2215) Rollup PostCSS to find monorepo node_modules
NikoHelle Aug 1, 2024
d494009
release-4.0.0) (hds-2060) Change active Pagination item to span
NikoHelle Jul 30, 2024
3c85832
release-4.0.0) (hds-2060) Change active Pagination item to span in React
NikoHelle Jul 30, 2024
137fc7b
release-4.0.0) (hds-2060) Handle focus when re-rendered
NikoHelle Jul 30, 2024
c82372c
release-4.0.0) (hds-2060) Updated changelog
NikoHelle Jul 30, 2024
826422b
release-4.0.0) (hds-2060) Fix TS warning
NikoHelle Aug 8, 2024
74644a6
release-4.0.0) (hds-2060) Added a note about the found accessibility …
NikoHelle Aug 9, 2024
58b5b4f
release-4.0.0) (HDS-2180) update color change to changelog
mrTuomoK Jul 3, 2024
6df8031
release-4.0.0) release-4.0.0 Updated ref images
NikoHelle Sep 6, 2024
484c34d
release-4.0.0) release-4.0.0 Fix linting errors with deprecated dataT…
NikoHelle Sep 9, 2024
6bf8ea9
release-4.0.0) release-4.0.0 Fix IconSize export
NikoHelle Sep 9, 2024
01fc052
release-4.0.0) release-4.0.0 Rebasing fixes
NikoHelle Sep 9, 2024
be0fbf7
release-4.0.0) (hds-2297) Installed packages
NikoHelle Aug 27, 2024
db968ce
release-4.0.0) (hds-2297) Updated core configs
NikoHelle Aug 27, 2024
6105029
release-4.0.0) (hds-2297) Add scss to build script
NikoHelle May 1, 2024
6c0c691
release-4.0.0) (hds-2297) Add scss support to core Storybook
NikoHelle Aug 27, 2024
2c99358
release-4.0.0) (hds-2297) Script to copy scss files to lib too
NikoHelle Aug 27, 2024
9116a98
release-4.0.0) (hds-2297) Test with simple scss of status label
NikoHelle Aug 27, 2024
d27ac01
release-4.0.0) (hds-2297) Added BEM helper for Sass
NikoHelle Aug 28, 2024
62ba9ec
release-4.0.0) (hds-2297) Convert statusLabel css to SCSS with helpers
NikoHelle Aug 28, 2024
9c4986d
release-4.0.0) (hds-2297) Convert React StatusLabel to use scss
NikoHelle Aug 29, 2024
3e6418f
release-4.0.0) (hds-2297) Documentation
NikoHelle Aug 29, 2024
ae79e98
release-4.0.0) (hds-2297) Updated CHANGELOG
NikoHelle Aug 29, 2024
c347624
release-4.0.0) (HDS-2389) remove old analytics
mrTuomoK Sep 9, 2024
f333503
release-4.0.0) (HDS-2348) modify playwright tests to include core, mo…
mrTuomoK Sep 9, 2024
d07fecd
release-4.0.0) (HDS-2358) fix Link styled as a button text align-issue
mrTuomoK Sep 9, 2024
71710cd
release-4.0.0) (hds-2405) Add one helper to take all snapshots
NikoHelle Sep 11, 2024
b389bf3
release-4.0.0) (hds-2405) Add Table tests for core
NikoHelle Sep 11, 2024
4609ede
release-4.0.0) (hds-2405) Images for e2e table tests
NikoHelle Sep 11, 2024
660854b
release-4.0.0) (hds-2405) All core tests to use same helper
NikoHelle Sep 11, 2024
3b7994f
release-4.0.0) (hds-2405) All React tests to use same helper
NikoHelle Sep 11, 2024
c9437ee
release-4.0.0) (hds-2421) Fix how tsc is run.
NikoHelle Sep 10, 2024
40f4c6c
release-4.0.0) (hds-2421) Fix newly introduced ts errors
NikoHelle Sep 10, 2024
b982be2
release-4.0.0) (hds-2421) Add Story ts checking
NikoHelle Sep 10, 2024
0e11ba1
release-4.0.0) (hds-2421) Fixed wrong props with Buttons etc
NikoHelle Sep 11, 2024
79862a8
release-4.0.0) (hds-2421) Fix newly introduced ts errors
NikoHelle Sep 11, 2024
d544dd8
release-4.0.0) (hds-2421) Updated ref images
NikoHelle Sep 11, 2024
1a63bd0
release-4.0.0) (HDS-2425) modify hero css, remove old loki tests, add…
mrTuomoK Sep 12, 2024
7028f35
release-4.0.0) (HDS-2423) enable playwright test separate running and…
mrTuomoK Sep 17, 2024
49908ee
release-4.0.0) (HDS-2388) use native aria-props for icons and fix som…
mrTuomoK Sep 18, 2024
80f8e8b
release-4.0.0) (HDS-2420) Dialog, Header and StatusLabel icon-props r…
mrTuomoK Sep 18, 2024
19ccb02
release-4.0.0) (HDS-2272) Fix Koros examples, remove old and add new …
mrTuomoK Sep 18, 2024
a70e61f
release-4.0.0) (hds-2390) Remove dataTestIds
NikoHelle Sep 5, 2024
29d1383
release-4.0.0) (hds-2390) Remove ariaLabel props
NikoHelle Sep 5, 2024
ee43fba
release-4.0.0) (hds-2390) Update docs
NikoHelle Sep 10, 2024
d48fe2d
release-4.0.0) (hds-2390) Updated changelog
NikoHelle Sep 10, 2024
c66143d
Updates to documentation
laurakarhu Oct 10, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
51 changes: 44 additions & 7 deletions .github/workflows/e2e-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@ name: e2e-tests
on:
workflow_dispatch:
pull_request:
push:
branches:
- playwright_initial_HDS-2224

jobs:
e2e-test:
Expand All @@ -26,31 +23,71 @@ jobs:
node-version: '${{ steps.nvmrc.outputs.NODE_VERSION }}'
registry-url: 'https://registry.npmjs.org'

# added to build react-storybook for testing
- name: install dependencies
run: |
yarn config set network-timeout 300000
yarn

- name: build design tokens package
run: yarn build
working-directory: ./packages/design-tokens

- name: build core package
run: yarn build
working-directory: ./packages/core

- name: build core storybook
run: yarn build-storybook
working-directory: ./packages/core

- name: build react package
run: yarn build
working-directory: ./packages/react

- name: build react storybook
run: yarn build-storybook
working-directory: ./packages/react

# added to build react-storybook for testing

- name: install dependencies
run: |
yarn config set network-timeout 300000
yarn
working-directory: ./e2e

- name: install playwright dependencies
run: |
yarn install-deps
working-directory: ./e2e

- name: install test tools
run: |
yarn inst
working-directory: ./e2e

- name: run tests
run: |
yarn start
env:
E2E_TESTS_ENV_URL: "https://hds.hel.fi"
E2E_TESTS_ENV_URL: 'https://hds.hel.fi'
working-directory: ./e2e

- name: upload test results in case of failure
uses: actions/upload-artifact@v4
with:
name: e2e_test_report
path: e2e/report/**
path: e2e/report/
include-hidden-files: true
# if: failure()
if: failure()

- name: upload screenshot differences in case of failure
uses: actions/upload-artifact@v4
with:
name: e2e_test_results
path: e2e/test-results/
if: failure()

- name: Publish Test Results
uses: EnricoMi/publish-unit-test-result-action@v2
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/update-icon-library.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ jobs:
- name: Append React interface into index file
if: steps.build_checker.outputs.SKIP_REST_STEPS != 'true'
run: |
echo -e "export { IconProps } from './Icon.interface';\n" | \
echo -e "export { IconProps, IconSize } from './Icon.interface';\n" | \
cat - ./icon-library/react/tsx/index.ts > temp && mv temp ./icon-library/react/tsx/index.ts
- name: Bump version in Changelog
Expand Down Expand Up @@ -143,4 +143,4 @@ jobs:
git push
- name: End
run: echo "Done!"
run: echo "Done!"
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@ lib
node_modules
.idea/
.vscode/
.editorconfig
92 changes: 81 additions & 11 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,23 +5,68 @@ 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.X.X] - Month, XX, 202X
## [4.0.0] - Month, XX, 202X

### React

#### Breaking

- [Component] What are the breaking changes?

#### Added

- [Component] What is added?
- [Tag] Rewritten Tag component
- [Button] Renewed Button component with theming support
- [Link] iconLeft prop is renamed to iconStart, size prop is now enum (LinkSize.Small, .Medium and .Large). Aria-label is now native so ariaLabel prop is now obsolete -> use aria-label.
- [Accordion] Changed size prop to use AccordionSize enum (AccordionSize.Small, AccordionSize.Medium and AccordionSize.Large) or without usin Typescript ("small", "medium" and "large"). Also theming has changed variables.
- [Notification] Changed size prop to enum (NotificationSize.Small, NotificationSize.Medium and NotificationSize.Large) or without using Typescript ("small", "medium" and "large"). The "default" size was removed and replaced with "medium".
- [ErrorSummary] Changed size prop to enum (ErrorSummarySize.Medium and ErrorSummarySize.Large) or without using Typescript ("medium" and "large"). The "default" size was removed and replaced with "medium".
- [Icon] Icon size changed to enum (IconSize.ExtraSmall, IconSize.Small, IconSize.Medium, IconSize.Large and IconSize.ExtraLarge) or without Typescript ("extraSmall", "small", "medium", "large" and "extraLarge").
- [Hero] The optional arrow icon takes vertical space and may require background color to be set.
- [SelectionGroup] Updated element spacings
- Typography changes to heading line-heights and letter-spacings
- [Hero] heading typography changes
- [Header] heading typography changes
- [Header.ActionBarSubItem] iconLeft and iconRight props renamed to iconStart and iconEnd
- [Dialog] heading typography changes
- [Dialog.Header] iconLeft prop renamed to iconStart
- [CookieConsent] heading typography changes
- [Accordion] heading typography changes
- [Pagination] Active element changed from "a" element to "span" element
- [Hero] content spacing changes
- [Icon] ariaLabel, ariaLabelledby and ariaHidden replaced by native aria-\* counterparts.
- [StatusLabel] iconLeft prop renamed to iconStart
- [Table] dataTestId prop changed to "data-testid"
- [Notification] dataTestId prop changed to "data-testid"
- [Logo] dataTestId prop changed to "data-testid"
- [Pagination] dataTestId prop changed to "data-testid"
- [StatusLabel] dataTestId prop changed to "data-testid"
- [Stepper] dataTestId prop changed to "data-testid"
- [Breadcrumb] ariaLabel prop changed to "aria-label"
- [Footer] ariaLabel prop changed to "aria-label"
- [Footer.Base] ariaLabel prop changed to "aria-label"
- [Footer.Custom] ariaLabel prop changed to "aria-label"
- [Footer.Utilities] ariaLabel prop changed to "aria-label"
- [Footer.Navigation] ariaLabel prop changed to "aria-label"
- [Footer.Link] ariaLabel prop changed to "aria-label"
- [Header] ariaLabel prop changed to "aria-label"
- [Header.ActionBar] ariaLabel prop changed to "aria-label"
- [Header.ActionBarItem] ariaLabel prop changed to "aria-label"
- [Header.LanguageSelector] ariaLabel prop changed to "aria-label"
- [Header.NavigationMenu] ariaLabel prop changed to "aria-label"
- [Header.Universalbar] ariaLabel prop changed to "aria-label"
- [SideNavigation] ariaLabel prop changed to "aria-label"
- [SkipLink] ariaLabel prop changed to "aria-label"

#### Added

- [Hero] New information element below the hero for photographer credits
- [StatusLabel] Added SCSS support and scss files are exported too. See documentation about usage.

#### Changed

Changes that are not related to specific components

- [Component] What has been changed
- [Hero] The optional arrow element does not overlap with the element below
- [Notification] Change auto closing notification progressbar to decrease instead of increase.
- [LinkBox] Change size prop to an enum (LinkboxSize.Small, LinkboxSize.Medium, LinkboxSize.Large), not a breaking change though since the enum values are identical to the old ones.
- [Logo] Changed size prop to enum (LogoSize.Small, LogoSize.Medium, LogoSize.Large and LogoSize.Full) which correspond to previous values "small", "medium", "large" and "full".

#### Fixed

Expand All @@ -31,11 +76,24 @@ Changes that are not related to specific components

#### Breaking

- [Component] What are the breaking changes?
- [Hero] The optional arrow icon takes vertical space and may require background color to be set.
- [Tag] Rewritten Tag component
- [Button] Renewed Button component with theming support
- [Link] Renamed hds-icon-left class to hds-icon-start
- [Table] id and headingId props do not have default values anymore. Affects also the id of the CheckBox inside the Table. Also removed default dataTestId
- [Stepper] Removed default dataTestId.
- [Pagination] Removed default dataTestId.
- [SelectionGroup] Updated element spacings
- Typography changes to heading line-heights and letter-spacings
- [Table] heading typography changes
- [StepByStep] heading typography changes
- [Notification] heading typography changes
- [Highlight] heading typography changes
- [Pagination] Active element changed from "a" element to "span" element

#### Added

- [Component] What is added?
- [Hero] New information element below the hero for photographer credits

#### Changed

Expand All @@ -47,6 +105,12 @@ Changes that are not related to specific components

- [Component] What bugs/typos are fixed?

### Design tokens

#### Breaking

- Changed colour `black-60` from `#666666` to `#595959` due to contrast issues and the accessibility and readability improvement.

### Documentation

#### Breaking
Expand All @@ -55,13 +119,19 @@ Changes that are not related to specific components

#### Added

- [Component] What is added?
- [StatusLabel] Documentation about SCSS usage.

#### Changed

Changes that are not related to specific components

- [Component] What has been changed
- [Hero] Added documentation and examples for new information element
- [Tag] Document the new Tag component and it's uses
- [Button] Renewed Button component with theming support
- [Notification] Changed according to new size enum.
- [ErrorSummary] Changed according to new size enum.
- [Icon] Document the size prop as enum usage.
- Changes to the line-heights in foundation/typography.

#### Fixed

Expand Down
4 changes: 0 additions & 4 deletions analytics/.gitignore

This file was deleted.

57 changes: 0 additions & 57 deletions analytics/README.md

This file was deleted.

31 changes: 0 additions & 31 deletions analytics/find-hds-react-version-usage.sh

This file was deleted.

54 changes: 0 additions & 54 deletions analytics/helpers/clone-repos.js

This file was deleted.

Loading
Loading