Skip to content

Commit

Permalink
[WIP] Feature/playlist service (nukeop#1080)
Browse files Browse the repository at this point in the history
* Move logo to navbar

* User panel component

* Create user panel and associated sign up/sign in forms

* Nuclear signup form

* Form containers

* Remove package-locks from packages

* Update package-lock

* un-hoisted package-locks (testing if it fixes the build)

* remove package lock files (testing if it fixes the build)

* regenerate package-lock.json

* regenerate package-lock.json

* update snapshots

* update snapshots

* Validation for forms, close form on outside click

* Snapshot tests for forms

* Validation tests

* Sign up flow

* Sign up flow; add success and error messages to fullscreen forms

* Handle sign in

* Set error status in case of errors

* Add a dropdown to user panel

* New playlists table

* Modification date for playlists

* Sync cell

* Drag and drop playlist rows

* Playlist service api

* Allow loading remote playlists

* Async loading remote playlists

* Load local playlists on entering the playlists view

* Types for reducers; updates to playlist tests

* Update playlist view tests

* Make all tests pass

* Update storeBuilders.ts

* Update storeBuilders.ts

* Fix storebuilders

* Fix internationalization json
  • Loading branch information
nukeop authored Dec 17, 2021
1 parent 3c2cfbd commit e62f8ae
Show file tree
Hide file tree
Showing 174 changed files with 5,081 additions and 1,384 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ on:
jobs:
coverage:
runs-on: ubuntu-latest
timeout-minutes: 10
timeout-minutes: 20

steps:
- uses: actions/checkout@master
Expand Down
116 changes: 88 additions & 28 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
"@typescript-eslint/parser": "^4.23.0",
"babel-eslint": "^10.0.3",
"cross-env": "^7.0.2",
"electron": "^12.0.5",
"electron": "^12.1.0",
"electron-builder": "^21.2.0",
"electron-rebuild": "^2.0.1",
"eslint": "^7.18.0",
Expand All @@ -52,7 +52,9 @@
"husky": "^3.1.0",
"lerna": "^3.22.1",
"lint-staged": "^10.0.0-beta.14",
"sass-loader": "^12.1.0",
"shx": "^0.3.3",
"style-loader": "^3.2.1",
"typescript": "^4.2.4"
},
"optionalDependencies": {
Expand Down
6 changes: 4 additions & 2 deletions packages/app/__mocks__/@nuclear/core.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,11 @@ const initialStoreState = () => ({
playlists: []
});

let mockStore = initialStoreState();
let mockStore = {...initialStoreState()};

module.exports = {
store: {
init: (store: typeof mockStore) => mockStore = store,
get: (key: string) => mockStore[key] || {},
set: (key: string, value: any) => {
mockStore[key] = value;
Expand All @@ -38,7 +39,8 @@ module.exports = {
getTagArtists() {}
getTopTags = () => Promise.resolve()
getTopTracks = () => Promise.resolve()
}
},
NuclearPlaylistsService: jest.requireActual('@nuclear/core/src/rest/Nuclear/Playlists').NuclearPlaylistsService
},
settingsConfig: jest.requireActual('@nuclear/core/src/settings').settingsConfig,
SettingType: {
Expand Down
Loading

0 comments on commit e62f8ae

Please sign in to comment.