fix: minor bug fixes and quality of life improvements (#3444)

* add concurrency to dev command to avaoid erroring out

* add context to issue activity

* minor quality of life improvement for exporter modal

* show the option to save draft issue only when there is content in name and description

* maintain commonality while referencing the user in activity

* fix minor changes in draft save issue modal logical condition

* minor change is state component for filter selection

* change logic for create issue activity

* change use last draft issue button to state control over previous on hover as that was inconsistent
This commit is contained in:
rahulramesha 2024-01-23 20:45:44 +05:30 committed by GitHub
parent f27efb80e1
commit 47681fe9f8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
11 changed files with 88 additions and 51 deletions

View file

@ -1,6 +1,9 @@
import { ReactElement } from "react";
import useSWR from "swr";
import Link from "next/link";
import { observer } from "mobx-react";
//hooks
import { useUser } from "hooks/store";
// services
import { UserService } from "services/user.service";
// layouts
@ -21,8 +24,10 @@ import { NextPageWithLayout } from "lib/types";
const userService = new UserService();
const ProfileActivityPage: NextPageWithLayout = () => {
const ProfileActivityPage: NextPageWithLayout = observer(() => {
const { data: userActivity } = useSWR(USER_ACTIVITY, () => userService.getUserActivity());
// store hooks
const { currentUser } = useUser();
return (
<section className="mx-auto mt-16 flex h-full w-full flex-col overflow-hidden px-8 pb-8 lg:w-3/5">
@ -158,7 +163,9 @@ const ProfileActivityPage: NextPageWithLayout = () => {
href={`/${activityItem.workspace_detail.slug}/profile/${activityItem.actor_detail.id}`}
>
<span className="text-gray font-medium">
{activityItem.actor_detail.display_name}
{currentUser?.id === activityItem.actor_detail.id
? "You"
: activityItem.actor_detail.display_name}
</span>
</Link>
)}{" "}
@ -189,7 +196,7 @@ const ProfileActivityPage: NextPageWithLayout = () => {
)}
</section>
);
};
});
ProfileActivityPage.getLayout = function getLayout(page: ReactElement) {
return <ProfileSettingsLayout>{page}</ProfileSettingsLayout>;