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

Merge development branch #178

Merged
merged 319 commits into from
Jan 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
319 commits
Select commit Hold shift + click to select a range
f6e5ddc
Set status to disconnected on disconnection and connection errors
nandito Sep 1, 2023
14ec6de
Bump version tag
nandito Sep 1, 2023
cefd295
Exclude non person roles from the client list when joining a room
nandito Aug 30, 2023
ab768a4
Store cloud recording status in the state
nandito Aug 31, 2023
4b46ac7
Store streaming status in the state
nandito Aug 31, 2023
f72166b
Bump jslib-media
thyal Sep 6, 2023
b2aa1fc
Support remote screenshare
thyal Sep 6, 2023
62c0127
Bump version tag
thyal Sep 6, 2023
5666d0b
Update to latest jslib-media version
havardholvik Sep 6, 2023
b336eda
Report VideoView resolutions to SFU
nandito Sep 5, 2023
dcef1dd
Fix README
nandito Sep 5, 2023
7f7cecb
Bump version tag
nandito Sep 7, 2023
1c12970
Refactor room event listener setup
nandito Sep 8, 2023
b3f24f0
Remove event listeners when useRoomConnection unmounts
nandito Sep 8, 2023
96be8e5
Bump version tag
nandito Sep 8, 2023
33985a8
Fix types for event listeners
thyal Sep 11, 2023
2d306d1
Add local screenshare support
thyal Sep 8, 2023
84db5a4
Bump version tag
thyal Sep 12, 2023
74e4fa0
Add missing events dependency
nandito Sep 27, 2023
a96910c
Do not resolve `assert` in rollup
nandito Oct 4, 2023
9e8f1ee
Bump package version tag
nandito Oct 4, 2023
c922333
Fix incorrect handling of stream added
havardholvik Oct 9, 2023
f855529
remove rollup and plugins
kevinwhereby Oct 10, 2023
09a3643
Add and configure esbuild
kevinwhereby Oct 10, 2023
7100257
Revert "Move to esbuild"
kevinwhereby Oct 12, 2023
f193872
Remove handled knocker from the waiting participant list
nandito Oct 13, 2023
36c2270
Add sample app for e2e testing
nandito Sep 28, 2023
b685468
Create build sdk script for the sample app
nandito Sep 28, 2023
4bc1728
Init Playwright e2e tests
nandito Sep 28, 2023
4f15f95
Run Playwright tests on Github
nandito Sep 28, 2023
6c2ac47
Update sdk install script in sample app
nandito Sep 29, 2023
7656cbc
Add support for passing in MediaStream
nandito Oct 6, 2023
a921268
Use canvas based fake webcam in the sample app
nandito Oct 6, 2023
9725914
Use transient rooms for api testing
nandito Oct 6, 2023
0db583e
Init remote participant video testing
nandito Oct 6, 2023
bcccfdd
Add retry-after for test room creation and deletion
nandito Oct 6, 2023
d1c9c99
Add e2e tests for screen sharing
nandito Oct 9, 2023
3aed449
Docs: add e2e testing guide
nandito Oct 9, 2023
bb22ffe
Test audio streams using fake audio
nandito Oct 11, 2023
4023995
Add GitHub PR template
nandito Oct 16, 2023
0601fec
remove rollup and plugins
kevinwhereby Oct 10, 2023
77b5c87
Add and configure esbuild
kevinwhereby Oct 10, 2023
66a349d
Handle pre-render events in embed event listener
kevinwhereby Oct 13, 2023
ce47aa0
Test if video is not frozen
nandito Oct 12, 2023
59ce34b
Test camera and microphone toggle actions
nandito Oct 12, 2023
50a103e
Test knocks
nandito Oct 13, 2023
e6ad4d8
Test sending/receiving chat messages
nandito Oct 13, 2023
6eb5060
Use multiple workers on CI
nandito Oct 13, 2023
d17a358
Cache yarn dependencies in CI actions
nandito Oct 13, 2023
82338ff
Add support for .env files locally
havardholvik Oct 17, 2023
aa4623a
remove build step for npm distribution
kevinwhereby Oct 18, 2023
353444b
Handle native stop screen shares
nandito Oct 19, 2023
dbe7228
Decrease video frame count time frame to 10 secs
nandito Oct 20, 2023
1f26c6e
Create 1 room per test (for each room mode)
nandito Oct 20, 2023
1120561
Bump to latest version of jslib-media
havardholvik Oct 19, 2023
7a549ec
Add mirror support on VideoView
thyal Oct 19, 2023
05bf5f4
Bump version tag
thyal Oct 20, 2023
c42a3ce
Use default signalling socket options from jslib-media
richtrwhereby Oct 16, 2023
03a24e9
Update test/sample-app to use latest version of browser-sdk (alpha26)
richtrwhereby Oct 20, 2023
df9921b
Pass withFakeAudioStream in to video media toggle tests to fix webkit…
richtrwhereby Oct 20, 2023
25b1fe3
Fix lint errors
havardholvik Oct 21, 2023
204b73e
Set jest roots to avoid mock warnings
havardholvik Oct 23, 2023
2e687b5
Fix `test was not wrapped in act(...)` warning/error
havardholvik Oct 23, 2023
e145c1d
use similar type aliases for RemoteParticipant and LocalParticipant
kevinwhereby Oct 23, 2023
04b0e26
remove unused properties and prefer undefined vs null
kevinwhereby Oct 23, 2023
f41a190
prefer undefined to empty objects for stream and cloud recording
kevinwhereby Oct 23, 2023
5852ca8
prefer singular for event definitions
kevinwhereby Oct 23, 2023
529bd29
prefer descriptive initial room connection status
kevinwhereby Oct 23, 2023
f92ccf9
handle screenshare exceptions
kevinwhereby Oct 23, 2023
d981bd2
bump alpha package version
kevinwhereby Oct 23, 2023
a383e15
Stop video track when disabling video
havardholvik Oct 17, 2023
96d2051
Install sdk-dependencies in test app
havardholvik Oct 25, 2023
2c1b7c5
Add externalId as attribute in RoomConnectionOptions (#92)
jamesdools-whereby Oct 26, 2023
7c638e4
Add telehealth example app
thyal Oct 27, 2023
56d44c9
Rename `rejected` status to `knock_rejected`
nandito Oct 24, 2023
681cbbe
Remove `accepted` state from room connection status
nandito Oct 24, 2023
ea59e4c
Rename `roomConnectionStatus` to `connectionStatus`
nandito Oct 25, 2023
b14fdb1
Remove `mostRecentChatMessage`
nandito Oct 25, 2023
868c1b5
Remove `startScreenshareError`
nandito Oct 25, 2023
431c112
Replace `isStartingScreenshare` with `localScreenshareStatus`
nandito Oct 25, 2023
331823a
Make `roomConnectionOptions` optional
nandito Oct 25, 2023
8367573
Use the default media constraints in the related story
nandito Oct 25, 2023
6781686
Omit `newJoiner`,`streams`, `addStream`, `removeStream` from `remoteP…
nandito Oct 25, 2023
13390e5
Move RemoteParticipantState typedef to useRoomConnection
nandito Oct 26, 2023
aa7b9a1
Clean remoteParticipants state in the hook
nandito Oct 26, 2023
0e771ee
Bump version tag to beta1
nandito Oct 25, 2023
ee0285d
Bump jslib-media to avoid .getStats() error
havardholvik Oct 27, 2023
8c83542
create RoomEvent/LocalMediaEvent class to type event construction
kevinwhereby Oct 26, 2023
fbfb7de
fix type errors arising from typed event payloads
kevinwhereby Oct 26, 2023
24ea441
rename RoomEvent to RoomConnectionEvent
kevinwhereby Oct 27, 2023
b6bba07
separate module imports
kevinwhereby Oct 27, 2023
c2ea9c8
Remove exports of low-level classes
havardholvik Oct 27, 2023
c418f71
Fixed type exports
havardholvik Oct 27, 2023
15e22d8
Bump browser-sdk to latest version in example app
thyal Oct 30, 2023
c19fa0e
Set VideoView width and height to 100% by default
thyal Oct 30, 2023
b8f48fe
embeded - bind this to message event listener
kevinwhereby Oct 31, 2023
d589ed2
add new docs links to readme
kevinwhereby Nov 1, 2023
3e548ea
Bump jslib-media version
nandito Oct 31, 2023
72b7dee
Autofix fixable security issues
nandito Oct 31, 2023
d086758
Bump jslib-media version
nandito Nov 2, 2023
f2a2453
Upgrade Storybook 6 to 7
nandito Nov 2, 2023
976839f
Add cloud recording start/stop actions
nandito Nov 3, 2023
2888456
Handle cloud recording errors
nandito Nov 3, 2023
11b99f2
Bump jslib-media version (minor)
nandito Nov 6, 2023
d6aac5b
Import `assert` from jslib-media and remove 3rd party assert
nandito Nov 6, 2023
e57d7c3
Remove redundant type checks
nandito Nov 6, 2023
42524b9
Make use of media constraints helpers
havardholvik Nov 2, 2023
3b8f22c
Clean up log output
nandito Nov 7, 2023
3921170
Replace esbuild with Rollup
havardholvik Nov 8, 2023
ef0ffa6
Update node version
havardholvik Nov 8, 2023
f237c29
Update node version + replace process envs
havardholvik Nov 8, 2023
79dcc43
re-enable embedded iframe builds
kevinwhereby Nov 8, 2023
f055cd1
Add rtcstats to bundle
thyal Nov 8, 2023
2154369
Bump version tag
thyal Nov 8, 2023
536818b
Fix Storybook default args
havardholvik Nov 7, 2023
cb37a40
Fix build and lint warnings
havardholvik Nov 8, 2023
de5f26f
Initialize embed-element example app
nandito Nov 8, 2023
023ca8f
Add missing WherebyEmbedAttributes types
nandito Nov 8, 2023
2567e56
Add <whereby-embed> element to the embed-element-app
nandito Nov 8, 2023
fa99cfe
Bumped SDK version
havardholvik Nov 9, 2023
6c7e46e
Copy quiz example app to this repo
nandito Nov 10, 2023
a8c656b
Fix device toggles in the quiz example app
nandito Nov 10, 2023
b17542a
Update README.md
nrolls Dec 4, 2023
fd53ac4
Add redux toolkit dependency
thyal Oct 23, 2023
526dbae
Add store
thyal Oct 27, 2023
4e18a7f
Add organization slice
thyal Oct 31, 2023
cc553e0
Add createAppAsyncThunk helper
thyal Nov 8, 2023
cacdb73
Update participant stream
thyal Nov 10, 2023
0913c74
Handle new client
thyal Nov 10, 2023
2c2f367
Handle audio and video enable events
thyal Nov 10, 2023
41b54cb
Handle metadata changed event
thyal Nov 10, 2023
fd22592
Dispatch participants changed event
thyal Nov 10, 2023
3944759
Handle chat messages
thyal Nov 10, 2023
55ed334
Handle change display name event
thyal Nov 10, 2023
145c9fd
Handle knock functionality
thyal Nov 11, 2023
21adde2
Add knock event
thyal Nov 11, 2023
8a884fa
Add reconnect functionality
thyal Nov 12, 2023
b62314d
Handle signal disconnect
thyal Nov 12, 2023
234b677
Handle remote screenshares
thyal Nov 12, 2023
ef75893
Add local participant slice
thyal Nov 12, 2023
c7d8bc2
Clean up
thyal Nov 12, 2023
2f640a7
Handle accept/reject knock
thyal Nov 12, 2023
1968d9c
WIP cloud recording
thyal Nov 12, 2023
c3cfafe
Move room connection to /core/RoomConnection/
thyal Nov 20, 2023
f7adcb5
Dispatch events for cloud recording started/stopped
thyal Nov 20, 2023
3c93c2c
Add streaming slice
thyal Nov 20, 2023
df3a741
Extract createAppAsyncThunk out in separate file
thyal Nov 21, 2023
f2add07
Introduce reactor for room join
havardholvik Nov 21, 2023
06d2849
Fix import
havardholvik Nov 21, 2023
1dca3fb
Add mock store helper for tests
thyal Nov 21, 2023
49ac963
Add unit tests for app slice
thyal Nov 21, 2023
cdaadd6
Add chat slice tests
thyal Nov 21, 2023
cb4eae5
Add cloud recording slice tests
thyal Nov 21, 2023
750bd8e
Add device credentials slice tests
thyal Nov 21, 2023
a288d64
Make inject services non-optional
thyal Nov 21, 2023
f087a72
Refactor signalConnection slice
havardholvik Nov 22, 2023
b0525f3
More cleanup
havardholvik Nov 23, 2023
076a912
Fixed incorrect import
havardholvik Nov 23, 2023
dfa78af
Add reactor
thyal Nov 23, 2023
dacd520
Fix accept streams
havardholvik Nov 23, 2023
d1a616e
Handle accept streams
thyal Nov 23, 2023
6da6474
Refactor remote participant slice
thyal Nov 23, 2023
e9433df
Handle join/leave client
thyal Nov 23, 2023
902fd45
Handle audio/video enabled + client metadata events
thyal Nov 23, 2023
e98c45f
Add waiting participants slice
thyal Nov 23, 2023
84b6fb5
"Fix" local local media
havardholvik Nov 24, 2023
c41e0e1
Fix not adding local stream
havardholvik Nov 24, 2023
d671fb5
Disconnect rtc and signal on leave
havardholvik Nov 24, 2023
52a5f86
Handle screenshare stream
thyal Nov 24, 2023
7b8cc4a
Add screenshare stream to remote participant
thyal Nov 27, 2023
886b0c2
Fix new client logic
thyal Nov 27, 2023
cbe3d2b
Slices cleanup
havardholvik Nov 27, 2023
ae2504c
Only run reactors when dependencies change
thyal Nov 27, 2023
7c7fa82
Fix circular dependency
thyal Nov 27, 2023
13a5f60
Pass selectors to callback fn in reactor
thyal Nov 28, 2023
8742100
Etc
havardholvik Nov 28, 2023
941be31
Cleanup
havardholvik Nov 28, 2023
685de77
Misc
havardholvik Nov 28, 2023
ed1a2e6
Make it sort of work
havardholvik Nov 28, 2023
d89b843
Allow localMedia slice to work with roomConnection
havardholvik Nov 29, 2023
2b46f0f
Create useReduxRoomConnection hook
thyal Nov 28, 2023
1117740
Add cloud recording and streaming to useRoomConnection hook
thyal Nov 29, 2023
3d01f65
Add back local participant to room connection story
thyal Nov 29, 2023
16b0983
Fix appThunk typing
thyal Nov 29, 2023
1031ebe
Fix services
havardholvik Nov 29, 2023
7acc18d
Move all slices to /core/redux
thyal Nov 29, 2023
f4997ea
Move hooks to folders
thyal Nov 29, 2023
45b5c20
Move useRoomConnection selector to separate file
thyal Nov 29, 2023
bdc2556
Fix socket disconnect
havardholvik Nov 29, 2023
114def7
Expose screenshares to useRoomConnection hook
thyal Nov 29, 2023
5a8f9f6
Handle start/stop screenshare actions
thyal Nov 30, 2023
b751ac0
Extract signal actions to separate file
thyal Nov 30, 2023
3b9802f
Extract rtc actions to separate file
thyal Nov 30, 2023
486a184
Handle knock functionality
thyal Nov 30, 2023
ad33ab4
Re-add reporting of video sizes
havardholvik Nov 30, 2023
bdd9729
Support native stop screenshare
thyal Dec 1, 2023
fa073dd
Re-add type export LocalMEdiaResult
havardholvik Dec 1, 2023
10db2f5
Rename internal LocalMediaRef type
havardholvik Dec 1, 2023
3eebf9b
Remove useRedux... name
havardholvik Dec 1, 2023
7ad84bd
Clean up interface localMedia <> roomConnection
havardholvik Dec 1, 2023
758be7f
Dont default export useLocalMedia
havardholvik Dec 1, 2023
f78fc93
Remove old LocalMedia logic
havardholvik Dec 1, 2023
a3f3c63
Move embed tests
havardholvik Dec 1, 2023
b41f206
Rename test folders
havardholvik Dec 1, 2023
a53daee
Remove LocalMedia reference
havardholvik Dec 1, 2023
8fc1fc4
Some more cleanup
havardholvik Dec 1, 2023
3132a90
Handle locked room
thyal Dec 1, 2023
34db775
Release local media resources on leave and unmount
havardholvik Dec 1, 2023
3a9dffa
Fix env variable substitution
havardholvik Dec 4, 2023
6543706
Wipe all deps when installing sample app
havardholvik Dec 4, 2023
a49bec6
Update waiting participants on room join
havardholvik Dec 4, 2023
a59c53f
Fix exisiting unit tests
thyal Dec 4, 2023
0bc64b6
Fix unit tests for cloud recording
thyal Dec 4, 2023
34b7dd4
Add organization unit tests
thyal Dec 4, 2023
fa66991
Add integration test for organization
thyal Dec 4, 2023
47352f6
Add remote participants unit tests
thyal Dec 4, 2023
29938d1
Add unit tests for room connection slice
thyal Dec 4, 2023
c319368
Add integration tests for room connection slice
thyal Dec 4, 2023
6e3072e
Add integration tests for waiting participants slice
thyal Dec 4, 2023
070ecc7
Fix screenshare stream bug
thyal Dec 4, 2023
3ee3546
Only run tests with spec | test | unit
havardholvik Dec 5, 2023
9bcde03
Fix premature room join
havardholvik Dec 5, 2023
494271f
Add unit tests for rtc connection slice
thyal Dec 5, 2023
35bd0e3
Add integration tests for rtcConnection slice
thyal Dec 5, 2023
41a64fc
Fix selectScreenshares test
thyal Dec 5, 2023
36b6c13
Add unit tests for signalConnection slice
thyal Dec 5, 2023
8015437
Add integration tests for signalConnection slice
thyal Dec 5, 2023
233c376
Remove strict mode in sample app
havardholvik Dec 5, 2023
4e292ff
Fix build warnings
thyal Dec 5, 2023
d0415a6
Use default signalling socket options from jslib-media
thyal Dec 5, 2023
ed34b22
Bump @reduxjs/toolkit
thyal Dec 6, 2023
56476f4
Remove useless unit tests
thyal Dec 6, 2023
35d057f
Add integration tests for rtcConnection
thyal Dec 6, 2023
22ac20c
Clean up integration tests
thyal Dec 6, 2023
88b67fc
Store bound VideoView in hook state to avoid flickering
havardholvik Dec 7, 2023
b207b7b
Don't allow to start cloud recording if already requested
thyal Dec 7, 2023
1a3be56
Prevent binding VideoView more than once
havardholvik Dec 7, 2023
4217264
Disable redux devtools by default
thyal Dec 7, 2023
8681b7e
Remove unused types and use correct type for local media hook result
thyal Dec 8, 2023
14060a3
Remove redux media story
thyal Dec 8, 2023
bacbdb8
Add selector and type files for useLocalMedia
thyal Dec 8, 2023
7fb66c5
Add external id to socket events
thyal Dec 8, 2023
d5c6000
Handle reconnect
thyal Dec 12, 2023
015dc9e
Pass selfId to room_join
thyal Dec 13, 2023
cee3c44
Add initial custom events to rtcstats (for events timeline) (#168)
jamesdools-whereby Jan 3, 2024
d6392a9
Rename local media action creators
thyal Jan 4, 2024
97084d6
Set local media options in state
thyal Jan 4, 2024
78f2c19
Preserve mute state when switching devices
thyal Jan 4, 2024
f9fffef
Rebase embed element
havardholvik Jan 8, 2024
681cdf0
Comment out Recording story
havardholvik Jan 8, 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
19 changes: 19 additions & 0 deletions .babelrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"sourceType": "unambiguous",
"presets": [
[
"@babel/preset-env",
{
"targets": {
"chrome": 100,
"safari": 15,
"firefox": 91
}
}
],
"@babel/preset-typescript",
"@babel/preset-react"
],
"plugins": []
}

6 changes: 4 additions & 2 deletions .eslintrc
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,11 @@
"experimentalObjectRestSpread": true
}
},
"extends": ["eslint:recommended"],
"extends": ["eslint:recommended", "plugin:@typescript-eslint/recommended"],
"plugins": ["jest"],
"rules": {
"no-console": ["error", { "allow": ["warn", "error"] }]
"no-console": ["error", { "allow": ["warn", "error"] }],
"@typescript-eslint/ban-ts-comment": 0,
"@typescript-eslint/no-namespace": "off"
}
}
48 changes: 48 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
### Description

**Summary:**

<!-- Provide a brief overview of what this PR does or aims to achieve. -->

**Related Issue:**

<!-- Link to the GitHub issue that this PR addresses, if applicable. -->

### Testing

<!-- Describe the steps to test the changes made in this PR. Include details
about the test environment, any specific configurations or data required, and
the expected outcomes. -->

### Screenshots/GIFs (if applicable)

<!-- Include any screenshots or GIFs that help visualize the changes made,
especially for UI-related changes. -->

### Checklist

- [ ] My code follows the project's coding standards.
- [ ] I have written unit tests (if applicable).
- [ ] I have updated the documentation (if applicable).
- [ ] By submitting this pull request, I confirm that my contribution is made
under the terms of the MIT license.

### Dependency Updates

<!-- If this PR includes dependency updates, please list them here along with
the reason for the update. -->

### Reviewers

<!-- Tag the relevant team members or maintainers who should review this PR.
-->

@havardholvik
@kevinwhereby
@nandito
@thyal

### Additional Information

<!-- Add any additional information that you think is relevant for the review,
such as context, background, or links to related resources. -->
4 changes: 2 additions & 2 deletions .github/actions/build/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@ description: "Installs dependencies and builds lib"
runs:
using: "composite"
steps:
- uses: actions/setup-node@v2
- uses: actions/setup-node@v3
with:
node-version: "16"
node-version: "20"
cache: "yarn"

- name: Install dependencies
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:
GITHUB_TOKEN: ${{ secrets.WHEREBY_GITHUB_TOKEN }}
steps:
- name: Checkout source code
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: Build
uses: ./.github/actions/build
Expand Down Expand Up @@ -48,7 +48,7 @@ jobs:
GITHUB_TOKEN: ${{ secrets.WHEREBY_GITHUB_TOKEN }}
steps:
- name: Checkout source code
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: Build
uses: ./.github/actions/build
Expand Down Expand Up @@ -85,7 +85,7 @@ jobs:
# Setup .npmrc file to publish to npm
- uses: actions/setup-node@v3
with:
node-version: "16.x"
node-version: "20.x"
registry-url: "https://registry.npmjs.org"

- name: Build
Expand Down
35 changes: 35 additions & 0 deletions .github/workflows/playwright.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Playwright Tests
on:
push:
branches: [main, development]
pull_request:
branches: [main, development]
jobs:
test:
timeout-minutes: 60
runs-on: macos-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: 20
cache: "yarn"
cache-dependency-path: |
yarn.lock
test/sample-app/yarn.lock
- name: Install dependencies
run: yarn
- name: Install sample-app dependencies
run: yarn install:e2e-sample-app
- name: Install Playwright Browsers
run: yarn playwright install --with-deps
- name: Run Playwright tests
run: yarn playwright test
env:
WHEREBY_API_KEY: ${{ secrets.WHEREBY_API_KEY }}
- uses: actions/upload-artifact@v3
if: always()
with:
name: playwright-report
path: playwright-report/
retention-days: 30
3 changes: 2 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ on:
pull_request:
branches:
- main
- development
jobs:
test:
name: Test
Expand All @@ -15,7 +16,7 @@ jobs:

steps:
- name: Checkout source code
uses: actions/checkout@v2
uses: actions/checkout@v3

- name: Build
uses: ./.github/actions/build
Expand Down
10 changes: 9 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
*.env
*.log

dist/
node_modules/
*.log
storybook-static/
yalc.lock
.yalc/
/test-results/
/playwright-report/
/playwright/.cache/
24 changes: 22 additions & 2 deletions .storybook/main.cjs
Original file line number Diff line number Diff line change
@@ -1,5 +1,25 @@
module.exports = {
stories: ["../src/**/*.stories.mdx", "../src/**/*.stories.@(js|jsx|ts|tsx)"],
stories: ["../src/**/*.stories.@(js|jsx|ts|tsx)"],
addons: ["@storybook/addon-links", "@storybook/addon-essentials"],
framework: "@storybook/web-components",
framewkork: "@storybook/react",

webpackFinal: async (config) => {
config.module.rules.push({
resolve: {
fullySpecified: false,
extensions: [".js", ".ts", ".tsx"],
},
});

return config;
},

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

docs: {
autodocs: true
}
};
Loading