- {progressItemWithText.map((item) => (
-
- ))}
+
+
+ {itemsToShow.map((item) => (
+
+ ))}
+
+ {progressItemWithText.length > itemCountToShow && (
+
+
+
+
+
+ )}
+
+
+
+
+
);
}
@@ -98,12 +207,22 @@ type ProgressItemProps = {
topicId: string;
text: string;
action: UpdateUserProgress['action'];
+ isBulkUpdating: boolean;
+ isBulkUpdateSuccess: boolean;
};
function ProgressItem(props: ProgressItemProps) {
- const { roadmapId, topicId, text, action } = props;
+ const {
+ roadmapId,
+ topicId,
+ text,
+ action,
+ isBulkUpdating,
+ isBulkUpdateSuccess,
+ } = props;
const toast = useToast();
+
const {
mutate: updateTopicStatus,
isSuccess,
@@ -142,11 +261,11 @@ function ProgressItem(props: ProgressItemProps) {
return (
{text}
- {!isSuccess && (
+ {!isSuccess && !isBulkUpdateSuccess && (
)}
- {isSuccess && (
+ {(isSuccess || isBulkUpdateSuccess) && (
diff --git a/src/components/UserProgress/ModalLoader.tsx b/src/components/UserProgress/ModalLoader.tsx
index d69c0ce35..7ddd98165 100644
--- a/src/components/UserProgress/ModalLoader.tsx
+++ b/src/components/UserProgress/ModalLoader.tsx
@@ -11,7 +11,7 @@ export function ModalLoader(props: ModalLoaderProps) {
const { isLoading, text, error } = props;
return (
-
+
diff --git a/src/pages/ai/chat/[roadmapId].astro b/src/pages/ai/chat/[roadmapId].astro
index e46a24faf..8c53b5259 100644
--- a/src/pages/ai/chat/[roadmapId].astro
+++ b/src/pages/ai/chat/[roadmapId].astro
@@ -21,7 +21,8 @@ const { roadmapId } = Astro.params as Props;
wrapperClassName='flex-row p-0 lg:p-0 overflow-hidden'
client:load
>
-
+
+