fix: scope all git, activity, webhook, and summarize-title routes to correct project store
- Fix 30 git routes to use getScopedStore(req) instead of global store - Fix activity GET/DELETE routes to use scoped store - Fix POST /api/github/webhooks to use scoped store for badge updates - Fix POST /api/ai/summarize-title to use scoped store for settings - Fix GET /api/git/worktrees to use scoped store for task listing - Add projectId parameter to all git and activity frontend API functions - Update useActivityLog hook to pass projectId through Co-authored-by: factory-droid[bot] <138933559+factory-droid[bot]@users.noreply.github.com>
This commit is contained in:
@@ -84,7 +84,7 @@ export function useActivityLog(options: UseActivityLogOptions = {}): UseActivity
|
||||
// Per-project: fetchActivityLog returns ActivityLogEntry[] which is a
|
||||
// subset of ActivityFeedEntry (missing projectId/projectName). Map to
|
||||
// the full shape so downstream consumers see a uniform interface.
|
||||
const logEntries = await fetchActivityLog({ limit, type });
|
||||
const logEntries = await fetchActivityLog({ limit, type, projectId });
|
||||
data = logEntries.map((entry) => ({
|
||||
...entry,
|
||||
projectId: projectId ?? "",
|
||||
@@ -125,6 +125,7 @@ export function useActivityLog(options: UseActivityLogOptions = {}): UseActivity
|
||||
limit,
|
||||
type,
|
||||
since: lastTimestampRef.current,
|
||||
projectId,
|
||||
});
|
||||
data = logEntries.map((entry) => ({
|
||||
...entry,
|
||||
|
||||
Reference in New Issue
Block a user