Skip to content

Commit

Permalink
feat: upgrade to lit 2.1.1 to fix skypack issue (#151)
Browse files Browse the repository at this point in the history
* refactor(pagination): remove part info

* feat(pagination): support max unknown

* refactor(pagination): remove unused function `pageInfo`

* refactor(pagination): handle input page selection

* refactor(pagination): add state for check input is editing

* refactor(pagination): request update element on blur

* test(pagination): update transform text input selected test case

* refactor(pagination): use state decorator to auto update the input

* refactor(pagination): deprecate page, totalItems, page-changed (#78)

* chore(pagination): add max attribute demo

* test: fix test all fail when using setTimeout

* refactor(pagination): update getter setter and internal value

* chore(pagination): update demo page

* refactor(pagination): update internal max and property change events

* fix(pagination): max limit does not work

* refactor(pagination): validate value is in supported range

* refactor(pagination): add range value validation

* refactor(pagination): add deprecation notice on getter

* docs(pagination): remove type from jsdoc

* test(pagination): update to support value, max properties

* fix(pagination): getter in internal will retrigger incorrect warning message

* refactor(pagination): reset input behavior for end users

* refactor(pagination): reset input behavior for developers

* test(pagination): refactor unit test

* refactor(pagination): refactor innternal value and warning message

* refactor(pagination): remove unnecessary blur input

* test(pagination): update test case to support value and max approach

* refactor(pagination): use getter for toggle button state

* test(pagination): refactor unit-test

* chore(pagination): remove demo for testing

* fix(pagination): tab on the input to set a value

* fix(pagination): the input does not get disable state from the root

* test(pagination): add test case interaction when page is over

* test(pagination): fix typo

* test(pagination): remove unexpected attribute in snapshot

* refactor(pagination): cast type for text input

* refactor(pagination): remove unused interface

* chore(pagination): fix indent js doc incorrect

* fix(pagination): remove warning when set correct type value

* fix(pagiantion): convert prop toString in setter

* fix(pagination): add missing feature blur to set page from the input

* refactor(pagination): getter setter of max and page should be string

* chore(release): publish [skip ci]

 - @refinitiv-ui/[email protected]

* fix(halo-theme): fix backward compat with current import native-element path

* fix(themes): ignore hover styles on mobile device (#129)

Co-authored-by: Theeraphat-Sorasetsakul <[email protected]>

* chore(release): publish [skip ci]

 - @refinitiv-ui/[email protected]
 - @refinitiv-ui/[email protected]
 - @refinitiv-ui/[email protected]
 - @refinitiv-ui/[email protected]
 - @refinitiv-ui/[email protected]
 - @refinitiv-ui/[email protected]
 - @refinitiv-ui/[email protected]
 - @refinitiv-ui/[email protected]

* chore: add incremental to TypeScript compiler option for faster subsequent builds (#136)

* chore: add `incremental` to TypeScript compiler option for faster subsequent builds

* chore: update lock-file

* ci: create `GitHub release` and curated CHANGELOG on release (#137)

* chore(polyfills): remove exports and entrypoints (#141)

* chore(polyfills): remove exports and entrypoints

* chore(polyfills): change all.js to index.js

Co-authored-by: Wasuwat Limsuparhat <[email protected]>

* ci: use multiple stage pipeline for the test workflow (#140)

* fix(pagination): handle case when user input number with string (#142)

* fix: release script should not be publish to NPM (#144)

* chore: add development mode to dev-server so that developers can see  the warnings (#147)

* feat: upgrade to Lit 2.1.1

Co-authored-by: Sakchai Homhual <[email protected]>
Co-authored-by: Theeraphat-Sorasetsakul <[email protected]>
Co-authored-by: Theeraphat Sorasetsakul <[email protected]>
Co-authored-by: Sakchai Homhual <[email protected]>
Co-authored-by: refinitiv-ui-dev <[email protected]>
Co-authored-by: Domrongpon Tanpaibul <[email protected]>
Co-authored-by: dtanp <[email protected]>
Co-authored-by: Sarin-Udompanish <[email protected]>
  • Loading branch information
9 people authored Jan 10, 2022
1 parent 7653ee2 commit ab77b89
Show file tree
Hide file tree
Showing 47 changed files with 3,341 additions and 3,802 deletions.
39 changes: 39 additions & 0 deletions .github/actions/setup/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: 'Setup Environment and Resources'
description: 'Setup environment, resources and caching'

outputs:
cache-dependencies-hit:
description: "Use dependencies cache"
value: ${{ steps.cache-npm.outputs.cache-hit }}
cache-build-hit:
description: "Use build output scripts cache"
value: ${{ steps.cache-build.outputs.cache-hit }}

runs:
using: "composite"
steps:
- name: Setup Node.js
uses: actions/setup-node@v2
with:
node-version: 15.x

- name: Setup caching dependencies
uses: actions/cache@v2
id: cache-npm
with:
path: |
node_modules
*/*/node_modules
key: ${{ runner.os }}-npm-${{ hashFiles('**/package-lock.json') }}
restore-keys: ${{ runner.os }}-npm-${{ hashFiles('**/package-lock.json') }}

- name: Setup caching build
uses: actions/cache@v2
id: cache-build
with:
path: |
packages/*/lib
packages/*-theme/**/*.js
packages/*-theme/**/*.css
key: ${{ runner.os }}-build-${{ github.sha }}
restore-keys: ${{ runner.os }}-build-${{ github.sha }}
26 changes: 0 additions & 26 deletions .github/workflows/lint.yml

This file was deleted.

2 changes: 1 addition & 1 deletion .github/workflows/prerelease.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:

# Increment a prerelease version for change packages according to conventional commits
# Add --preid to change prerelease identifier, default to alpha
- run: lerna version --conventional-commits --conventional-prerelease --yes
- run: lerna version --no-changelog --conventional-commits --conventional-prerelease --yes

# Publish package to NPM at tag `next`
- run: lerna publish from-git --dist-tag next --yes
Expand Down
17 changes: 10 additions & 7 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,18 @@ jobs:
git config --global user.email "[email protected]"
git config --global user.name "refinitiv-ui-dev"
# Installing package dependencies strictly based on lock file
- run: npm ci --ignore-scripts --audit=false --fund=false
- name: Dependencies Installation
run: npm ci --ignore-scripts --audit=false --fund=false

# Builds only changed packages including its dependencies
- run: lerna run build:prod --include-dependencies --since
- name: Production build
run: lerna run build:prod --include-dependencies --since

# Increment version for change packages according to conventional commits
- run: lerna version --conventional-commits --yes
- name: Bump version and create GitHub release
run: lerna version --create-release github --conventional-commits --yes
env:
GH_TOKEN: ${{ secrets.GH_TOKEN }}

- run: lerna publish from-git --yes
- name: Publish to NPM
run: lerna publish from-git --yes
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
62 changes: 54 additions & 8 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ on:
pull_request:
branches: [develop]
jobs:
test-ubuntu:
build:
runs-on: ubuntu-latest
steps:
- name: Check out repository code
Expand All @@ -13,14 +13,60 @@ jobs:
# Pulls all commits (needed for Lerna)
fetch-depth: 0

- name: Setup Node.js
uses: actions/setup-node@v2
- name: Setup resources and environment
uses: ./.github/actions/setup
id: setup

- name: Install Dependencies
if: steps.setup.outputs.cache-dependencies-hit != 'true'
run: npm ci --ignore-scripts --audit=false --fund=false

- name: Build
if: steps.setup.outputs.cache-build-hit != 'true'
run: lerna run build --include-dependencies --since origin/develop...HEAD

lint:
needs: build
runs-on: ubuntu-latest
steps:
- name: Check out repository code
uses: actions/checkout@v2
with:
node-version: 15.x
cache: 'npm'
fetch-depth: 0

- name: Setup resources and environment
uses: ./.github/actions/setup

- name: Lint
run: lerna run lint --include-dependents --since origin/develop...HEAD

- run: npm ci --ignore-scripts --audit=false --fund=false
chrome:
needs: lint
runs-on: ubuntu-latest
steps:
- name: Check out repository code
uses: actions/checkout@v2
with:
fetch-depth: 0

- name: Setup resources and environment
uses: ./.github/actions/setup

- name: Test
run: lerna run test --include-dependents --since origin/develop...HEAD -- -- --browsers chrome

firefox:
needs: lint
runs-on: ubuntu-latest
steps:
- name: Check out repository code
uses: actions/checkout@v2
with:
fetch-depth: 0

- run: lerna run build --include-dependencies --since origin/develop...HEAD
- name: Setup resources and environment
uses: ./.github/actions/setup

- run: lerna run test --include-dependents --since origin/develop...HEAD
- name: Test
# TODO: `@refinitiv/core` has test coverage below threshold on Firefox
run: lerna run test --include-dependents --since origin/develop...HEAD -- -- --browsers firefox --includeCoverage false
Loading

0 comments on commit ab77b89

Please sign in to comment.