From 5d9f455fc8744ddb3c325d899d8b0f664c2dabc0 Mon Sep 17 00:00:00 2001
From: Jose Olarte III
Date: Tue, 16 Sep 2025 18:10:17 +0800
Subject: [PATCH] feat: move mark-as-read logic from navigation to view loading
- Remove mark-as-read logic from NewActivityView navigation handlers
- Add mark-as-read logic to RecentOffersToUserView and RecentOffersToUserProjectsView after data loading
- Improve "You've already seen all the following" marker positioning
- Update marker styling with dashed border and centered text
This ensures the marker appears at the correct position in the list
instead of always at the top, providing better UX when viewing offers.
---
src/views/NewActivityView.vue | 2 --
src/views/RecentOffersToUserProjectsView.vue | 21 ++++++++++++++------
src/views/RecentOffersToUserView.vue | 20 +++++++++++++------
3 files changed, 29 insertions(+), 14 deletions(-)
diff --git a/src/views/NewActivityView.vue b/src/views/NewActivityView.vue
index a37ca36a..233a8f4d 100644
--- a/src/views/NewActivityView.vue
+++ b/src/views/NewActivityView.vue
@@ -322,12 +322,10 @@ export default class NewActivityView extends Vue {
}
async handleSeeAllOffersToUser() {
- await this.expandOffersToUserAndMarkRead(true);
this.$router.push("/recent-offers-to-user");
}
async handleSeeAllOffersToUserProjects() {
- await this.expandOffersToUserProjectsAndMarkRead(true);
this.$router.push("/recent-offers-to-user-projects");
}
}
diff --git a/src/views/RecentOffersToUserProjectsView.vue b/src/views/RecentOffersToUserProjectsView.vue
index c294d053..4125f983 100644
--- a/src/views/RecentOffersToUserProjectsView.vue
+++ b/src/views/RecentOffersToUserProjectsView.vue
@@ -32,20 +32,20 @@
-
-