Skip to content

Team members page#4

Open
shreeyash07 wants to merge 4 commits into
developfrom
feat/team-members
Open

Team members page#4
shreeyash07 wants to merge 4 commits into
developfrom
feat/team-members

Conversation

@shreeyash07

Copy link
Copy Markdown
Contributor

Depends upon: toggle-corp/ercs-backend#16

Changes

  • Add team members page
  • Update in page component for the scroll able view

This PR doesn't introduce any

  • temporary files, auto-generated files or secret keys
  • build works
  • eslint issues
  • typescript issues
  • codegen errors
  • console.log meant for debugging
  • typos
  • unwanted comments
  • conflict markers

Comment thread app/views/Teams/TeamMembers/TeamMemberForm/index.tsx
const [{ fetching: updatePending }, updateTeamMemberMutate] = useUpdateTeamMemberMutation();

const handleMutation = useCallback(async (mutationData: PartialFormType) => {
const redirectPath = 'teams';

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

it is redirecting to teams list but user will be working on specific team so shouldn't it should send user back to that specific team similar to how it has handeled in cancel?

navigate('teamMembers', { id });

Comment thread app/views/Teams/TeamMembers/TeamMemberForm/index.tsx
Comment thread app/views/Teams/TeamMembers/TeamMemberForm/index.tsx
<ListView layout="block">
<InputSection
title="Team name"
description="Enter the name of the user"

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

in description instead of user wouldn't be better to write team member as this is team member page specifically

</InputSection>
<InputSection
title="Email"
description="Enter the email of the user"

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Similalry here too instead of user Enter the email of member/ team member something like this on all description fields

Comment thread app/views/Teams/TeamMembers/index.tsx Outdated
setPage,
pageSize,
variables,
} = usePagination();

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

use this hook UseFilterState

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.

4 participants