Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature Flag removal of task search #1213

Open
wants to merge 9 commits into
base: develop
Choose a base branch
from
Open

Conversation

pallabez
Copy link
Contributor

@pallabez pallabez commented May 31, 2024

Date: 31/05/2024

Developer Name: @pallabez


Issue Ticket Number

Description

  • Remove /TaskSearch content
  • Rename /TaskSearchDev to /TaskSearch
  • Fix tests associated with Task Detail page

Documentation Updated?

  • Yes
  • No

Under Feature Flag

  • Yes
  • No

Database Changes

  • Yes
  • No

Breaking Changes

  • Yes
  • No

Development Tested?

  • Yes
  • No

Screenshots

Screenshot 1

Test Coverage

Screenshot 1

image

Additional Notes

Copy link

vercel bot commented May 31, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
status-app ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 7, 2024 10:52pm

@pallabez pallabez changed the title Remove ff/task search Feature Flag removal of task searc May 31, 2024
@pallabez pallabez changed the title Feature Flag removal of task searc Feature Flag removal of task search May 31, 2024
onClickSearchButton,
}: TaskSearchProps) => {
const [modalOpen, setModalOpen] = useState(false);
const [filterDropdownModelOpen, setFilterDropdownModelOpen] =
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There are 7 useState's currently in this component. This would be a good candidate to start using useReducer instead to better manage the state.

>(convertStringToOptions(inputValue));
const [onEditSelectedFilterValue, setOnEditSelectedFilterValue] =
useState<string>('');
const [onEditSelectedFilterIndex, setOnEditSelectedFilterIndex] =
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is the type false | number correct? Could the default value be -1 making the type be just number?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done

{modalOpen && (
<FilterModal
dev={false}
Filter
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can such a long JSX be broken down into multiple functions? That would considerably improve the readability.

import useDebounce from '@/hooks/useDebounce';
import { TaskSearchOption } from '@/interfaces/searchOptions.type';
import Options from './Suggestion/Options';
import RenderPills from './Suggestion/Pill';
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Any reason for naming this RenderPills and not just Pill ?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

Desc : Made onEditSelectedFilterIndex to be of number type only & renamed import of Pill
@pallabez pallabez requested a review from joyguptaa June 3, 2024 13:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants