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
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
33 changed files with 2322 additions and 515 deletions

View file

@ -13,10 +13,11 @@ import { renderEmoji } from "helpers/emoji.helper";
type Props = {
projectId?: string | string[];
commentId: string;
readonly?: boolean;
};
export const CommentReaction: React.FC<Props> = (props) => {
const { projectId, commentId } = props;
const { projectId, commentId, readonly = false } = props;
const router = useRouter();
const { workspaceSlug } = router.query;
@ -47,16 +48,18 @@ export const CommentReaction: React.FC<Props> = (props) => {
return (
<div className="flex gap-1.5 items-center mt-2">
<ReactionSelector
size="md"
position="top"
value={
commentReactions
?.filter((reaction) => reaction.actor === user?.id)
.map((r) => r.reaction) || []
}
onSelect={handleReactionClick}
/>
{!readonly && (
<ReactionSelector
size="md"
position="top"
value={
commentReactions
?.filter((reaction) => reaction.actor === user?.id)
.map((r) => r.reaction) || []
}
onSelect={handleReactionClick}
/>
)}
{Object.keys(groupedReactions || {}).map(
(reaction) =>
@ -64,6 +67,7 @@ export const CommentReaction: React.FC<Props> = (props) => {
groupedReactions[reaction].length > 0 && (
<button
type="button"
disabled={readonly}
onClick={() => {
handleReactionClick(reaction);
}}

View file

@ -47,7 +47,7 @@ export const SidebarCycleSelect: React.FC<Props> = ({
issuesService
.removeIssueFromCycle(workspaceSlug as string, projectId as string, cycleId, bridgeId)
.then((res) => {
.then(() => {
mutate(ISSUE_DETAILS(issueId as string));
mutate(CYCLE_ISSUES(cycleId));