refactor: use GET tenders/recommend and improve tender title UX
continuous-integration/drone/push Build is passing

Load the Recommended tab from GET /api/v1/tenders/recommend instead of the
AI POST flow with 503 fallback. Fix notification pagination offset, make
tender titles selectable across list and detail views, and ignore .cursor.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
AmirReza Jamali
2026-06-27 12:23:53 +03:30
parent 7c26288c01
commit 984f2e5139
11 changed files with 121 additions and 198 deletions
+3 -3
View File
@@ -87,7 +87,7 @@ class NotificationViewModel with ChangeNotifier {
}
notifyListeners();
final int offset = page * _pageSize;
final int offset = (page - 1) * _pageSize;
final result = await _repository.getNotifications(
limit: _pageSize,
@@ -138,7 +138,7 @@ class NotificationViewModel with ChangeNotifier {
}
notifyListeners();
final int offset = page * _pageSize;
final int offset = (page - 1) * _pageSize;
final result = await _repository.getUnreadNotifications(
limit: _pageSize,
offset: offset,
@@ -181,7 +181,7 @@ class NotificationViewModel with ChangeNotifier {
}
notifyListeners();
final int offset = page * _pageSize;
final int offset = (page - 1) * _pageSize;
final result = await _repository.getImportantNotifications(
limit: _pageSize,