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

release: 1.6.1 #527

Merged
merged 49 commits into from
Feb 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
49 commits
Select commit Hold shift + click to select a range
2dd818a
release: @scania/[email protected] (#458)
theJohnnyMe Dec 8, 2023
8f1e861
fix(release-angular): added working directory (#459)
theJohnnyMe Dec 13, 2023
00a6b2f
test(banner): add initial tests for banner component (#463)
alfredskeden Dec 18, 2023
eaf47b2
test(card): Adding unit tests (#464)
alfredskeden Dec 18, 2023
f8c3a5d
fix(slider): update so that watch for values does not send a dispatch…
alfredskeden Dec 18, 2023
c6f8423
test(header): Adding unit tests (#461)
alfredskeden Dec 18, 2023
edd4320
test(footer): Adding unit tests (#462)
alfredskeden Dec 18, 2023
ead0320
test(popover-canvas): Adding unit tests (#467)
alfredskeden Dec 18, 2023
0d873fa
fix(message): refactor the unit tests for less implementation details…
alfredskeden Dec 18, 2023
809fdc3
test(breadcrumbs): initial tests for breadcrumbs (#470)
alfredskeden Dec 19, 2023
c2cbed5
test(popover-menu): Adding unit tests (#468)
alfredskeden Dec 19, 2023
834eb1a
fix(side-menu): collapsed state on mobile view (#473)
theJohnnyMe Jan 8, 2024
d37f312
build(stencil): upgrade to 4.9.0 (#474)
theJohnnyMe Jan 8, 2024
878fadb
feat(footer): copyright slot (#475)
theJohnnyMe Jan 8, 2024
1b2e02e
test(side-menu): initial unit testing (#472)
alfredskeden Jan 9, 2024
dd6916e
fix(dropdown, text-field, textarea): global css bleeding in label and…
theJohnnyMe Jan 9, 2024
af9dc62
fix(button): colors update (#460)
theJohnnyMe Jan 9, 2024
10340a7
fix(dropdown): empty no-result-text prop (#478)
theJohnnyMe Jan 11, 2024
1c9421f
test(modal): adding unit tests (#471)
timrombergjakobsson Jan 11, 2024
b57877d
build(deps-dev): bump follow-redirects in /packages/angular (#479)
dependabot[bot] Jan 11, 2024
ef9d403
fix(dropdown): fix selected value when erased (#480)
timrombergjakobsson Jan 11, 2024
29254bb
release: 1.4.0. (#483)
theJohnnyMe Jan 12, 2024
45ca3fc
feat(icon): enable Storybook change of title and description (#477)
theJohnnyMe Jan 15, 2024
eb5180c
test(dropdown): test for capturing erasing of text in input (#482)
timrombergjakobsson Jan 16, 2024
8c1ce60
test(link): added unit test (#484)
theJohnnyMe Jan 24, 2024
4229435
feat(table-header-cell): added slot (#485)
theJohnnyMe Jan 24, 2024
a167200
fix(modal): medium screen and xs size (#490)
theJohnnyMe Jan 24, 2024
d40d54d
fix(dropdown-filter): disabled can be opened (#487)
mJarsater Jan 24, 2024
06f4198
chore(Chromatic): remove chromatic connection (#488)
timrombergjakobsson Jan 25, 2024
c770bf0
fix(dropdown): adding check for value (#492)
timrombergjakobsson Jan 30, 2024
e2e0d70
test(slider): added unit tests (#489)
theJohnnyMe Jan 30, 2024
7699397
build: test files and stories removed from shipping (#493)
theJohnnyMe Jan 30, 2024
9ff7bb7
release: [email protected] (#495)
theJohnnyMe Jan 30, 2024
f8158e7
build(stencil): 4.12.0 (#497)
theJohnnyMe Feb 1, 2024
73f52c4
feat(text-field): adding number type and min-max attributes (#496)
gokberknur Feb 5, 2024
ce08d20
feat(datetime): setValue method (#500)
theJohnnyMe Feb 6, 2024
97a5a51
feat(table): disabled state of checkbox in multiselect rows (#499)
theJohnnyMe Feb 8, 2024
d0ebc77
fix: release sync (#503)
theJohnnyMe Feb 9, 2024
031a70e
fix(icon): a11y (#504)
theJohnnyMe Feb 13, 2024
fd47cce
ci(release-scripts): run on develop and release all (#505)
theJohnnyMe Feb 13, 2024
9896a0e
ci: pr template update (#506)
theJohnnyMe Feb 13, 2024
0e7aff4
fix(header): addresses the flash of dropdown on page reload (#508)
timrombergjakobsson Feb 15, 2024
3998657
test(radio-button): added unit test (#507)
theJohnnyMe Feb 15, 2024
8f4a849
Adds offsetSkidding and offsetDistance props for the tooltip
mJarsater Feb 19, 2024
c97b932
description for controls (#516)
mJarsater Feb 20, 2024
221df8e
fix(datetime): corrected custom event (#514)
theJohnnyMe Feb 21, 2024
825f3a4
docs: remove netlify links in readmes and stories (#515)
mJarsater Feb 21, 2024
5ff28f7
fix(storybook): added missing comma to controls (#518)
timrombergjakobsson Feb 21, 2024
69b2923
Release of @scania/[email protected] (#525)
github-actions[bot] Feb 22, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 1 addition & 4 deletions .github/CODE_STYLE.md
Original file line number Diff line number Diff line change
Expand Up @@ -140,9 +140,6 @@ they might change without notice. Their payload might also be changed based on r
with 'internal'. This is to make it as clear as possible to a user that this is an internal event that the components are using,
but the user should not interact with it. E.g. `internalTdsPropsChange`.

### Development version of Storybook
https://develop--tegel-storybook.netlify.app/ is a Storybook version connected to the develop branch.
It offers the possibility to check out the version of code that is merged to develop branch.
It can be used to see a version of code that is about to be released or to do a regression test.



13 changes: 9 additions & 4 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,20 @@
_Describe what the pull-request is about_

**Solving issue**
_In case of GitHub issue add # plus the number of the issue (for example #123) OR if it is Azure then AB# and number of ticket_
_Please link to the issue this pull request is solving by adding ticket number after CDEP-_
Fixes: [CDEP-](https://tegel.atlassian.net/browse/CDEP-)

**How to test**
_Add description how to test if possible_
_Provide detailed steps for testing, including any necessary setup._
1. Go to...
2. Check in...
3. Run ...

**Checklist before submission**
- [ ] I have added unit tests for my changes (if applicable)
- [ ] All existing tests pass
- [ ] I have updated the documentation (if applicable)

**Suggested test steps**
- [ ] Browser testing (Chrome, Safari, Firefox)
- [ ] Keyboard operability
Expand All @@ -22,7 +27,7 @@ _Add description how to test if possible_
- [ ] Events

**Screenshots**
_If applicable, add screenshots to help explain_
_Include before/after screenshots for UI changes._

**Additional context**
_Add any other context about the pull-request here._
_Add any other context or feedback requests about the pull-request here._
30 changes: 0 additions & 30 deletions .github/workflows/chromatic.yml

This file was deleted.

2 changes: 1 addition & 1 deletion .github/workflows/create-release-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
- name: Check out code
uses: actions/checkout@v4
with:
ref: main
ref: develop

# Reference for this pattern: https://github.com/peter-evans/create-pull-request/blob/main/docs/examples.md#keep-a-branch-up-to-date-with-another
- name: Reset promotion branch
Expand Down
87 changes: 87 additions & 0 deletions .github/workflows/release-all.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@
name: Release All Packages

on:
workflow_dispatch:
inputs:
nodeVersion:
description: 'Node version'
required: true
default: '20.9.0'
type: string
tags:
description: 'Tag'
required: true
default: 'latest'
type: choice
options:
- latest
- beta
- dev
dryRun:
description: 'Dry run'
required: false
default: false
type: boolean

jobs:
release-core:
runs-on: ubuntu-latest
outputs:
version: ${{ steps.core-release.outputs.version }}
steps:
- name: Trigger Core Release
id: core-release
uses: benc-uk/workflow-dispatch@v1
with:
workflow: release-core.yml
token: ${{ secrets.GITHUB_TOKEN }}
inputs: '{"nodeVersion": "${{ github.event.inputs.nodeVersion }}", "tags": "${{ github.event.inputs.tags }}", "dryRun": "${{ github.event.inputs.dryRun }}"}'

release-angular:
needs: release-core
runs-on: ubuntu-latest
steps:
- name: Trigger Angular Release
uses: benc-uk/workflow-dispatch@v1
with:
workflow: release-angular.yml
token: ${{ secrets.GITHUB_TOKEN }}
inputs: '{"nodeVersion": "${{ github.event.inputs.nodeVersion }}", "tags": "${{ github.event.inputs.tags }}", "dryRun": "${{ github.event.inputs.dryRun }}"}'

release-react:
needs: release-core
runs-on: ubuntu-latest
steps:
- name: Trigger React Release
uses: benc-uk/workflow-dispatch@v1
with:
workflow: release-react.yml
token: ${{ secrets.GITHUB_TOKEN }}
inputs: '{"nodeVersion": "${{ github.event.inputs.nodeVersion }}", "tags": "${{ github.event.inputs.tags }}", "dryRun": "${{ github.event.inputs.dryRun }}"}'

create-pr:
needs: [release-core, release-angular, release-react]
runs-on: ubuntu-latest
if: success()
steps:
- name: Check out code
uses: actions/checkout@v4
with:
ref: develop

- name: Core - Read Package.json Version
id: version
working-directory: packages/core
run: echo "PACKAGE_VERSION=$(jq -r .version package.json)" >> $GITHUB_ENV

- name: Create Pull Request
id: create-pr
uses: peter-evans/create-pull-request@v5
with:
commit-message: 'release: ${{ env.PACKAGE_VERSION }}'
title: 'release: ${{ env.PACKAGE_VERSION }}'
body: |
This PR is to sync the develop branch with the main branch after the successful release of the core package.
Version: ${{ env.PACKAGE_VERSION }}
base: main
branch: develop
11 changes: 6 additions & 5 deletions .github/workflows/release-angular.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ on:
tags:
description: 'Tag'
required: true
default: 'beta'
default: 'latest'
type: choice
options:
- latest
Expand All @@ -21,7 +21,7 @@ on:
dryRun:
description: 'Dry run'
required: false
default: true
default: false
type: boolean

jobs:
Expand All @@ -33,7 +33,7 @@ jobs:
- name: Check out code
uses: actions/checkout@v4
with:
ref: main
ref: develop

- name: Set up node
# Setup .npmrc file to publish to npm
Expand All @@ -43,7 +43,7 @@ jobs:
registry-url: 'https://registry.npmjs.org'

- name: Set Tegel user
run: git config --global user.name "Tegel - Scania" && git config --global user.email "[email protected]"r
run: git config --global user.name "Tegel - Scania" && git config --global user.email "[email protected]"

- name: Angular - Read package.json Version
id: version
Expand All @@ -69,6 +69,7 @@ jobs:
run: npm run build-angular

- name: Angular - Publish
working-directory: packages/angular
run: |
if [ "${{ github.event.inputs.dryRun }}" == "true" ]; then
npm publish --tag ${{ github.event.inputs.tags }} --dry-run
Expand All @@ -89,7 +90,7 @@ jobs:
- name: Check out code
uses: actions/checkout@v4
with:
ref: main
ref: develop

- name: Remove git tag on failure
run: |
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/release-core.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ on:
tags:
description: 'Tag'
required: true
default: 'beta'
default: 'latest'
type: choice
options:
- latest
Expand All @@ -21,7 +21,7 @@ on:
dryRun:
description: 'Dry run'
required: false
default: true
default: false
type: boolean

jobs:
Expand All @@ -33,7 +33,7 @@ jobs:
- name: Check out code
uses: actions/checkout@v4
with:
ref: main
ref: develop

- name: Set up node
uses: actions/setup-node@v3
Expand Down Expand Up @@ -88,7 +88,7 @@ jobs:
- name: Check out code
uses: actions/checkout@v4
with:
ref: main
ref: develop

- name: Remove git tag on failure
run: |
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/release-react.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ on:
tags:
description: 'Tag'
required: true
default: 'beta'
default: 'latest'
type: choice
options:
- latest
Expand All @@ -21,7 +21,7 @@ on:
dryRun:
description: 'Dry run'
required: false
default: true
default: false
type: boolean

jobs:
Expand All @@ -31,7 +31,7 @@ jobs:
- name: Check out code
uses: actions/checkout@v4
with:
ref: main
ref: develop

- name: Set up node
uses: actions/setup-node@v3
Expand Down Expand Up @@ -86,7 +86,7 @@ jobs:
- name: Check out code
uses: actions/checkout@v4
with:
ref: main
ref: develop

- name: Remove git tag on failure
run: |
Expand Down
5 changes: 2 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,22 +1,21 @@
![GitHub release (latest by date)](https://img.shields.io/github/v/release/scania-digital-design-system/tegel)
![Status: Beta](https://img.shields.io/badge/status-beta-red)
[![Storybook](https://img.shields.io/badge/docs-storybook-ff69b4)](https://tegel-storybook.netlify.app/)
[![Storybook](https://img.shields.io/badge/docs-storybook-ff69b4)](https://tds-storybook.tegel.scania.com/)
![](https://img.shields.io/github/license/scania-digital-design-system/tegel)
[![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg)](http://commitizen.github.io/cz-cli/)
![node-current](https://img.shields.io/badge/Node.js-18-orange)
[![Downloads](https://img.shields.io/npm/dy/@scania/tegel?color=f4c430)](https://www.npmjs.com/package/@scania/tegel)
[![Downloads](https://img.shields.io/npm/dw/@scania/tegel?color=76a4ed)](https://www.npmjs.com/package/@scania/tegel)
[![Last Commit](https://img.shields.io/github/last-commit/scania-digital-design-system/tegel)](https://github.com/scania-digital-design-system/tegel/commits/main)
[![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg)](https://github.com/scania-digital-design-system/tegel/pulls)
[![Netlify Status](https://api.netlify.com/api/v1/badges/8070a4bb-ed31-4125-86aa-0c6140c55e73/deploy-status)](https://app.netlify.com/sites/tegel-storybook/deploys)



# Tegel Design System

Official website: https://tegel.scania.com/

Storybook: https://tegel-storybook.netlify.app/
Storybook: https://tds-storybook.tegel.scania.com/

The design system supports the design and development of digital solutions at Scania. The purpose is to secure a coherent, premium brand and user experience across all of Scania's digital touchpoints.

Expand Down
17 changes: 13 additions & 4 deletions color/_tokens.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,17 @@
@import './mixins';

$black: (
black-100: rgb(0 0 0 / 100%),
black-87: rgb(0 0 0 / 87%),
black-48: rgb(0 0 0 / 48%),
black-38: rgb(0 0 0 / 38%),
);
$white: (
white-100: rgb(255 255 255 / 100%),
white-87: rgb(255 255 255 / 87%),
white-48: rgb(255 255 255 / 48%),
white-38: rgb(255 255 255 / 38%),
);
$grey: (
grey-958: #0d0f13,
grey-900: #1d2229,
Expand All @@ -15,7 +27,6 @@ $grey: (
grey-100: #edeff3,
grey-50: #f9fafb,
);

$blue: (
blue-900: #001533,
blue-800: #041e42,
Expand All @@ -28,7 +39,6 @@ $blue: (
blue-100: #bacde8,
blue-50: #e4e9f1,
);

$red: (
red-900: #450307,
red-800: #6a080f,
Expand Down Expand Up @@ -69,8 +79,8 @@ $orange: (
orange-100: #fbe3df,
orange-50: #fdf5f3,
);
$original-colors: map-collect($black, $white, $grey, $blue, $red, $green, $orange);

$original-colors: map-collect($grey, $blue, $red, $green, $orange);
//TODO: Should we keep brand pallete?
$brand-pallete: (
black: #000,
Expand All @@ -88,5 +98,4 @@ $semantic: (
positive: #1dab8b,
information: get-color-original(blue-400),
);

$all-colors: map-collect($original-colors, $semantic, $brand-pallete);
2 changes: 1 addition & 1 deletion packages/angular/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
[![Storybook](https://img.shields.io/badge/docs-storybook-ff69b4)](https://tegel-storybook.netlify.app/)
[![Storybook](https://img.shields.io/badge/docs-storybook-ff69b4)](https://tds-storybook.tegel.scania.com/)
![](https://img.shields.io/github/license/scania-digital-design-system/tegel)
![Status: Beta](https://img.shields.io/badge/status-beta-red)
![npm](https://img.shields.io/npm/v/%40scania%2Ftegel-angular)
Expand Down
Loading
Loading