Skip to content

Commit 0ae28d5

Browse files
fricobenMarchand-NicolasiamifechiportableDDGideonBature
authored
Last MEP (#1201)
* feat: cash token (#1136) * Fix: Add Lending Protocols category cards * Feat: color background of the APR, TVL and Daily reward filters/Hover * fix: color background of the APR, TVL and Daily reward * fix: remove pdding for daily rewards * Fix: delete title and description * fix: Redesigned the “reward quests” card to align with the updated Figma design * fix: padding and hover issue fix * fix: return default sorting and remove added comments messaged * Fix: Redirect to the specific pool Improve redirection to ensure users land directly on the specific pool when clicking a row in the DeFi table. * merge testnet * Fix: Improve the static sphere by animating it * Created the filter and card structure with it's properties. * Implemented and designed the card * Integrated the card and filter components to the defi page. * fix accessibility * Refactor code structure for improved readability and maintainability * Remove unused DefiCategoryCard component and related exports * feat(web): add new gray color variant in tailwindcss configuration * feat(web): create a new component, which handles external links * feat(web): add animation utility for cards * chore(web): add new image * feat(web): create component for ecosystem cards * refactor: changes according to Coderabbitai * fix: Adjust gradientLine position and width for better alignment * Implementation of discover cards * fix: Add empty string to icon and banner properties for Reward Quests * Fix: Replace 'Ongoing' and 'Finished' text with icons according to Figma design * Fix: Prevent layout shift caused by spinning SVG on /discover/defi page * Fix: [add padding of the table header and table footer] * fix build * cleaning the code * Feature: Added Tooltips to the app Icons * Feature: Added Tooltips to the app Icons * Fix: [add padding of the table header and table footer.] * fix: Remove AccentBox from StepElement and update background styles in steps.module.css * changing case * fix footer padding * refactor * cleaning the code * Fix: [Add a color background to the table header and the table footer. #1030] * Fix: [Add a color background to the table header and the table footer. #1030] * Fix: [Add a color background to the table header and the table footer. #1030] * fix design * fix spacing * changed the gradient color of step cards * update * update * Delete package-lock.json * Feat: Added Perpetuals & Derivatives cards * Feat: Added Perpetuals & Derivatives cards * added green box shadow for step 2 card * feat: added the yield Oppotunities to the table head * fix: fixed the border radius bug * Modify the "Unique Users" card. * fix: removed unused props * cleaning the code * fix * chore: add image endurfi * feat: add data to display liquid-staking * Fix: Add AMM & DEX cards to DeFi category on Starknet Quest * adjust the path name * Fix: add and correct Payments cards (Kulipa & Pulsar Money) for DeFi page (#1099) * Fix: add and correct Payments cards (Kulipa & Pulsar Money) for DeFi page (#1099) * cleaning * cleaning * fix path * fix: Add all token icons * fix build errors * fix responsive * removign package-lock * Revert "fix build errors" This reverts commit bb10be6. * fix changes requested * still fixing * fixing issues * fixing spaces and loading issues * still fixing * fixing update * fix suggestions * fixing suggestions * fixing suggestions * Image uploading through admin dashboard * Fix: Align Boost and Reward Quest cards horizontally on large screens * Fix: prevent scroll shift by maintaining table height during loading * chore: add pramb image * feat: add data to display pramb insurance * refactor: change single quotes to double quotes * color of Quest Analytics changed * Fix: update graph card styles and layout for issue #1084 * Fix: Centered 'New explorer, start your quest!' section on dashboard * Revert package.json and .env.example to match upstream , modify styling to match figma * UI: Refactored quest analytics page with consistent styling and gradient shadows * remove lock * cleaning the code * removing spaces * feat: add wallet and bridge integrations Add 21 wallet and bridge service configurations including Starkgate, Argent, Braavos, Metamask SNAPS, and cross-chain bridges like Orbiter and Layerswap. * chore: implemented changes on image naming * chore: add new image * feat: add image to Stats component * Fix: Fix UI bug that caused unexpected horizontal shift on page scroll * cleaning * chore: add new image in webp format * refactor: add centered image * refactor: add priority to image * Fix: Update wallet name from Argent to Ready in connection menu * Fix: Update test expectations to match new Ready wallet name * Fix: Resolve build issues by downgrading to compatible starknet versions * #1175 banner details form * feat: change font of title, subtitle & description * Fix width * feat: add hover styles to cards * feat: add discontinued message (#1200) * feat: add message * fix: build error --------- Co-authored-by: Nico <nicomarchand29@gmail.com> Co-authored-by: Ifechi <ifechi.dev@gmail.com> Co-authored-by: portableDD <emmanueltemitopedorcas20@gmail.com> Co-authored-by: GideonBature <infoaboutgideon@gmail.com> Co-authored-by: BlessingEmejulu <blessingnneamaka57@gmail.com> Co-authored-by: Nico <60229704+Marchand-Nicolas@users.noreply.github.com> Co-authored-by: Benjtalkshow <chinedubenj@gmail.com> Co-authored-by: Verifieddanny <dannyclassic56@gmail.com> Co-authored-by: viktohblake <damanygt@gmail.com> Co-authored-by: Luis Carrión <louiss862@gmail.com> Co-authored-by: BravarDev <brayanvafer@gmail.com> Co-authored-by: dicethedev <dicethedev@gmail.com> Co-authored-by: Emmanuel <emmanuelogheneovo17@gmail.com> Co-authored-by: Nash ezekiel <nashezekiel001@gmail.com> Co-authored-by: Emmanex01 <nwanosiketochukwu99@gmail.com> Co-authored-by: Emmanuel Tochukwu <108570606+Emmanex01@users.noreply.github.com> Co-authored-by: soyaya <davidlovedavid1015@gmail.com> Co-authored-by: Sneha Gupta <96808735+Snehagupta1907@users.noreply.github.com> Co-authored-by: Dannynsikak <nsikakdanny11@gmail.com> Co-authored-by: Isaac Daniel <tissan300@gmail.com> Co-authored-by: kimcascante <kiimcm9@gmail.com> Co-authored-by: pheobeayo <pheobeayo@gmail.com> Co-authored-by: saimeunt <saimeunt@gmail.com> Co-authored-by: perpetual-cosmos <prataptarunsingh241@gmail.com> Co-authored-by: sajal <sajalbnl123@gmail.com> Co-authored-by: Amarjeet <amarjeet015@gmail.com> Co-authored-by: Clement Raymond <chinexzy37@gmail.com> Co-authored-by: Isaac Onyemaechi <amaechiisaac450@gmail.com> Co-authored-by: JamesVictor-o <victorjames40v@gmail.com> Co-authored-by: Stephanie Egbuonu <100955511+stephanniegb@users.noreply.github.com> Co-authored-by: akintewe <85641756+akintewe@users.noreply.github.com> Co-authored-by: ADR!AN <111903096+adrianvrj@users.noreply.github.com> Co-authored-by: system625 <tundexsmith624@gmail.com> Co-authored-by: Iris <iris.devillars@gmail.com>
1 parent 9d35ecf commit 0ae28d5

107 files changed

Lines changed: 2891 additions & 18587 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

app/admin/quests/create/page.tsx

Lines changed: 18 additions & 457 deletions
Large diffs are not rendered by default.

app/admin/quests/dashboard/[questId]/page.tsx

Lines changed: 21 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -129,11 +129,24 @@ export default function Page({ params }: QuestIdProps) {
129129
const nft_uri_data = await AdminService.getNftUriByQuestId({
130130
id: questId.current,
131131
});
132-
setNftUri(nft_uri_data);
133-
const quest_tasks = await AdminService.getTasksByQuestId(questId.current);
134-
const formatted_steps = await tasksFormatter(quest_tasks);
135-
setInitialSteps(formatted_steps);
136-
setSteps(formatted_steps);
132+
if (nft_uri_data) {
133+
setNftUri(nft_uri_data);
134+
} else {
135+
setNftUri((prev) => ({
136+
...prev,
137+
image: quest_details.img_card,
138+
}));
139+
}
140+
try {
141+
const quest_tasks = await AdminService.getTasksByQuestId(
142+
questId.current
143+
);
144+
const formatted_steps = await tasksFormatter(quest_tasks);
145+
setInitialSteps(formatted_steps);
146+
setSteps(formatted_steps);
147+
} catch (error) {
148+
console.error(error);
149+
}
137150
} catch (error) {
138151
showNotification("Failed to update quest. Please try again.", "error");
139152
console.log("Error while fetching quests", error);
@@ -307,8 +320,7 @@ export default function Page({ params }: QuestIdProps) {
307320
}, [boostInput, showBoost]);
308321

309322
const checkQuestChanges = useCallback(() => {
310-
const updatedQuest = questData !== questInput;
311-
return updatedQuest;
323+
return JSON.stringify(questData) !== JSON.stringify(questInput);
312324
}, [questInput, questData]);
313325

314326
const checkBoostChanges = useCallback(() => {
@@ -837,7 +849,8 @@ export default function Page({ params }: QuestIdProps) {
837849
questInput={questInput}
838850
handleQuestInputChange={handleQuestInputChange}
839851
submitButtonDisabled={isButtonDisabled}
840-
onSubmit={() => handleTabChange(currentPage + 1)}
852+
onSubmit={async () => await handleQuestBoostNftChanges()}
853+
buttonLoading={buttonLoading}
841854
/>
842855
);
843856
} else if (currentPage === 1) {

0 commit comments

Comments
 (0)