-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
FEATURE: Marketplace Tab V1 Implementation (#675)
* STUD-247: Add Marketplace tab to view details song page * STUD-251: Add wallet connect to marketplace tab (#679) * STUD-249 UI for active sale (#696) * STUD-251: Add wallet connect to marketplace tab * STUD-251: Add the ability to filter wallet by given songs and apply it to the marketplace tab * STUD-251: Rename component * STUD-251: Add wallet as a dependency to fetch new song tokens * STUD-249: Added active sale and create sale UI along with endpoints * STUD-252: Add ability to create stream token sale * STUD-252: Add ping functionality for sale end and start * STUD-252: Add initial logic for sale start and end pending state * STUD-252: Fix minor details * STUD-252: Update min sale value * Stud 275 sale confirmation modal (#697) * STUD-275: Add start sale summary modal with price breakdown * STUD-275: Fix Typography component coming from newm vs mui * STUD-286: Add sale end and sale start ui and modify polling logic (#698) * STUD-286: Add sale end and sale start ui and modify polling logic * STUD-293: Add feature flag endpoints for studio and marketplace (#699) * STUD-293: Add feature flag endpoints for studio and marketplace * STUD-289: Update change address reference and fix minor refresh bug on ping sale end (#701)
- Loading branch information
1 parent
ed73384
commit d0a9e3d
Showing
60 changed files
with
1,924 additions
and
87 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
import { GetStudioClientConfigResponse } from "./types"; | ||
import { newmApi } from "../../api"; | ||
import { setToastMessage } from "../../modules/ui"; | ||
|
||
export const extendedApi = newmApi.injectEndpoints({ | ||
endpoints: (build) => ({ | ||
getMarketplaceClientConfig: build.query< | ||
GetStudioClientConfigResponse, | ||
void | ||
>({ | ||
async onQueryStarted(body, { dispatch, queryFulfilled }) { | ||
try { | ||
await queryFulfilled; | ||
} catch (error) { | ||
dispatch( | ||
setToastMessage({ | ||
message: "An error occurred while fetching app config", | ||
severity: "error", | ||
}) | ||
); | ||
} | ||
}, | ||
|
||
query: () => ({ method: "GET", url: "v1/client-config/marketplace" }), | ||
}), | ||
}), | ||
}); | ||
|
||
export const { useGetMarketplaceClientConfigQuery } = extendedApi; | ||
|
||
export default extendedApi; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
export * from "./api"; | ||
export * from "./types"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
// eslint-disable-next-line | ||
interface FeatureFlags { | ||
// When a feature flag is added it will have the following format: | ||
// readonly exampleFlag: boolean; | ||
} | ||
|
||
export interface GetStudioClientConfigResponse { | ||
readonly featureFlags: FeatureFlags; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1 @@ | ||
export * from "./api"; | ||
export * from "./types"; | ||
export * from "./utils"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,6 +19,7 @@ const api = createApi({ | |
Tags.Languages, | ||
Tags.Profile, | ||
Tags.Roles, | ||
Tags.Sale, | ||
Tags.Song, | ||
], | ||
}); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.