-
- Filter
-
- ×
-
-
-
- {tabs
- .filter((tab: Tab) =>
- dev
- ? !depreciatedTaskStatus.includes(tab)
- : tab != Tab.BLOCKED &&
- tab != Tab.ASSIGNEE_ARCHIVED &&
- !newTaskStatus.includes(tab)
- )
- .map((tab) => (
-
- ))}
+ <>
+ {dev && (
+
+ )}
+
+
+ Filter
+
+ ×
+
+
+
+ {tabs
+ .filter((tab: Tab) =>
+ dev
+ ? !depreciatedTaskStatus.includes(tab)
+ : tab != Tab.BLOCKED &&
+ tab != Tab.ASSIGNEE_ARCHIVED &&
+ !newTaskStatus.includes(tab)
+ )
+ .map((tab) => (
+
+ ))}
+
-
+ >
);
};
diff --git a/src/constants/header-categories.ts b/src/constants/header-categories.ts
index 942567295..b80f612e0 100644
--- a/src/constants/header-categories.ts
+++ b/src/constants/header-categories.ts
@@ -16,13 +16,15 @@ export const headerCategories = [
},
{
title: 'Open PRs',
- refURL: '/openPRs',
- pathName: '/openPRs',
+ refURL: '/pull-requests?state=open',
+ pathName: '/pull-requests',
+ state: 'open',
},
{
title: 'Stale PRs',
- refURL: '/stale-pr',
- pathName: '/stale-pr',
+ refURL: '/pull-requests?state=stale',
+ pathName: '/pull-requests',
+ state: 'stale',
},
{
title: 'Idle Users',
@@ -34,26 +36,14 @@ export const headerCategories = [
export const devHeaderCategories = [
{
title: 'Standup',
- refURL: '/standup/?dev=true',
+ refURL: '/standup?dev=true',
pathName: '/standup',
},
{
title: 'Availability Panel',
- refURL: '/availability-panel',
+ refURL: '/availability-panel?dev=true',
pathName: '/availability-panel',
},
- {
- title: 'Open PRs(dev)',
- refURL: '/pull-requests?state=open&dev=true',
- pathName: '/pull-requests',
- state: 'open',
- },
- {
- title: 'Stale PRs(dev)',
- refURL: '/pull-requests?state=stale&dev=true',
- pathName: '/pull-requests',
- state: 'stale',
- },
{
title: 'Tasks Assigned to Archived users',
refURL: '/tasks?q=assignee-role%3Aarchived&dev=true',
From 4d9559eb01918a19089ecfbf69556e235c289154 Mon Sep 17 00:00:00 2001
From: suryxks <123004250@sastra.ac.in>
Date: Sat, 9 Dec 2023 16:26:33 +0530
Subject: [PATCH 3/3] fix: merge conflict
---
src/app/services/tasksApi.ts | 7 +++----
src/components/tasks/TasksContent.tsx | 10 ++++++----
2 files changed, 9 insertions(+), 8 deletions(-)
diff --git a/src/app/services/tasksApi.ts b/src/app/services/tasksApi.ts
index 6be24438f..059e727f6 100644
--- a/src/app/services/tasksApi.ts
+++ b/src/app/services/tasksApi.ts
@@ -30,7 +30,9 @@ export const tasksApi = api.injectEndpoints({
status === 'ASSIGNEE_ARCHIVED'
? baseQuery
: `${baseQuery}&status=${status}`;
-
+ if (assigneeRole || status === 'ASSIGNEE_ARCHIVED') {
+ url += `&assignee-role=${assigneeRole}`;
+ }
if (assignee) {
url += `&assignee=${assignee}`;
}
@@ -46,9 +48,6 @@ export const tasksApi = api.injectEndpoints({
if (prevTasks) {
url = prevTasks;
}
- if (assigneeRole || status === 'ASSIGNEE_ARCHIVED') {
- url += `&assignee-role=${assigneeRole}`;
- }
return { url };
},
providesTags: ['Tasks'],
diff --git a/src/components/tasks/TasksContent.tsx b/src/components/tasks/TasksContent.tsx
index cd11fe0a5..e0f625eb8 100644
--- a/src/components/tasks/TasksContent.tsx
+++ b/src/components/tasks/TasksContent.tsx
@@ -84,10 +84,12 @@ export const TasksContent = ({ dev }: { dev?: boolean }) => {
setInputValue(value);
};
- const searchButtonHandler = () => {
- const { status, assignees, title, assigneeRole } =
- extractQueryParams(inputValue);
- if (inputValue) {
+ const searchButtonHandler = (searchString?: string) => {
+ console.log(searchString, inputValue);
+ const { status, assignees, title, assigneeRole } = extractQueryParams(
+ searchString || inputValue
+ );
+ if (searchString || inputValue) {
if (assigneeRole) {
searchNewTasks(Tab.ASSIGNEE_ARCHIVED, assignees, title);
} else {