feat: select blocker, blocking, and parent (#2121)

* feat: update, delete link

refactor: using old fetch-key

* feat: issue activity with ability to view & add comment

feat: click on view more to view more options in the issue detail

* fix: upload image not working on mobile

* feat: select blocker, blocking, and parent

dev: auth layout for web-view, console.log callback for web-view

* style: made design consistant

* fix: displaying page only on web-view

* style: removed overflow hidden
This commit is contained in:
Dakshesh Jain 2023-09-07 18:42:24 +05:30 committed by GitHub
parent 6d52707ff5
commit faa6a2bcbc
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
18 changed files with 612 additions and 67 deletions

View file

@ -21,7 +21,7 @@ import useUser from "hooks/use-user";
import useProjectMembers from "hooks/use-project-members";
// layouts
import DefaultLayout from "layouts/default-layout";
import WebViewLayout from "layouts/web-view-layout";
// ui
import { Spinner } from "components/ui";
@ -128,25 +128,25 @@ const MobileWebViewIssueDetail = () => {
if (!error && !issueDetails)
return (
<DefaultLayout>
<WebViewLayout>
<div className="px-4 py-2 h-full">
<div className="h-full flex justify-center items-center">
<Spinner />
Loading...
</div>
</div>
</DefaultLayout>
</WebViewLayout>
);
if (error)
return (
<DefaultLayout>
<WebViewLayout>
<div className="px-4 py-2">{error?.response?.data || "Something went wrong"}</div>
</DefaultLayout>
</WebViewLayout>
);
return (
<DefaultLayout>
<WebViewLayout>
<div className="px-6 py-2 h-full overflow-auto space-y-3">
<IssueWebViewForm
isAllowed={isAllowed}
@ -168,7 +168,7 @@ const MobileWebViewIssueDetail = () => {
<IssueActivity allowed={isAllowed} issueDetails={issueDetails!} />
</div>
</DefaultLayout>
</WebViewLayout>
);
};