fix: web-view action permission, logs, archive issue, and more (#2356)

* fix: web-view

* feat: select module

* dev: select cycle & module

* fix: permissions, logs and archive issue

* fix: logs for issue select

fix: hard-coded web-view validation

* fix: attachment confirm delete workflow

* fix: typo

* fix: logging link instead of redirecting to the link

* fix: made editor height 100%

* style: due-date select

* fix: update comment not working

* fix: changed button text

style: spacing

* fix: due date select not working for today's date

* fix: typography

* fix: spacing in select parent
This commit is contained in:
Dakshesh Jain
2023-10-12 12:28:36 +05:30
committed by GitHub
parent 58ea4d6ec9
commit 892a30c3a8
33 changed files with 2322 additions and 515 deletions

View File

@@ -63,7 +63,7 @@ export const WebViewModal = (props: Props) => {
<XMarkIcon className="w-6 h-6 text-custom-text-200" />
</button>
</div>
<div className="mt-6 max-h-60 overflow-auto">{children}</div>
<div className="flex flex-col mt-6 h-full max-h-[70vh]">{children}</div>
</Dialog.Panel>
</Transition.Child>
</div>
@@ -75,7 +75,7 @@ export const WebViewModal = (props: Props) => {
type OptionsProps = {
options: Array<{
label: string;
label: string | React.ReactNode;
value: string | null;
checked: boolean;
icon?: any;
@@ -84,14 +84,14 @@ type OptionsProps = {
};
const Options: React.FC<OptionsProps> = ({ options }) => (
<div className="divide-y">
<div className="divide-y divide-custom-border-300 flex-1 overflow-auto">
{options.map((option) => (
<div key={option.value} className="flex items-center justify-between gap-2 py-[14px]">
<div className="flex items-center gap-x-2">
<div onClick={option.onClick} className="flex items-center gap-x-2 w-full">
<input
type="checkbox"
checked={option.checked}
onChange={option.onClick}
readOnly
className="rounded-full border border-custom-border-200 bg-custom-background-100 w-4 h-4"
/>
@@ -104,5 +104,16 @@ const Options: React.FC<OptionsProps> = ({ options }) => (
</div>
);
type FooterProps = {
children: React.ReactNode;
className?: string;
};
const Footer: React.FC<FooterProps> = ({ children, className }) => (
<div className={`mt-2 flex-shrink-0 ${className ? className : ""}`}>{children}</div>
);
WebViewModal.Options = Options;
WebViewModal.Footer = Footer;
WebViewModal.Options.displayName = "WebViewModal.Options";
WebViewModal.Footer.displayName = "WebViewModal.Footer";