From f4b45f5222d98d8dd0bac20b83eb18af586ba1a6 Mon Sep 17 00:00:00 2001 From: booploops <49113086+booploops@users.noreply.github.com> Date: Thu, 9 Dec 2021 23:03:24 -0800 Subject: [PATCH] See All is now functional on artist pages --- resources/cider-ui-tests/index.js | 15 ++++++++++ resources/cider-ui-tests/style.less | 6 ++++ resources/cider-ui-tests/views/main.ejs | 9 ++++++ .../cider-ui-tests/views/pages/artist.ejs | 2 +- .../views/pages/collection-list.ejs | 30 +++++++++++++++---- 5 files changed, 55 insertions(+), 7 deletions(-) diff --git a/resources/cider-ui-tests/index.js b/resources/cider-ui-tests/index.js index cf95f186..6d2a39c0 100644 --- a/resources/cider-ui-tests/index.js +++ b/resources/cider-ui-tests/index.js @@ -153,6 +153,10 @@ const app = new Vue({ drawerState: "queue", topChromeVisible: true }, + collectionList: { + response: {}, + title: "" + }, page: "artist-page", pageHistory: [], songstest: false @@ -276,6 +280,16 @@ const app = new Vue({ }) document.body.removeAttribute("loading") }, + async showCollection (response, title) { + let self = this + this.collectionList.response = response + this.collectionList.title = title + this.page = "collection-list" + }, + async showArtistView (artist, title, view) { + let response = await this.mk.api.artistView(artist, view, {}, {view: view, includeResponseMeta: !0}) + await this.showCollection(response, title) + }, async getPlaylistFromID(id) { const params = {include: "tracks", platform: "web", @@ -306,6 +320,7 @@ const app = new Vue({ "limit[artists:top-songs]": 20, "art[url]": "f" }, {includeResponseMeta: !0}) + console.log(artistData) this.artistPage.data = artistData.data[0] this.page = "artist-page" }, diff --git a/resources/cider-ui-tests/style.less b/resources/cider-ui-tests/style.less index 680ee1a8..488fda9c 100644 --- a/resources/cider-ui-tests/style.less +++ b/resources/cider-ui-tests/style.less @@ -1611,6 +1611,12 @@ input[type="range"].web-slider.display--small::-webkit-slider-thumb { } } +// Collection Page +.collection-page { + .header-text { + margin-bottom: 32px; + } +} /* Artist Page */ diff --git a/resources/cider-ui-tests/views/main.ejs b/resources/cider-ui-tests/views/main.ejs index 11d28b92..cd6690a5 100644 --- a/resources/cider-ui-tests/views/main.ejs +++ b/resources/cider-ui-tests/views/main.ejs @@ -239,6 +239,12 @@ <%- include('pages/webview') %> + + + +