-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tasks code and task history displayed in app panel (#360)
* task docstring, code and run histroy added * task result fields modified, docstring field removed * ADD : Task History added * Add : Code container changed to monaco editor * Fix:Task History card updated * Fix : line breaks fixed at task history card * Add : card text made overflow x -axis * Fix : task coloumn title changes bold to normal weight * Delete: comment deleted * FIX : task name text color changed * FIX : Mock data changes done * fix lint errors * FIX: 1. Monoco editor made only readable 2. 'No task history' if no data task history * Fix : revert changes from main * Add : task history modal additional added "name, id " * Fix : start_date issue fixed * FIX : removed "remove policy button" * extra workspace creation removed * build removed * Fix : build files removed * Remove : unwanted console removed * revert build changes --------- Co-authored-by: prem056627 <prem@zelthy.com> Co-authored-by: Harsh Shah <shahharsh176@gmail.com>
- Loading branch information
1 parent
78599ee
commit acee998
Showing
18 changed files
with
453 additions
and
68 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
backend/src/zango/assets/app_panel/js/build.1725607974432.min.js
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
import { Menu, Transition } from '@headlessui/react'; | ||
import { Fragment, useState } from 'react'; | ||
import { usePopper } from 'react-popper'; | ||
import { ReactComponent as InfoIcon } from '../../../src/assets/images/svg/info-icon.svg'; | ||
|
||
export default function HeaderInfoHover({ message }) { | ||
const [referenceElement, setReferenceElement] = useState(null); | ||
const [popperElement, setPopperElement] = useState(null); | ||
const [isOpen, setIsOpen] = useState(false); | ||
|
||
const { styles, attributes } = usePopper(referenceElement, popperElement, { | ||
placement: 'bottom-end', | ||
modifiers: [ | ||
{ | ||
name: 'offset', | ||
options: { | ||
offset: [460, 2], | ||
}, | ||
}, | ||
], | ||
}); | ||
|
||
return ( | ||
<div | ||
className="relative" | ||
onMouseEnter={() => setIsOpen(true)} | ||
onMouseLeave={() => setIsOpen(false)} | ||
> | ||
<Menu as="div" className="relative flex"> | ||
<Transition | ||
as={Fragment} | ||
ref={(ref) => setPopperElement(ref)} | ||
style={styles.popper} | ||
{...attributes.popper} | ||
show={isOpen} | ||
> | ||
<Menu.Items className="absolute bottom-[30px] right-0 z-20 min-w-[186px] origin-bottom-right rounded-[4px] bg-white shadow-table-menu focus:outline-none"> | ||
<div className="p-[4px]"> | ||
<Menu.Item> | ||
{({ active }) => ( | ||
<div | ||
className={`${ | ||
active ? 'bg-white' : '' | ||
} flex w-full max-w-fit flex-col rounded-[2px] px-[12px] py-[8px]`} | ||
> | ||
<span className="text-wrap text-start font-lato text-[12px] leading-[16px] tracking-[0.2px] text-[#6C747D]"> | ||
{message} | ||
</span> | ||
</div> | ||
)} | ||
</Menu.Item> | ||
</div> | ||
</Menu.Items> | ||
</Transition> | ||
<Menu.Button | ||
className="relative z-10 flex w-full justify-center focus:outline-none" | ||
ref={(ref) => setReferenceElement(ref)} | ||
> | ||
<InfoIcon className="h-[16px] min-h-[16px] w-[16px] min-w-[16px] " /> | ||
</Menu.Button> | ||
</Menu> | ||
</div> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
{ "buildMajor": 0, "buildMinor": 3, "buildPatch": 0, "buildTag": "" } | ||
{ "buildMajor": 0, "buildMinor": 3, "buildPatch": 0, "buildTag": "" } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.