@e-llm-studio/requirement-ai 0.0.109 → 0.0.111
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/features/RequirementAI/components/UserStoryCard/UserStoryCard.js +1 -1
- package/dist/cjs/features/RequirementAI/components/story-screen/BigEnoughPanel.js +1 -1
- package/dist/cjs/features/RequirementAI/components/story-screen/BigEnoughPanel.module.css.js +1 -1
- package/dist/cjs/features/RequirementAI/components/userstory-approval-screen/UserStoryApprovalScreen.js +1 -1
- package/dist/cjs/features/RequirementAI/components/userstory-approval-screen/UserStoryApprovalScreen.module.css.js +1 -1
- package/dist/cjs/features/RequirementAI/hooks/useStreamContentHandler.js +1 -1
- package/dist/features/RequirementAI/components/UserStoryCard/UserStoryCard.js +1 -1
- package/dist/features/RequirementAI/components/story-screen/BigEnoughPanel.js +1 -1
- package/dist/features/RequirementAI/components/story-screen/BigEnoughPanel.module.css.js +1 -1
- package/dist/features/RequirementAI/components/userstory-approval-screen/UserStoryApprovalScreen.js +1 -1
- package/dist/features/RequirementAI/components/userstory-approval-screen/UserStoryApprovalScreen.module.css.js +1 -1
- package/dist/features/RequirementAI/hooks/useStreamContentHandler.js +1 -1
- package/dist/types/src/features/RequirementAI/components/RequirementAIWrapper/RequirementAIWrapper.d.ts +0 -1
- package/dist/types/src/features/RequirementAI/components/RequirementAIWrapper/RequirementAIWrapper.d.ts.map +1 -1
- package/dist/types/src/features/RequirementAI/components/UserStoryCard/UserStoryCard.d.ts.map +1 -1
- package/dist/types/src/features/RequirementAI/components/story-screen/BigEnoughPanel.d.ts.map +1 -1
- package/dist/types/src/features/RequirementAI/utils/proccess-stream.utils.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),t=require("react/jsx-runtime"),n=require("react"),s=require("lucide-react"),r=require("showdown"),i=require("@mui/material"),l=require("uuid"),o=require("./UserStoryCard.module.css.js"),a=require("../../utils/helpers.js"),u=require("../../utils/user-story.utils.js"),d=require("../../shared/AtomicButton.js"),c=require("../RichTextEditor/RichTextEditor.js"),f=require("../userstory-with-citation/UserStoryWithCitation.js"),v=require("../RequirementAIWrapper/RequirementAIWrapper.js"),y=require("../story-screen/BigEnoughPanel.js");function h(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var _=h(r);function g(n){for(var r,o=[],a=/<learned>(.*?)<\/learned>/g,u=0,d=0;null!==(r=a.exec(n));){var c=r[1],f=r.index;f>u&&o.push(t.jsx("span",{children:n.slice(u,f)},"text-pre-".concat(d++))),o.push(t.jsx(i.Tooltip,e.__assign({title:c,placement:"top"},{children:t.jsx(s.Info,{size:16,className:"inline-block mx-1 text-blue-500 hover:text-blue-700 cursor"})}),"tooltip-".concat(l.v4()))),u=a.lastIndex}return u<(null==n?void 0:n.length)&&o.push(t.jsx("span",{children:n.slice(u)},"text-post-".concat(d++))),o}var m=function(n){var r,i=n.displayName,l=v.useRequirementAI().customStyles,a=null===(r=null==l?void 0:l.userStoryCardStyles)||void 0===r?void 0:r.showDisplayName;return t.jsxs("div",e.__assign({className:o.default.displayName,style:null==a?void 0:a.wrapper},{children:[t.jsx(s.Bookmark,{className:o.default.displayNameIcon,style:null==a?void 0:a.displayNameIcon}),t.jsxs("span",e.__assign({style:null==a?void 0:a.label},{children:[i,":"]}))]}))},p=function(r){var l,h,S=r.isUserStoryCurrentlyUpdated,x=r.artifactId,j=r.artifactTitleId,C=r.parentUserStory,I=r.currentUserStory,w=r.onUserStoryChange,N=r.parentIndex,U=r.currentIndex,b=r.enableDownload,D=r.isDiffEditReviewMode,B=r.showUserStoryDiff,M=r.handleDownloadUserStory,k=r.handleOpenSendDialog,q=r.updateUserStoryArtifact,A=r.selectedArtifactId,E=r.isDisplayHighlightControl,R=r.elementDisplayConfig,T=v.useRequirementAI(),L=T.searchQueryList,H=T.citations,P=T.customStyles,z=null==P?void 0:P.userStoryCardStyles,W=null===(l=null==P?void 0:P.userStoryScreenStyles)||void 0===l?void 0:l.userStoryContentStyles,O=n.useState(e.__assign(e.__assign({},structuredClone(I)),{value:a.formatMarkdown(I.value)||""})),F=O[0],V=O[1],Q=n.useState({userStory:!1}),G=Q[0],J=Q[1],K=v.useRequirementAI(),X=K.userStory,Y=K.customIcons,Z=n.useState(""===N||A===I.artifactId),$=Z[0],ee=Z[1],te=n.useState(!1);te[0];var ne=te[1],se=n.useState(null),re=se[0],ie=se[1],le=n.useState(!1),oe=le[0],ae=le[1],ue=n.useRef(null),de=n.useState(!1);de[0];var ce=de[1],fe=n.useRef(null);n.useEffect(function(){S&&ee(S)},[S]),n.useEffect(function(){V(e.__assign(e.__assign({},structuredClone(I)),{value:a.formatMarkdown(I.value)||""}))},[I]),n.useEffect(function(){L.length>0?ee(!0):A&&ee(A===I.artifactId)},[L,A,I.artifactId]);var ve=function(){ie(null)},ye=function(){ee(function(e){return!e})};return t.jsxs("div",e.__assign({className:o.default.card,style:null==z?void 0:z.cardStyle},{children:[t.jsxs("div",e.__assign({className:o.default.titleSection,style:null==z?void 0:z.titleSection},{children:[t.jsxs("div",e.__assign({className:o.default.titleRow,style:null==z?void 0:z.titleRow,onClick:ye},{children:[t.jsxs("div",e.__assign({className:o.default.titleLeft,style:null==z?void 0:z.titleLeft,onMouseEnter:function(){return ce(!0)},onMouseLeave:function(){return ce(!1)}},{children:[t.jsx(m,{displayName:j}),t.jsx("h2",e.__assign({className:o.default.storyTitle,style:null==z?void 0:z.storyTitle},{children:g(I.title)}),I.artifactId)]})),t.jsxs("div",e.__assign({className:o.default.titleActions,style:null==z?void 0:z.titleActions,onClick:function(e){return e.stopPropagation()}},{children:[(null==I?void 0:I.big_enough)&&(null==I?void 0:I.big_enough_decision_factors)&&t.jsx(y.BigEnoughPanel,{customIcons:Y,customStyles:null==z?void 0:z.aiReasoningCitaionStyles,currentUserStory:I,panelStyles:null==z?void 0:z.BigEnoughStyles}),!G.userStory&&t.jsxs(t.Fragment,{children:[!1!==(null==R?void 0:R.showShareButton)&&t.jsx("button",e.__assign({className:o.default.iconButton,style:null==z?void 0:z.iconButton,onClick:function(e){ie(e.currentTarget)}},{children:t.jsx(s.ExternalLink,{size:16})})),t.jsxs(i.Menu,e.__assign({id:"user-story-share-menu",anchorEl:re,open:!!re,onClose:function(){return ie(null)},style:null==z?void 0:z.userStoryShareMenu},{children:[b&&t.jsx(i.MenuItem,e.__assign({style:null==z?void 0:z.userStoryMenuItem,onClick:function(){return e.__awaiter(void 0,void 0,void 0,function(){return e.__generator(this,function(e){switch(e.label){case 0:return ne(!0),M?[4,Promise.all([M("pdf"),M("doc")])]:[2];case 1:return e.sent(),ne(!1),[2]}})})}},{children:t.jsxs("div",e.__assign({ref:ue,className:o.default.menuItemContent,style:null==z?void 0:z.menuItemContent},{children:[t.jsx(s.Download,{size:16,color:null==z?void 0:z.menuIconColor}),t.jsx("p",e.__assign({style:null==z?void 0:z.menuLabel},{children:"Download"}))]}))})),t.jsx(i.MenuItem,e.__assign({style:null==z?void 0:z.userStoryMenuItem,onClick:function(){return e.__awaiter(void 0,void 0,void 0,function(){var t;return e.__generator(this,function(n){return t=I,C&&(t=e.__assign(e.__assign({},I),{value:"".concat(u.replaceTitleSection(null==C?void 0:C.value,I.title)," \n").concat(I.value)})),null==k||k(!0,[t],I.artifactId),ve(),[2]})})}},{children:t.jsxs("div",e.__assign({style:null==z?void 0:z.menuItemContent,className:o.default.menuItemContentPadded},{children:[t.jsx(s.Share2,{size:16,color:null==z?void 0:z.menuIconColor}),t.jsx("p",e.__assign({style:null==z?void 0:z.menuLabel},{children:"Send"}))]}))})),t.jsx(i.MenuItem,e.__assign({style:null==z?void 0:z.userStoryMenuItem,onClick:function(){return e.__awaiter(void 0,void 0,void 0,function(){var t,n,s,r,i;return e.__generator(this,function(e){switch(e.label){case 0:t=new _.default.Converter,n=t.makeHtml(a.formatMarkdown(I.value)||I.value),s=function(e){var t=(new _.default.Converter).makeHtml(e),n=document.createElement("div");return n.innerHTML=t,n.textContent||n.innerText||""}(a.formatMarkdown(I.value)||I.value),r=new ClipboardItem({"text/plain":new Blob([s],{type:"text/plain"}),"text/html":new Blob([n],{type:"text/html"})}),e.label=1;case 1:return e.trys.push([1,3,4,5]),[4,navigator.clipboard.write([r])];case 2:return e.sent(),console.log("Copied User Story"),[3,5];case 3:return i=e.sent(),console.error("Failed to copy user story:",i),[3,5];case 4:return ve(),[7];case 5:return[2]}})})}},{children:t.jsxs("div",e.__assign({style:null==z?void 0:z.menuItemContent,className:o.default.menuItemContentPadded},{children:[t.jsx(s.Copy,{size:16,color:null==z?void 0:z.menuIconColor}),t.jsx("p",e.__assign({style:null==z?void 0:z.menuLabel},{children:"Copy"}))]}))}))]}))]}),G.userStory&&$?t.jsx(d.default,{type:"outline",children:"Cancel",style:null==z?void 0:z.cancelButton,onClick:function(){var t;null===(t=fe.current)||void 0===t||t.abort(),J(function(t){return e.__assign(e.__assign({},t),{userStory:!1})})}}):t.jsx(t.Fragment,{}),G.userStory&&$?t.jsx(d.default,{type:"fill",children:oe?t.jsxs("span",e.__assign({className:o.default.savingSpinner},{children:[t.jsx(s.LoaderCircle,{className:o.default.spinAnimation}),t.jsx("span",{children:"Saving..."})]})):"Save",isDisable:oe,style:oe?null==z?void 0:z.savingButton:null==z?void 0:z.saveButton,onClick:function(){return e.__awaiter(void 0,void 0,void 0,function(){var t;return e.__generator(this,function(n){switch(n.label){case 0:return ae(!0),"userStory"==="userStory"&&(w(F),console.log("I am changing RTE editor values",F)),[4,q(H,X,x,null===(t=fe.current)||void 0===t?void 0:t.signal)];case 1:return n.sent(),J(function(t){return e.__assign(e.__assign({},t),{userStory:!1})}),ae(!1),[2]}})})}}):!D&&!B&&$&&!1!==(null==R?void 0:R.showEditButton)&&t.jsx("button",e.__assign({className:o.default.iconButton,style:null==z?void 0:z.editButton,onClick:function(){return J(function(t){return e.__assign(e.__assign({},t),{userStory:!0})})}},{children:t.jsx(s.PencilIcon,{color:null==z?void 0:z.pencilIconColor,size:16})})),t.jsx("button",e.__assign({type:"button",onClick:function(e){e.stopPropagation(),ye()},style:null==z?void 0:z.chevronButton,className:o.default.chevronButton},{children:$?t.jsx(s.ChevronUp,{className:o.default.chevronIcon,color:null==z?void 0:z.chevronIconColor}):t.jsx(s.ChevronDown,{className:o.default.chevronIcon,color:null==z?void 0:z.chevronIconColor})}))]}))]})),t.jsx("div",{className:o.default.divider,style:null==z?void 0:z.dividerStyle})]})),$&&t.jsx("div",e.__assign({className:o.default.cardContent,style:null==z?void 0:z.cardContentStyle},{children:t.jsxs("div",e.__assign({className:o.default.contentInner,style:null==z?void 0:z.contentInner},{children:[t.jsxs("div",e.__assign({className:o.default.descriptionSection,style:null==z?void 0:z.descriptionSection},{children:[t.jsx("div",{className:o.default.justifyBetween,style:null==z?void 0:z.justifyBetween}),G.userStory?t.jsx(c.default,{minHeight:"100%",height:"100%",type:"string",value:a.formatMarkdown(I.value)||"",handleUpdateState:function(t,n){var s=a.indentMarkdown(n);V(function(t){return e.__assign(e.__assign({},t),{value:s||""})})},doNotShowBorderInViewMode:!1,onBlur:function(){},mode:G.userStory?"edit":"readOnly"}):t.jsx(f.default,{showUserStoryDiff:B,isParent:""===N,message:a.formatMarkdown(I.value)||"",artifactId:I.artifactId,customStyles:W,isDisplayHighlightControl:E})]})),null===(h=F.sub_features)||void 0===h?void 0:h.map(function(n,s){return t.jsx(p,{artifactId:x,isUserStoryCurrentlyUpdated:S,artifactTitleId:"".concat(j,"-").concat(String.fromCharCode(65+s)),parentUserStory:I,parentIndex:"".concat(N).concat(N&&".").concat(U),currentIndex:"".concat(s+1),doNotShowBorderInViewMode:!1,currentUserStory:n,onUserStoryChange:function(t){return function(t,n){var s=e.__spreadArray([],I.sub_features||[],!0);s[t]=n,w(e.__assign(e.__assign({},I),{sub_features:s}))}(s,t)},enableDownload:!0,isDiffEditReviewMode:D,showUserStoryDiff:B,updateUserStoryArtifact:q,handleDownloadUserStory:M,handleOpenSendDialog:k,isDisplayHighlightControl:E,elementDisplayConfig:R},n.artifactId)})]}))}))]}))};exports.StoryCard=p,exports.UserStoryCardWrapper=function(n){var r=n.artifactTitleIDs,i=n.isDiffEditReviewMode,l=n.showUserStoryDiff,a=n.updateUserStoryArtifact,u=n.isUserStoryCurrentlyUpdated,d=n.artifactId,c=n.handleOpenSendDialog,f=n.handleDownloadUserStory,y=n.selectedArtifactId,h=n.isDisplayHighlightControl,_=n.elementDisplayConfig,g=v.useRequirementAI(),m=g.userStory,S=g.setUserStory,x=g.customStyles,j=g.searchQueryList,C=g.currentHighlightIndex,I=g.setCurrentHighlightIndex,w=null==x?void 0:x.userStoryCardStyles,N=0===C,U=C===j.length-1;return t.jsxs("div",e.__assign({className:o.default.userStoryCardWrapper,style:h?e.__assign(e.__assign({},null==w?void 0:w.userStoryCardWrapper),{position:"relative"}):null==w?void 0:w.userStoryCardWrapper},{children:[h&&t.jsx(t.Fragment,{children:j.length>0&&t.jsx("div",e.__assign({className:o.default.wrapper},{children:t.jsx("div",e.__assign({className:o.default.highlightNavigation},{children:t.jsxs("div",e.__assign({className:o.default.navigationContainer},{children:[t.jsxs("span",e.__assign({className:o.default.navCounter},{children:[C+1," of ",j.length]})),t.jsxs("div",e.__assign({className:o.default.navButtons},{children:[t.jsx("button",e.__assign({onClick:function(){C>0&&I(function(e){return e-1})},className:o.default.navButton,disabled:N},{children:t.jsx(s.ChevronUpIcon,{size:20,className:o.default.navIcon})})),t.jsx("button",e.__assign({onClick:function(){C<j.length-1&&I(function(e){return e+1})},className:o.default.navButton,disabled:U},{children:t.jsx(s.ChevronDownIcon,{size:20,className:o.default.navIcon})}))]}))]}))}))}))}),m.map(function(n,s){return t.jsx(p,{isUserStoryCurrentlyUpdated:u,artifactId:d,artifactTitleId:r[s]||"",currentUserStory:n,onUserStoryChange:function(t){S(function(n){return n[s]=t,e.__spreadArray([],n,!0)})},parentIndex:"",currentIndex:"".concat(s+1),doNotShowBorderInViewMode:!0,enableDownload:!0,isDiffEditReviewMode:i,showUserStoryDiff:l,updateUserStoryArtifact:a,handleOpenSendDialog:c,handleDownloadUserStory:f,selectedArtifactId:y,isDisplayHighlightControl:h,elementDisplayConfig:_},n.artifactId)})]}))},exports.default=p,exports.replaceLearnedTagsWithInfo=g;
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),t=require("react/jsx-runtime"),n=require("react"),s=require("lucide-react"),r=require("showdown"),i=require("@mui/material"),l=require("uuid"),o=require("./UserStoryCard.module.css.js"),a=require("../../utils/helpers.js"),u=require("../../utils/user-story.utils.js"),d=require("../../shared/AtomicButton.js"),c=require("../RichTextEditor/RichTextEditor.js"),f=require("../userstory-with-citation/UserStoryWithCitation.js"),v=require("../RequirementAIWrapper/RequirementAIWrapper.js"),y=require("../story-screen/BigEnoughPanel.js");function h(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var _=h(r);function g(n){for(var r,o=[],a=/<learned>(.*?)<\/learned>/g,u=0,d=0;null!==(r=a.exec(n));){var c=r[1],f=r.index;f>u&&o.push(t.jsx("span",{children:n.slice(u,f)},"text-pre-".concat(d++))),o.push(t.jsx(i.Tooltip,e.__assign({title:c,placement:"top"},{children:t.jsx(s.Info,{size:16,className:"inline-block mx-1 text-blue-500 hover:text-blue-700 cursor"})}),"tooltip-".concat(l.v4()))),u=a.lastIndex}return u<(null==n?void 0:n.length)&&o.push(t.jsx("span",{children:n.slice(u)},"text-post-".concat(d++))),o}var m=function(n){var r,i=n.displayName,l=v.useRequirementAI().customStyles,a=null===(r=null==l?void 0:l.userStoryCardStyles)||void 0===r?void 0:r.showDisplayName;return t.jsxs("div",e.__assign({className:o.default.displayName,style:null==a?void 0:a.wrapper},{children:[t.jsx(s.Bookmark,{className:o.default.displayNameIcon,style:null==a?void 0:a.displayNameIcon}),t.jsxs("span",e.__assign({style:null==a?void 0:a.label},{children:[i,":"]}))]}))},p=function(r){var l,h,S=r.isUserStoryCurrentlyUpdated,x=r.artifactId,j=r.artifactTitleId,C=r.parentUserStory,I=r.currentUserStory,w=r.onUserStoryChange,N=r.parentIndex,b=r.currentIndex,U=r.enableDownload,D=r.isDiffEditReviewMode,B=r.showUserStoryDiff,M=r.handleDownloadUserStory,k=r.handleOpenSendDialog,q=r.updateUserStoryArtifact,A=r.selectedArtifactId,E=r.isDisplayHighlightControl,R=r.elementDisplayConfig,T=v.useRequirementAI(),L=T.searchQueryList,H=T.citations,P=T.customStyles,z=null==P?void 0:P.userStoryCardStyles,W=null===(l=null==P?void 0:P.userStoryScreenStyles)||void 0===l?void 0:l.userStoryContentStyles,O=n.useState(e.__assign(e.__assign({},structuredClone(I)),{value:a.formatMarkdown(I.value)||""})),F=O[0],V=O[1],Q=n.useState({userStory:!1}),G=Q[0],J=Q[1],K=v.useRequirementAI(),X=K.userStory,Y=K.customIcons,Z=n.useState(""===N||A===I.artifactId),$=Z[0],ee=Z[1],te=n.useState(!1);te[0];var ne=te[1],se=n.useState(null),re=se[0],ie=se[1],le=n.useState(!1),oe=le[0],ae=le[1],ue=n.useRef(null),de=n.useState(!1);de[0];var ce=de[1],fe=n.useRef(null);n.useEffect(function(){S&&ee(S)},[S]),n.useEffect(function(){V(e.__assign(e.__assign({},structuredClone(I)),{value:a.formatMarkdown(I.value)||""}))},[I]),n.useEffect(function(){L.length>0?ee(!0):A&&ee(A===I.artifactId)},[L,A,I.artifactId]);var ve=function(){ie(null)},ye=function(){ee(function(e){return!e})};var he=null!=(null==I?void 0:I.big_enough)&&!Number.isNaN(I.big_enough)&&!!(null==I?void 0:I.big_enough_decision_factors);return t.jsxs("div",e.__assign({className:o.default.card,style:null==z?void 0:z.cardStyle},{children:[t.jsxs("div",e.__assign({className:o.default.titleSection,style:null==z?void 0:z.titleSection},{children:[t.jsxs("div",e.__assign({className:o.default.titleRow,style:null==z?void 0:z.titleRow,onClick:ye},{children:[t.jsxs("div",e.__assign({className:o.default.titleLeft,style:null==z?void 0:z.titleLeft,onMouseEnter:function(){return ce(!0)},onMouseLeave:function(){return ce(!1)}},{children:[t.jsx(m,{displayName:j}),t.jsx("h2",e.__assign({className:o.default.storyTitle,style:null==z?void 0:z.storyTitle},{children:g(I.title)}),I.artifactId)]})),t.jsxs("div",e.__assign({className:o.default.titleActions,style:null==z?void 0:z.titleActions,onClick:function(e){return e.stopPropagation()}},{children:[he&&t.jsx(y.BigEnoughPanel,{customIcons:Y,customStyles:null==z?void 0:z.aiReasoningCitaionStyles,currentUserStory:I,panelStyles:null==z?void 0:z.BigEnoughStyles}),!G.userStory&&t.jsxs(t.Fragment,{children:[!1!==(null==R?void 0:R.showShareButton)&&t.jsx("button",e.__assign({className:o.default.iconButton,style:null==z?void 0:z.iconButton,onClick:function(e){ie(e.currentTarget)}},{children:t.jsx(s.ExternalLink,{size:16})})),t.jsxs(i.Menu,e.__assign({id:"user-story-share-menu",anchorEl:re,open:!!re,onClose:function(){return ie(null)},style:null==z?void 0:z.userStoryShareMenu},{children:[U&&t.jsx(i.MenuItem,e.__assign({style:null==z?void 0:z.userStoryMenuItem,onClick:function(){return e.__awaiter(void 0,void 0,void 0,function(){return e.__generator(this,function(e){switch(e.label){case 0:return ne(!0),M?[4,Promise.all([M("pdf"),M("doc")])]:[2];case 1:return e.sent(),ne(!1),[2]}})})}},{children:t.jsxs("div",e.__assign({ref:ue,className:o.default.menuItemContent,style:null==z?void 0:z.menuItemContent},{children:[t.jsx(s.Download,{size:16,color:null==z?void 0:z.menuIconColor}),t.jsx("p",e.__assign({style:null==z?void 0:z.menuLabel},{children:"Download"}))]}))})),t.jsx(i.MenuItem,e.__assign({style:null==z?void 0:z.userStoryMenuItem,onClick:function(){return e.__awaiter(void 0,void 0,void 0,function(){var t;return e.__generator(this,function(n){return t=I,C&&(t=e.__assign(e.__assign({},I),{value:"".concat(u.replaceTitleSection(null==C?void 0:C.value,I.title)," \n").concat(I.value)})),null==k||k(!0,[t],I.artifactId),ve(),[2]})})}},{children:t.jsxs("div",e.__assign({style:null==z?void 0:z.menuItemContent,className:o.default.menuItemContentPadded},{children:[t.jsx(s.Share2,{size:16,color:null==z?void 0:z.menuIconColor}),t.jsx("p",e.__assign({style:null==z?void 0:z.menuLabel},{children:"Send"}))]}))})),t.jsx(i.MenuItem,e.__assign({style:null==z?void 0:z.userStoryMenuItem,onClick:function(){return e.__awaiter(void 0,void 0,void 0,function(){var t,n,s,r,i;return e.__generator(this,function(e){switch(e.label){case 0:t=new _.default.Converter,n=t.makeHtml(a.formatMarkdown(I.value)||I.value),s=function(e){var t=(new _.default.Converter).makeHtml(e),n=document.createElement("div");return n.innerHTML=t,n.textContent||n.innerText||""}(a.formatMarkdown(I.value)||I.value),r=new ClipboardItem({"text/plain":new Blob([s],{type:"text/plain"}),"text/html":new Blob([n],{type:"text/html"})}),e.label=1;case 1:return e.trys.push([1,3,4,5]),[4,navigator.clipboard.write([r])];case 2:return e.sent(),console.log("Copied User Story"),[3,5];case 3:return i=e.sent(),console.error("Failed to copy user story:",i),[3,5];case 4:return ve(),[7];case 5:return[2]}})})}},{children:t.jsxs("div",e.__assign({style:null==z?void 0:z.menuItemContent,className:o.default.menuItemContentPadded},{children:[t.jsx(s.Copy,{size:16,color:null==z?void 0:z.menuIconColor}),t.jsx("p",e.__assign({style:null==z?void 0:z.menuLabel},{children:"Copy"}))]}))}))]}))]}),G.userStory&&$?t.jsx(d.default,{type:"outline",children:"Cancel",style:null==z?void 0:z.cancelButton,onClick:function(){var t;null===(t=fe.current)||void 0===t||t.abort(),J(function(t){return e.__assign(e.__assign({},t),{userStory:!1})})}}):t.jsx(t.Fragment,{}),G.userStory&&$?t.jsx(d.default,{type:"fill",children:oe?t.jsxs("span",e.__assign({className:o.default.savingSpinner},{children:[t.jsx(s.LoaderCircle,{className:o.default.spinAnimation}),t.jsx("span",{children:"Saving..."})]})):"Save",isDisable:oe,style:oe?null==z?void 0:z.savingButton:null==z?void 0:z.saveButton,onClick:function(){return e.__awaiter(void 0,void 0,void 0,function(){var t;return e.__generator(this,function(n){switch(n.label){case 0:return ae(!0),"userStory"==="userStory"&&(w(F),console.log("I am changing RTE editor values",F)),[4,q(H,X,x,null===(t=fe.current)||void 0===t?void 0:t.signal)];case 1:return n.sent(),J(function(t){return e.__assign(e.__assign({},t),{userStory:!1})}),ae(!1),[2]}})})}}):!D&&!B&&$&&!1!==(null==R?void 0:R.showEditButton)&&t.jsx("button",e.__assign({className:o.default.iconButton,style:null==z?void 0:z.editButton,onClick:function(){return J(function(t){return e.__assign(e.__assign({},t),{userStory:!0})})}},{children:t.jsx(s.PencilIcon,{color:null==z?void 0:z.pencilIconColor,size:16})})),t.jsx("button",e.__assign({type:"button",onClick:function(e){e.stopPropagation(),ye()},style:null==z?void 0:z.chevronButton,className:o.default.chevronButton},{children:$?t.jsx(s.ChevronUp,{className:o.default.chevronIcon,color:null==z?void 0:z.chevronIconColor}):t.jsx(s.ChevronDown,{className:o.default.chevronIcon,color:null==z?void 0:z.chevronIconColor})}))]}))]})),t.jsx("div",{className:o.default.divider,style:null==z?void 0:z.dividerStyle})]})),$&&t.jsx("div",e.__assign({className:o.default.cardContent,style:null==z?void 0:z.cardContentStyle},{children:t.jsxs("div",e.__assign({className:o.default.contentInner,style:null==z?void 0:z.contentInner},{children:[t.jsxs("div",e.__assign({className:o.default.descriptionSection,style:null==z?void 0:z.descriptionSection},{children:[t.jsx("div",{className:o.default.justifyBetween,style:null==z?void 0:z.justifyBetween}),G.userStory?t.jsx(c.default,{minHeight:"100%",height:"100%",type:"string",value:a.formatMarkdown(I.value)||"",handleUpdateState:function(t,n){var s=a.indentMarkdown(n);V(function(t){return e.__assign(e.__assign({},t),{value:s||""})})},doNotShowBorderInViewMode:!1,onBlur:function(){},mode:G.userStory?"edit":"readOnly"}):t.jsx(f.default,{showUserStoryDiff:B,isParent:""===N,message:a.formatMarkdown(I.value)||"",artifactId:I.artifactId,customStyles:W,isDisplayHighlightControl:E})]})),null===(h=F.sub_features)||void 0===h?void 0:h.map(function(n,s){return t.jsx(p,{artifactId:x,isUserStoryCurrentlyUpdated:S,artifactTitleId:"".concat(j,"-").concat(String.fromCharCode(65+s)),parentUserStory:I,parentIndex:"".concat(N).concat(N&&".").concat(b),currentIndex:"".concat(s+1),doNotShowBorderInViewMode:!1,currentUserStory:n,onUserStoryChange:function(t){return function(t,n){var s=e.__spreadArray([],I.sub_features||[],!0);s[t]=n,w(e.__assign(e.__assign({},I),{sub_features:s}))}(s,t)},enableDownload:!0,isDiffEditReviewMode:D,showUserStoryDiff:B,updateUserStoryArtifact:q,handleDownloadUserStory:M,handleOpenSendDialog:k,isDisplayHighlightControl:E,elementDisplayConfig:R},n.artifactId)})]}))}))]}))};exports.StoryCard=p,exports.UserStoryCardWrapper=function(n){var r=n.artifactTitleIDs,i=n.isDiffEditReviewMode,l=n.showUserStoryDiff,a=n.updateUserStoryArtifact,u=n.isUserStoryCurrentlyUpdated,d=n.artifactId,c=n.handleOpenSendDialog,f=n.handleDownloadUserStory,y=n.selectedArtifactId,h=n.isDisplayHighlightControl,_=n.elementDisplayConfig,g=v.useRequirementAI(),m=g.userStory,S=g.setUserStory,x=g.customStyles,j=g.searchQueryList,C=g.currentHighlightIndex,I=g.setCurrentHighlightIndex,w=null==x?void 0:x.userStoryCardStyles,N=0===C,b=C===j.length-1;return t.jsxs("div",e.__assign({className:o.default.userStoryCardWrapper,style:h?e.__assign(e.__assign({},null==w?void 0:w.userStoryCardWrapper),{position:"relative"}):null==w?void 0:w.userStoryCardWrapper},{children:[h&&t.jsx(t.Fragment,{children:j.length>0&&t.jsx("div",e.__assign({className:o.default.wrapper},{children:t.jsx("div",e.__assign({className:o.default.highlightNavigation},{children:t.jsxs("div",e.__assign({className:o.default.navigationContainer},{children:[t.jsxs("span",e.__assign({className:o.default.navCounter},{children:[C+1," of ",j.length]})),t.jsxs("div",e.__assign({className:o.default.navButtons},{children:[t.jsx("button",e.__assign({onClick:function(){C>0&&I(function(e){return e-1})},className:o.default.navButton,disabled:N},{children:t.jsx(s.ChevronUpIcon,{size:20,className:o.default.navIcon})})),t.jsx("button",e.__assign({onClick:function(){C<j.length-1&&I(function(e){return e+1})},className:o.default.navButton,disabled:b},{children:t.jsx(s.ChevronDownIcon,{size:20,className:o.default.navIcon})}))]}))]}))}))}))}),m.map(function(n,s){return t.jsx(p,{isUserStoryCurrentlyUpdated:u,artifactId:d,artifactTitleId:r[s]||"",currentUserStory:n,onUserStoryChange:function(t){S(function(n){return n[s]=t,e.__spreadArray([],n,!0)})},parentIndex:"",currentIndex:"".concat(s+1),doNotShowBorderInViewMode:!0,enableDownload:!0,isDiffEditReviewMode:i,showUserStoryDiff:l,updateUserStoryArtifact:a,handleOpenSendDialog:c,handleDownloadUserStory:f,selectedArtifactId:y,isDisplayHighlightControl:h,elementDisplayConfig:_},n.artifactId)})]}))},exports.default=p,exports.replaceLearnedTagsWithInfo=g;
|
|
2
2
|
//# sourceMappingURL=UserStoryCard.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),o=require("react/jsx-runtime"),n=require("react"),i=require("../../icons/BigEnoughIcon.js"),s=require("../ai-reasoning/AiReasoningCitationContent.js"),
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),o=require("react/jsx-runtime"),n=require("react"),i=require("../../icons/BigEnoughIcon.js"),s=require("../ai-reasoning/AiReasoningCitationContent.js"),t=require("../RequirementAIWrapper/RequirementAIWrapper.js"),r=require("./BigEnoughPanel.module.css.js");exports.BigEnoughPanel=function(l){var a,u,c,d,g=l.customIcons,_=l.customStyles,v=l.currentUserStory,p=l.panelStyles,f=l.showPanel,h=void 0!==f&&f;t.useRequirementAI().searchQueryList;var b=n.useState(!!h),m=b[0],y=b[1],j=n.useRef(null);return o.jsxs("div",e.__assign({onClick:function(e){return e.stopPropagation()}},{children:[!h&&o.jsx("button",e.__assign({ref:j,className:r.default.developerEffortButton,style:null==p?void 0:p.buttonStyle,onClick:function(e){e.stopPropagation(),y(function(e){return!e})}},{children:o.jsx(i.default,{})})),m&&o.jsxs(o.Fragment,{children:[o.jsx("div",{className:null===r.default||void 0===r.default?void 0:r.default.backdrop,style:h?null==p?void 0:p.showPanelBackdropStyles:null==p?void 0:p.backdropStyle,onClick:function(e){e.stopPropagation(),y(!1)},onWheel:function(e){return e.stopPropagation()}}),o.jsx("div",e.__assign({className:"".concat(r.default.dropdown," ").concat(h?r.default.showPanelDropdown:""),style:e.__assign(e.__assign({},null==p?void 0:p.dropdownStyle),h?null==p?void 0:p.showPanelDropdownStyle:{})},{children:o.jsx(s.default,{cognitiveDecisionHeaders:{mainHeader:"Feature Implementation Score - ".concat((null==v?void 0:v.big_enough)||0)},big_enough_block:null===(a=v.big_enough_decision_factors)||void 0===a?void 0:a.big_enough_block,aiReason:{relevance_score:(null===(u=null==v?void 0:v.big_enough_decision_factors)||void 0===u?void 0:u.relevance_score)||0,reason:(null===(c=null==v?void 0:v.big_enough_decision_factors)||void 0===c?void 0:c.score_reason)||"",gap:(null===(d=null==v?void 0:v.big_enough_decision_factors)||void 0===d?void 0:d.gap)||"",id:"big-enough-cd"},customIcons:g,customStyles:_})}))]})]}))};
|
|
2
2
|
//# sourceMappingURL=BigEnoughPanel.js.map
|
package/dist/cjs/features/RequirementAI/components/story-screen/BigEnoughPanel.module.css.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});!function(){if("undefined"==typeof document)return;const e=document.createElement("style");e.type="text/css";const o=window.__CSP_NONCE__||document.querySelector('meta[name="csp-nonce"]')?.content;o&&e.setAttribute("nonce",o),e.appendChild(document.createTextNode(".BigEnoughPanel-module_developerEffortButton__KLQ-Z{background-color:#fff;border:1px solid #d1d5db;border-radius:.3rem;box-shadow:0 1px 2px #0000000d;cursor:pointer;padding:.4rem .8rem}.BigEnoughPanel-module_dropdown__mlBHL{background-color:#fff;border:1px solid #e5e7eb;border-radius:8px;left:20px;margin-top:1.25rem;position:absolute;top:100%;width:91.666667%;z-index:40}"));const
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});!function(){if("undefined"==typeof document)return;const e=document.createElement("style");e.type="text/css";const o=window.__CSP_NONCE__||document.querySelector('meta[name="csp-nonce"]')?.content;o&&e.setAttribute("nonce",o),e.appendChild(document.createTextNode(".BigEnoughPanel-module_developerEffortButton__KLQ-Z{background-color:#fff;border:1px solid #d1d5db;border-radius:.3rem;box-shadow:0 1px 2px #0000000d;cursor:pointer;margin-right:3px;padding:.4rem .8rem}.BigEnoughPanel-module_backdrop__J0KVD{height:100vh;inset:0;position:absolute;width:100vw;z-index:40}.BigEnoughPanel-module_dropdown__mlBHL.BigEnoughPanel-module_showPanelDropdown__qz6dk{max-height:70vh;overflow-y:scroll;top:10px}.BigEnoughPanel-module_dropdown__mlBHL{background-color:#fff;border:1px solid #e5e7eb;border-radius:8px;left:20px;margin-top:1.25rem;position:absolute;top:100%;width:91.666667%;z-index:40}"));const n=document.head||document.getElementsByTagName("head")[0]||document.documentElement;n&&n.appendChild(e)}(),exports.default={developerEffortButton:"BigEnoughPanel-module_developerEffortButton__KLQ-Z",backdrop:"BigEnoughPanel-module_backdrop__J0KVD",dropdown:"BigEnoughPanel-module_dropdown__mlBHL",showPanelDropdown:"BigEnoughPanel-module_showPanelDropdown__qz6dk"};
|
|
2
2
|
//# sourceMappingURL=BigEnoughPanel.module.css.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),t=require("react/jsx-runtime"),n=require("react"),r=require("../RequirementAIWrapper/RequirementAIWrapper.js"),a=require("../../utils/userstory-approval-transform.utils.js"),o=require("../../utils/userstory-approval.utils.js"),i=require("../../hooks/useApprovalStatus.js"),s=require("./components/ContentSegment/ContentSegment.js"),l=require("./components/ApprovalBadge/ApprovalBadge.js"),d=require("./UserStoryApprovalScreen.module.css.js"),c=require("../../icons/CheckIcon.js"),u=require("../../icons/BookmarkIcon.js"),v=require("./components/ApprovalSidebar/ApprovalSidebar.js"),p=require("lucide-react"),g=require("./UserStoryApprovalContext.js"),S=require("../story-screen/BigEnoughPanel.js"),f=require("../../icons/BigEnoughIcon.js"),h={showApproveAllButton:!0,allowEditing:!0,allowDeletion:!0,showSidebar:!1,containerHeight:"calc(100vh - 100px)",useFullWidth:!1},_={approveAll:"Approve All",approved:"Approved",approve:"Approve",correctMe:"Correct Me",delete:"Delete",save:"Save",cancel:"Cancel",savingArtifact:"Saving Artifact...",artifactSavedTitle:"Artifact Saved Successfully",artifactSavedMessage:"Your changes have been saved.",saveFailedTitle:"Failed to Save the Artifact",saveFailedMessage:"An error occurred while saving your changes.",emptyContentWarning:"Saving empty content is not allowed",unsavedChangesWarning:"Please save the updated changes to proceed with Approve All"},m=Object.assign(function(s){var l,c=s.artifactTitleIds,u=s.config,v=void 0===u?{}:u,p=s.callbacks,S=void 0===p?{}:p,f=s.labels,m=void 0===f?{}:f,y=s.isDisabled,A=void 0!==y&&y,b=s.children,I=s.classNames,x=s.selectedArtifactId,C=r.useRequirementAI(),j=C.userStory,E=C.customStyles,U=e.__assign(e.__assign({},h),v),N=e.__assign(e.__assign({},_),m),w=n.useState([]),k=w[0],q=w[1],F=n.useState(""),T=F[0],B=F[1],R=n.useState(""),D=R[0],P=R[1],M=n.useState(!1),W=M[0],O=M[1],V=n.useState(!0),z=V[0],L=V[1],H=n.useRef(void 0),G=n.useCallback(function(e,t,n,r){S.onShowNotification?S.onShowNotification(e,t,n,r):console.log("[".concat(e.toUpperCase(),"] ").concat(t,": ").concat(n))},[S]),Y=n.useCallback(function(e){S.onScrollToElement?S.onScrollToElement(e):(e.style.scrollMarginTop="20px",e.scrollIntoView({behavior:"smooth",block:"start"}))},[S]),J=n.useMemo(function(){var e=k.findIndex(function(e){return e.artifactId===T});return e>=0?e:0},[k,T]),K=k[J];n.useEffect(function(){H.current=K},[K]),n.useEffect(function(){var e;if(null==j?void 0:j.length){null===(e=S.onInitialize)||void 0===e||e.call(S),1===j.length&&L(!1),j.length>0&&!T&&B(x||j[0].artifactId);var t=a.createUserStoriesForApproval(a.cloneUserStories(j));q(t)}},[j,x]),n.useEffect(function(){x&&x!==T&&B(x)},[x,T]),n.useEffect(function(){if(K){var e=o.getFirstNonApprovedSegmentId(K,"");P(e)}},[null==K?void 0:K.artifactId]);var Q=n.useCallback(function(t,n){q(function(r){var a=e.__spreadArray([],r,!0);if("APPROVED"===n.approval_status&&"APPROVED"!==r[t].approval_status){var i=o.getFirstUnapprovedStoryId(r,n.artifactId);i&&B(i)}return a[t]=n,a})},[]),X=n.useCallback(function(e){var t=H.current;if(t){var n=o.getFirstNonApprovedSegmentId(t,e);"NA"!==n&&(P(""),setTimeout(function(){P(n)},0))}},[]);i.useApprovalStatus({userStoryForApproval:k,selectedUserStoryForApproval:K,userStoryIndex:J,callbacks:S,labels:N,onSaveUserStory:Q});var Z=e.__assign({height:U.containerHeight},U.useFullWidth?{width:"100%",marginLeft:0,marginRight:0}:{width:"calc(100% + 40px)",marginLeft:"-20px",marginRight:"-20px"}),$={userStoryForApproval:k,setUserStoryForApproval:q,selectedStoryArtifactId:T,setSelectedStoryArtifactId:B,selectedUserStoryIndex:J,selectedUserStoryForApproval:K,currentContentId:D,setCurrentContentId:P,isEditingSegment:W,setIsEditingSegment:O,isSidebarExpanded:z,setIsSidebarExpanded:L,artifactTitleIds:c,config:U,labels:N,callbacks:S,isDisabled:A,handleSaveUserStory:Q,handleUpdateContentId:X,showNotification:G,scrollToElement:Y};return t.jsx(g.UserStoryApprovalScreenContext.Provider,e.__assign({value:$},{children:t.jsx("div",e.__assign({className:"".concat(d.default.container," ").concat((null==I?void 0:I.container)||""),style:e.__assign(e.__assign({},Z),null===(l=null==E?void 0:E.approvalScreen)||void 0===l?void 0:l.wrapperContainer)},{children:b}))}))},{Sidebar:function(e){var n=e.Component,r=e.config,a=e.className,o=g.useUserStoryApprovalScreen(),i=o.isSidebarExpanded,s=o.selectedStoryArtifactId,l=o.setSelectedStoryArtifactId,d=o.userStoryForApproval,c=o.isEditingSegment,u=o.artifactTitleIds;return n?t.jsx(n,{isSidebarExpanded:i,selectedStoryArtifactId:s,setSelectedStoryArtifactId:l,userStoryForApproval:d,isEditingAnUserStorySegment:c,artifactTitleIds:u}):t.jsx(v.ApprovalSidebar,{config:r,className:a})},SidebarToggle:function(n){var r=n.OpenIcon,a=n.CloseIcon,o=n.className,i=void 0===o?"":o,s=g.useUserStoryApprovalScreen(),l=s.isSidebarExpanded,c=s.setIsSidebarExpanded,u=r||p.SidebarOpenIcon,v=a||p.SidebarCloseIcon;return t.jsx("div",e.__assign({className:"".concat(d.default.sidebarToggleWrapper," ").concat(i)},{children:t.jsx("button",e.__assign({onClick:function(){return c(function(e){return!e})},className:d.default.sidebarToggleBtn,"aria-label":l?"Collapse sidebar":"Expand sidebar",type:"button"},{children:l?t.jsx(v,{}):t.jsx(u,{})}))}))},Content:function(a){var i,s,v,p,h,_,m,y,A,b,I,x,C,j,E,U,N,w,k,q,F,T,B,R,D,P=a.children,M=a.ButtonComponent,W=a.hideApproveAll,O=void 0!==W&&W,V=a.pageTitle,z=void 0===V?"Review Generated Requirements":V,L=a.pageDescription,H=void 0===L?"This page displays automatically generated requirements for your project. Use this screen to review, refine, correct, or approve all generated requirements.":L,G=g.useUserStoryApprovalScreen(),Y=G.selectedUserStoryForApproval,J=G.selectedUserStoryIndex,K=G.artifactTitleIds,Q=G.labels,X=G.config,Z=G.isDisabled,$=G.isEditingSegment,ee=G.handleSaveUserStory,te=G.setCurrentContentId,ne=G.showNotification,re=r.useRequirementAI(),ae=re.customStyles,oe=re.customIcons,ie=n.useState(!1),se=ie[0],le=ie[1],de=n.useCallback(function(){if(Y)if($)ne("warn","Warning!",Q.unsavedChangesWarning,3e3);else{var e=o.approveAllSegments(Y);ee(J,e),te("")}},[Y,J,$,Q,ee,te,ne]);if(!Y)return null;var ce=K[J]||"",ue="APPROVED"===Y.approval_status,ve=null!=(null==Y?void 0:Y.big_enough)&&!Number.isNaN(Y.big_enough)&&!!(null==Y?void 0:Y.big_enough_decision_factors);return t.jsxs("div",e.__assign({className:d.default.content,style:e.__assign({},null===(s=null===(i=null==ae?void 0:ae.approvalScreen)||void 0===i?void 0:i.content)||void 0===s?void 0:s.content),"data-lsc-ui-page-title":z,"data-lsc-ui-page-description":H},{children:[t.jsxs("div",e.__assign({className:d.default.header,style:e.__assign({},null===(h=null===(p=null===(v=null==ae?void 0:ae.approvalScreen)||void 0===v?void 0:v.body)||void 0===p?void 0:p.contentSegment)||void 0===h?void 0:h.header)},{children:[t.jsxs("div",e.__assign({className:d.default.headerLeft,style:e.__assign({},null===(m=null===(_=null==ae?void 0:ae.approvalScreen)||void 0===_?void 0:_.content)||void 0===m?void 0:m.headerLeft)},{children:[t.jsxs("div",e.__assign({className:d.default.headerMeta,style:e.__assign({},null===(b=null===(A=null===(y=null==ae?void 0:ae.approvalScreen)||void 0===y?void 0:y.body)||void 0===A?void 0:A.contentSegment)||void 0===b?void 0:b.headerMeta)},{children:[t.jsx(u.BookmarkIcon,{size:16,color:(null===(C=null===(x=null===(I=null==ae?void 0:ae.approvalScreen)||void 0===I?void 0:I.body)||void 0===x?void 0:x.contentSegment)||void 0===C?void 0:C.bookMarkColor)||"#8C8C8C"}),t.jsx("h2",e.__assign({className:d.default.headerArtifactId,style:e.__assign({},null===(U=null===(E=null===(j=null==ae?void 0:ae.approvalScreen)||void 0===j?void 0:j.body)||void 0===E?void 0:E.contentSegment)||void 0===U?void 0:U.headerArtifactId)},{children:ce}))]})),t.jsx("p",e.__assign({className:d.default.headerTitle,style:e.__assign({},null===(k=null===(w=null===(N=null==ae?void 0:ae.approvalScreen)||void 0===N?void 0:N.body)||void 0===w?void 0:w.contentSegment)||void 0===k?void 0:k.headerTitle)},{children:null==Y?void 0:Y.title}))]})),t.jsxs("div",e.__assign({className:"flex items-center gap-2 "},{children:[ve&&t.jsx("button",e.__assign({className:d.default.developerEffortButton,style:null===(F=null===(q=null==ae?void 0:ae.approvalScreen)||void 0===q?void 0:q.BigEnoughStyles)||void 0===F?void 0:F.buttonStyle,onClick:function(){return le(!se)}},{children:t.jsx(f.default,{})})),!O&&X.showApproveAllButton&&t.jsx("div",e.__assign({className:d.default.headerRight},{children:ue?t.jsx(l.ApprovalBadge,{status:"APPROVED",label:Q.approved}):M?t.jsx(M,e.__assign({type:"fill",onClick:de,isDisable:Z,className:d.default.approveAllButton,overrideStyles:!0,lscUIAgent:{id:"approve-all",lscUIType:"button",lscUILabel:Q.approveAll,lscUIDescription:"Clicks this button to approve all generated requirements on the page in a single action.",lscUIWhenToApply:"Apply when the user wants to accept all requirements without reviewing them individually, or when they say phrases like 'approve everything', 'finalize all', 'accept all', or 'this looks good, approve all'."}},{children:t.jsxs("div",e.__assign({className:d.default.approveAllContent},{children:[t.jsx(c.CheckIcon,{size:16,color:"white"}),t.jsx("span",{children:Q.approveAll})]}))})):t.jsxs("button",e.__assign({onClick:de,disabled:Z,className:d.default.approveAllButtonDefault,style:e.__assign({},null===(B=null===(T=null==ae?void 0:ae.approvalScreen)||void 0===T?void 0:T.content)||void 0===B?void 0:B.approveAllButtonDefault)},{children:[t.jsx(c.CheckIcon,{size:16,color:"white"}),t.jsx("span",{children:Q.approveAll})]}))}))]}))]})),se&&ve&&t.jsx("div",e.__assign({className:d.default.bigEnoughWrapper},{children:t.jsx(S.BigEnoughPanel,{customIcons:oe,customStyles:null===(R=null==ae?void 0:ae.approvalScreen)||void 0===R?void 0:R.aiReasoningCitaionStyles,currentUserStory:Y,panelStyles:null===(D=null==ae?void 0:ae.approvalScreen)||void 0===D?void 0:D.BigEnoughStyles,showPanel:se})})),P]}))},Body:function(a){var o,i,l,c=a.children,u=a.EditorComponent,v=a.ViewerComponent,p=g.useUserStoryApprovalScreen(),S=p.selectedUserStoryForApproval,f=p.selectedUserStoryIndex,h=p.artifactTitleIds,_=p.handleSaveUserStory,m=r.useRequirementAI().customStyles,y=n.useCallback(function(e){_(f,e)},[f,_]),A=n.useCallback(function(t,n){var r;if(S){var a=e.__assign(e.__assign({},S),{sub_features:null===(r=S.sub_features)||void 0===r?void 0:r.map(function(e,r){return r===t?n:e})});_(f,a)}},[S,f,_]),b=n.useCallback(function(t){var n;if(S){var r=e.__assign(e.__assign({},S),{sub_features:null===(n=S.sub_features)||void 0===n?void 0:n.filter(function(e,n){return n!==t})});_(f,r)}},[S,f,_]);if(!S)return null;var I=h[f]||"";return t.jsxs("div",e.__assign({className:d.default.body,style:e.__assign({},null===(i=null===(o=null==m?void 0:m.approvalScreen)||void 0===o?void 0:o.body)||void 0===i?void 0:i.container)},{children:[t.jsx(s.ContentSegment,{userStoryForApproval:S,artifactTitleId:I,onSaveMainStoryContent:y,EditorComponent:u,ViewerComponent:v}),null===(l=S.sub_features)||void 0===l?void 0:l.map(function(e,n){return t.jsx(s.ContentSegment,{userStoryForApproval:e,artifactTitleId:"".concat(I," - ").concat(String.fromCharCode(65+n)),isSubFeature:!0,subFeatureIndex:n,onSaveSubFeature:A,onDeleteSubFeature:b,EditorComponent:u,ViewerComponent:v},e.artifactId)}),c]}))}});exports.default=m;
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),t=require("react/jsx-runtime"),n=require("react"),o=require("../RequirementAIWrapper/RequirementAIWrapper.js"),a=require("../../utils/userstory-approval-transform.utils.js"),r=require("../../utils/userstory-approval.utils.js"),i=require("../../hooks/useApprovalStatus.js"),l=require("./components/ContentSegment/ContentSegment.js"),s=require("./components/ApprovalBadge/ApprovalBadge.js"),d=require("./UserStoryApprovalScreen.module.css.js"),c=require("../../icons/CheckIcon.js"),u=require("../../icons/BookmarkIcon.js"),v=require("./components/ApprovalSidebar/ApprovalSidebar.js"),p=require("lucide-react"),g=require("./UserStoryApprovalContext.js"),S=require("../story-screen/BigEnoughPanel.js"),f=require("../../icons/BigEnoughIcon.js"),h={showApproveAllButton:!0,allowEditing:!0,allowDeletion:!0,showSidebar:!1,containerHeight:"calc(100vh - 100px)",useFullWidth:!1},y={approveAll:"Approve All",approved:"Approved",approve:"Approve",correctMe:"Correct Me",delete:"Delete",save:"Save",cancel:"Cancel",savingArtifact:"Saving Artifact...",artifactSavedTitle:"Artifact Saved Successfully",artifactSavedMessage:"Your changes have been saved.",saveFailedTitle:"Failed to Save the Artifact",saveFailedMessage:"An error occurred while saving your changes.",emptyContentWarning:"Saving empty content is not allowed",unsavedChangesWarning:"Please save the updated changes to proceed with Approve All"},_=Object.assign(function(l){var s,c=l.artifactTitleIds,u=l.config,v=void 0===u?{}:u,p=l.callbacks,S=void 0===p?{}:p,f=l.labels,_=void 0===f?{}:f,m=l.isDisabled,A=void 0!==m&&m,b=l.children,I=l.classNames,C=l.selectedArtifactId,x=o.useRequirementAI(),j=x.userStory,E=x.customStyles,U=e.__assign(e.__assign({},h),v),N=e.__assign(e.__assign({},y),_),w=n.useState([]),k=w[0],q=w[1],F=n.useState(""),T=F[0],B=F[1],R=n.useState(""),D=R[0],P=R[1],M=n.useState(!1),W=M[0],O=M[1],V=n.useState(!0),z=V[0],L=V[1],H=n.useRef(void 0),G=n.useCallback(function(e,t,n,o){S.onShowNotification?S.onShowNotification(e,t,n,o):console.log("[".concat(e.toUpperCase(),"] ").concat(t,": ").concat(n))},[S]),Y=n.useCallback(function(e){S.onScrollToElement?S.onScrollToElement(e):(e.style.scrollMarginTop="20px",e.scrollIntoView({behavior:"smooth",block:"start"}))},[S]),J=n.useMemo(function(){var e=k.findIndex(function(e){return e.artifactId===T});return e>=0?e:0},[k,T]),K=k[J];n.useEffect(function(){H.current=K},[K]),n.useEffect(function(){var e;if(null==j?void 0:j.length){null===(e=S.onInitialize)||void 0===e||e.call(S),1===j.length&&L(!1),j.length>0&&!T&&B(C||j[0].artifactId);var t=a.createUserStoriesForApproval(a.cloneUserStories(j));q(t)}},[j,C]),n.useEffect(function(){C&&C!==T&&B(C)},[C,T]),n.useEffect(function(){if(K){var e=r.getFirstNonApprovedSegmentId(K,"");P(e)}},[null==K?void 0:K.artifactId]);var Q=n.useCallback(function(t,n){q(function(o){var a=e.__spreadArray([],o,!0);if("APPROVED"===n.approval_status&&"APPROVED"!==o[t].approval_status){var i=r.getFirstUnapprovedStoryId(o,n.artifactId);i&&B(i)}return a[t]=n,a})},[]),X=n.useCallback(function(e){var t=H.current;if(t){var n=r.getFirstNonApprovedSegmentId(t,e);"NA"!==n&&(P(""),setTimeout(function(){P(n)},0))}},[]);i.useApprovalStatus({userStoryForApproval:k,selectedUserStoryForApproval:K,userStoryIndex:J,callbacks:S,labels:N,onSaveUserStory:Q});var Z=e.__assign({height:U.containerHeight},U.useFullWidth?{width:"100%",marginLeft:0,marginRight:0}:{width:"calc(100% + 40px)",marginLeft:"-20px",marginRight:"-20px"}),$={userStoryForApproval:k,setUserStoryForApproval:q,selectedStoryArtifactId:T,setSelectedStoryArtifactId:B,selectedUserStoryIndex:J,selectedUserStoryForApproval:K,currentContentId:D,setCurrentContentId:P,isEditingSegment:W,setIsEditingSegment:O,isSidebarExpanded:z,setIsSidebarExpanded:L,artifactTitleIds:c,config:U,labels:N,callbacks:S,isDisabled:A,handleSaveUserStory:Q,handleUpdateContentId:X,showNotification:G,scrollToElement:Y};return t.jsx(g.UserStoryApprovalScreenContext.Provider,e.__assign({value:$},{children:t.jsx("div",e.__assign({className:"".concat(d.default.container," ").concat((null==I?void 0:I.container)||""),style:e.__assign(e.__assign({},Z),null===(s=null==E?void 0:E.approvalScreen)||void 0===s?void 0:s.wrapperContainer)},{children:b}))}))},{Sidebar:function(e){var n=e.Component,o=e.config,a=e.className,r=g.useUserStoryApprovalScreen(),i=r.isSidebarExpanded,l=r.selectedStoryArtifactId,s=r.setSelectedStoryArtifactId,d=r.userStoryForApproval,c=r.isEditingSegment,u=r.artifactTitleIds;return n?t.jsx(n,{isSidebarExpanded:i,selectedStoryArtifactId:l,setSelectedStoryArtifactId:s,userStoryForApproval:d,isEditingAnUserStorySegment:c,artifactTitleIds:u}):t.jsx(v.ApprovalSidebar,{config:o,className:a})},SidebarToggle:function(n){var o=n.OpenIcon,a=n.CloseIcon,r=n.className,i=void 0===r?"":r,l=g.useUserStoryApprovalScreen(),s=l.isSidebarExpanded,c=l.setIsSidebarExpanded,u=o||p.SidebarOpenIcon,v=a||p.SidebarCloseIcon;return t.jsx("div",e.__assign({className:"".concat(d.default.sidebarToggleWrapper," ").concat(i)},{children:t.jsx("button",e.__assign({onClick:function(){return c(function(e){return!e})},className:d.default.sidebarToggleBtn,"aria-label":s?"Collapse sidebar":"Expand sidebar",type:"button"},{children:s?t.jsx(v,{}):t.jsx(u,{})}))}))},Content:function(a){var i,l,v,p,h,y,_,m,A,b,I,C,x,j,E,U,N,w,k,q,F,T,B,R,D,P,M,W=a.children,O=a.ButtonComponent,V=a.hideApproveAll,z=void 0!==V&&V,L=a.pageTitle,H=void 0===L?"Review Generated Requirements":L,G=a.pageDescription,Y=void 0===G?"This page displays automatically generated requirements for your project. Use this screen to review, refine, correct, or approve all generated requirements.":G,J=g.useUserStoryApprovalScreen(),K=J.selectedUserStoryForApproval,Q=J.selectedUserStoryIndex,X=J.artifactTitleIds,Z=J.labels,$=J.config,ee=J.isDisabled,te=J.isEditingSegment,ne=J.handleSaveUserStory,oe=J.setCurrentContentId,ae=J.showNotification,re=o.useRequirementAI(),ie=re.customStyles,le=re.customIcons,se=n.useState(!1),de=se[0],ce=se[1],ue=n.useCallback(function(){if(K)if(te)ae("warn","Warning!",Z.unsavedChangesWarning,3e3);else{var e=r.approveAllSegments(K);ne(Q,e),oe("")}},[K,Q,te,Z,ne,oe,ae]);if(!K)return null;var ve=X[Q]||"",pe="APPROVED"===K.approval_status,ge=null!=(null==K?void 0:K.big_enough)&&!Number.isNaN(K.big_enough)&&!!(null==K?void 0:K.big_enough_decision_factors);return t.jsxs("div",e.__assign({className:d.default.content,style:e.__assign({},null===(l=null===(i=null==ie?void 0:ie.approvalScreen)||void 0===i?void 0:i.content)||void 0===l?void 0:l.content),"data-lsc-ui-page-title":H,"data-lsc-ui-page-description":Y},{children:[t.jsxs("div",e.__assign({className:d.default.header,style:e.__assign({},null===(h=null===(p=null===(v=null==ie?void 0:ie.approvalScreen)||void 0===v?void 0:v.body)||void 0===p?void 0:p.contentSegment)||void 0===h?void 0:h.header)},{children:[t.jsxs("div",e.__assign({className:d.default.headerLeft,style:e.__assign({},null===(_=null===(y=null==ie?void 0:ie.approvalScreen)||void 0===y?void 0:y.content)||void 0===_?void 0:_.headerLeft)},{children:[t.jsxs("div",e.__assign({className:d.default.headerMeta,style:e.__assign({},null===(b=null===(A=null===(m=null==ie?void 0:ie.approvalScreen)||void 0===m?void 0:m.body)||void 0===A?void 0:A.contentSegment)||void 0===b?void 0:b.headerMeta)},{children:[t.jsx(u.BookmarkIcon,{size:16,color:(null===(x=null===(C=null===(I=null==ie?void 0:ie.approvalScreen)||void 0===I?void 0:I.body)||void 0===C?void 0:C.contentSegment)||void 0===x?void 0:x.bookMarkColor)||"#8C8C8C"}),t.jsx("h2",e.__assign({className:d.default.headerArtifactId,style:e.__assign({},null===(U=null===(E=null===(j=null==ie?void 0:ie.approvalScreen)||void 0===j?void 0:j.body)||void 0===E?void 0:E.contentSegment)||void 0===U?void 0:U.headerArtifactId)},{children:ve}))]})),t.jsx("p",e.__assign({className:d.default.headerTitle,style:e.__assign({},null===(k=null===(w=null===(N=null==ie?void 0:ie.approvalScreen)||void 0===N?void 0:N.body)||void 0===w?void 0:w.contentSegment)||void 0===k?void 0:k.headerTitle)},{children:null==K?void 0:K.title}))]})),t.jsxs("div",e.__assign({className:null===d.default||void 0===d.default?void 0:d.default.containerStyle,style:null===(F=null===(q=null==ie?void 0:ie.approvalScreen)||void 0===q?void 0:q.BigEnoughStyles)||void 0===F?void 0:F.containerStyle},{children:[ge&&t.jsx("button",e.__assign({className:d.default.developerEffortButton,style:null===(B=null===(T=null==ie?void 0:ie.approvalScreen)||void 0===T?void 0:T.BigEnoughStyles)||void 0===B?void 0:B.buttonStyle,onClick:function(){return ce(!de)}},{children:t.jsx(f.default,{})})),!z&&$.showApproveAllButton&&t.jsx("div",e.__assign({className:d.default.headerRight},{children:pe?t.jsx(s.ApprovalBadge,{status:"APPROVED",label:Z.approved}):O?t.jsx(O,e.__assign({type:"fill",onClick:ue,isDisable:ee,className:d.default.approveAllButton,overrideStyles:!0,lscUIAgent:{id:"approve-all",lscUIType:"button",lscUILabel:Z.approveAll,lscUIDescription:"Clicks this button to approve all generated requirements on the page in a single action.",lscUIWhenToApply:"Apply when the user wants to accept all requirements without reviewing them individually, or when they say phrases like 'approve everything', 'finalize all', 'accept all', or 'this looks good, approve all'."}},{children:t.jsxs("div",e.__assign({className:d.default.approveAllContent},{children:[t.jsx(c.CheckIcon,{size:16,color:"white"}),t.jsx("span",{children:Z.approveAll})]}))})):t.jsxs("button",e.__assign({onClick:ue,disabled:ee,className:d.default.approveAllButtonDefault,style:e.__assign({},null===(D=null===(R=null==ie?void 0:ie.approvalScreen)||void 0===R?void 0:R.content)||void 0===D?void 0:D.approveAllButtonDefault)},{children:[t.jsx(c.CheckIcon,{size:16,color:"white"}),t.jsx("span",{children:Z.approveAll})]}))}))]}))]})),de&&ge&&t.jsx("div",e.__assign({className:d.default.bigEnoughWrapper},{children:t.jsx(S.BigEnoughPanel,{customIcons:le,customStyles:null===(P=null==ie?void 0:ie.approvalScreen)||void 0===P?void 0:P.aiReasoningCitaionStyles,currentUserStory:K,panelStyles:null===(M=null==ie?void 0:ie.approvalScreen)||void 0===M?void 0:M.BigEnoughStyles,showPanel:de})})),W]}))},Body:function(a){var r,i,s,c=a.children,u=a.EditorComponent,v=a.ViewerComponent,p=g.useUserStoryApprovalScreen(),S=p.selectedUserStoryForApproval,f=p.selectedUserStoryIndex,h=p.artifactTitleIds,y=p.handleSaveUserStory,_=o.useRequirementAI().customStyles,m=n.useCallback(function(e){y(f,e)},[f,y]),A=n.useCallback(function(t,n){var o;if(S){var a=e.__assign(e.__assign({},S),{sub_features:null===(o=S.sub_features)||void 0===o?void 0:o.map(function(e,o){return o===t?n:e})});y(f,a)}},[S,f,y]),b=n.useCallback(function(t){var n;if(S){var o=e.__assign(e.__assign({},S),{sub_features:null===(n=S.sub_features)||void 0===n?void 0:n.filter(function(e,n){return n!==t})});y(f,o)}},[S,f,y]);if(!S)return null;var I=h[f]||"";return t.jsxs("div",e.__assign({className:d.default.body,style:e.__assign({},null===(i=null===(r=null==_?void 0:_.approvalScreen)||void 0===r?void 0:r.body)||void 0===i?void 0:i.container)},{children:[t.jsx(l.ContentSegment,{userStoryForApproval:S,artifactTitleId:I,onSaveMainStoryContent:m,EditorComponent:u,ViewerComponent:v}),null===(s=S.sub_features)||void 0===s?void 0:s.map(function(e,n){return t.jsx(l.ContentSegment,{userStoryForApproval:e,artifactTitleId:"".concat(I," - ").concat(String.fromCharCode(65+n)),isSubFeature:!0,subFeatureIndex:n,onSaveSubFeature:A,onDeleteSubFeature:b,EditorComponent:u,ViewerComponent:v},e.artifactId)}),c]}))}});exports.default=_;
|
|
2
2
|
//# sourceMappingURL=UserStoryApprovalScreen.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});!function(){if("undefined"==typeof document)return;const e=document.createElement("style");e.type="text/css";const r=window.__CSP_NONCE__||document.querySelector('meta[name="csp-nonce"]')?.content;r&&e.setAttribute("nonce",r),e.appendChild(document.createTextNode(".UserStoryApprovalScreen-module_container__Hy5uc{border:1px solid #d1d5db;display:flex;flex-direction:row;font-family:Inter,sans-serif;min-height:100vh}.UserStoryApprovalScreen-module_container__Hy5uc *{font-family:inherit}.UserStoryApprovalScreen-module_sidebarToggleBtn__9edtf{transition:color .2s ease}.UserStoryApprovalScreen-module_sidebarToggleBtn__9edtf:hover{opacity:.8}.UserStoryApprovalScreen-module_content__VQ6Z9{display:flex;flex:1;flex-direction:column;min-height:100%;overflow-y:auto;position:relative;width:100%}.UserStoryApprovalScreen-module_header__zsOki{align-items:center;background-color:#fff;border-bottom:1px solid #d1d5db;display:flex;flex-direction:row;justify-content:space-between;padding:16px 32px;position:sticky;top:0;z-index:50}.UserStoryApprovalScreen-module_headerLeft__s-1Eq{display:flex;flex-direction:column;gap:4px}.UserStoryApprovalScreen-module_headerMeta__3JPhW{align-items:center;color:#6932e2;display:flex;flex-direction:row;gap:8px}.UserStoryApprovalScreen-module_headerArtifactId__xjOR9{font-family:Inter,sans-serif;font-size:14px;font-weight:400;margin:0}.UserStoryApprovalScreen-module_headerTitle__xxkv-{font-family:Inter,sans-serif;font-size:16px;font-weight:600;margin:0}.UserStoryApprovalScreen-module_headerRight__BWc-W{align-items:center;display:flex}.UserStoryApprovalScreen-module_approveAllButton__HkH1f{height:40px}.UserStoryApprovalScreen-module_approveAllContent__-UTDs{align-items:center;display:flex;flex-direction:row;gap:4px;height:32px;padding:0 2px}.UserStoryApprovalScreen-module_approveAllContent__-UTDs span{color:#fff;font-family:Inter,sans-serif;font-size:14px;text-transform:none}.UserStoryApprovalScreen-module_approveAllButtonDefault__MrKNR{align-items:center;background:linear-gradient(115.1deg,#2546f0 -23.58%,#5928ed 74.92%);border:none;border-radius:8px;color:#fff;cursor:pointer;display:flex;flex-direction:row;font-family:Inter,sans-serif;font-size:14px;gap:4px;height:40px;padding:0 16px;transition:opacity .2s ease}.UserStoryApprovalScreen-module_approveAllButtonDefault__MrKNR:hover{opacity:.9}.UserStoryApprovalScreen-module_approveAllButtonDefault__MrKNR:disabled{cursor:not-allowed;opacity:.5}.UserStoryApprovalScreen-module_body__aAJwQ{display:flex;flex-direction:column;width:100%}.UserStoryApprovalScreen-module_sidebarToggleWrapper__Z9C-4{flex-shrink:0;height:100%;position:relative;width:0}.UserStoryApprovalScreen-module_sidebarToggleBtn__9edtf{align-items:center;background:none;border:none;cursor:pointer;display:flex;justify-content:center;left:0;margin:0;padding:0;position:absolute;top:50%;transform:translateY(-50%);transition:opacity .2s ease;z-index:10}.UserStoryApprovalScreen-module_sidebarToggleBtn__9edtf:focus{outline:none}"));const o=document.head||document.getElementsByTagName("head")[0]||document.documentElement;o&&o.appendChild(e)}(),exports.default={container:"UserStoryApprovalScreen-module_container__Hy5uc",sidebarToggleWrapper:"UserStoryApprovalScreen-module_sidebarToggleWrapper__Z9C-4",sidebarToggleBtn:"UserStoryApprovalScreen-module_sidebarToggleBtn__9edtf",content:"UserStoryApprovalScreen-module_content__VQ6Z9",header:"UserStoryApprovalScreen-module_header__zsOki",headerLeft:"UserStoryApprovalScreen-module_headerLeft__s-1Eq",headerMeta:"UserStoryApprovalScreen-module_headerMeta__3JPhW",headerArtifactId:"UserStoryApprovalScreen-module_headerArtifactId__xjOR9",headerTitle:"UserStoryApprovalScreen-module_headerTitle__xxkv-",headerRight:"UserStoryApprovalScreen-module_headerRight__BWc-W",approveAllButton:"UserStoryApprovalScreen-module_approveAllButton__HkH1f",approveAllContent:"UserStoryApprovalScreen-module_approveAllContent__-UTDs",approveAllButtonDefault:"UserStoryApprovalScreen-module_approveAllButtonDefault__MrKNR",body:"UserStoryApprovalScreen-module_body__aAJwQ"};
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});!function(){if("undefined"==typeof document)return;const e=document.createElement("style");e.type="text/css";const r=window.__CSP_NONCE__||document.querySelector('meta[name="csp-nonce"]')?.content;r&&e.setAttribute("nonce",r),e.appendChild(document.createTextNode(".UserStoryApprovalScreen-module_container__Hy5uc{border:1px solid #d1d5db;display:flex;flex-direction:row;font-family:Inter,sans-serif;min-height:100vh}.UserStoryApprovalScreen-module_container__Hy5uc *{font-family:inherit}.UserStoryApprovalScreen-module_developerEffortButton__9EfUX{background-color:#fff;border:1px solid #d1d5db;border-radius:.3rem;box-shadow:0 1px 2px #0000000d;cursor:pointer;margin-right:3px;padding:.4rem .8rem}.UserStoryApprovalScreen-module_containerStyle__PS6Gn{align-items:center;display:flex;gap:3px}.UserStoryApprovalScreen-module_sidebarToggleBtn__9edtf{transition:color .2s ease}.UserStoryApprovalScreen-module_sidebarToggleBtn__9edtf:hover{opacity:.8}.UserStoryApprovalScreen-module_content__VQ6Z9{display:flex;flex:1;flex-direction:column;min-height:100%;overflow-y:auto;position:relative;width:100%}.UserStoryApprovalScreen-module_header__zsOki{align-items:center;background-color:#fff;border-bottom:1px solid #d1d5db;display:flex;flex-direction:row;justify-content:space-between;padding:16px 32px;position:sticky;top:0;z-index:50}.UserStoryApprovalScreen-module_headerLeft__s-1Eq{display:flex;flex-direction:column;gap:4px}.UserStoryApprovalScreen-module_headerMeta__3JPhW{align-items:center;color:#6932e2;display:flex;flex-direction:row;gap:8px}.UserStoryApprovalScreen-module_headerArtifactId__xjOR9{font-family:Inter,sans-serif;font-size:14px;font-weight:400;margin:0}.UserStoryApprovalScreen-module_headerTitle__xxkv-{font-family:Inter,sans-serif;font-size:16px;font-weight:600;margin:0}.UserStoryApprovalScreen-module_headerRight__BWc-W{align-items:center;display:flex}.UserStoryApprovalScreen-module_approveAllButton__HkH1f{height:40px}.UserStoryApprovalScreen-module_approveAllContent__-UTDs{align-items:center;display:flex;flex-direction:row;gap:4px;height:32px;padding:0 2px}.UserStoryApprovalScreen-module_approveAllContent__-UTDs span{color:#fff;font-family:Inter,sans-serif;font-size:14px;text-transform:none}.UserStoryApprovalScreen-module_approveAllButtonDefault__MrKNR{align-items:center;background:linear-gradient(115.1deg,#2546f0 -23.58%,#5928ed 74.92%);border:none;border-radius:8px;color:#fff;cursor:pointer;display:flex;flex-direction:row;font-family:Inter,sans-serif;font-size:14px;gap:4px;height:40px;padding:0 16px;transition:opacity .2s ease}.UserStoryApprovalScreen-module_approveAllButtonDefault__MrKNR:hover{opacity:.9}.UserStoryApprovalScreen-module_approveAllButtonDefault__MrKNR:disabled{cursor:not-allowed;opacity:.5}.UserStoryApprovalScreen-module_body__aAJwQ{display:flex;flex-direction:column;width:100%}.UserStoryApprovalScreen-module_sidebarToggleWrapper__Z9C-4{flex-shrink:0;height:100%;position:relative;width:0}.UserStoryApprovalScreen-module_sidebarToggleBtn__9edtf{align-items:center;background:none;border:none;cursor:pointer;display:flex;justify-content:center;left:0;margin:0;padding:0;position:absolute;top:50%;transform:translateY(-50%);transition:opacity .2s ease;z-index:10}.UserStoryApprovalScreen-module_sidebarToggleBtn__9edtf:focus{outline:none}"));const o=document.head||document.getElementsByTagName("head")[0]||document.documentElement;o&&o.appendChild(e)}(),exports.default={container:"UserStoryApprovalScreen-module_container__Hy5uc",sidebarToggleWrapper:"UserStoryApprovalScreen-module_sidebarToggleWrapper__Z9C-4",developerEffortButton:"UserStoryApprovalScreen-module_developerEffortButton__9EfUX",containerStyle:"UserStoryApprovalScreen-module_containerStyle__PS6Gn",sidebarToggleBtn:"UserStoryApprovalScreen-module_sidebarToggleBtn__9edtf",content:"UserStoryApprovalScreen-module_content__VQ6Z9",header:"UserStoryApprovalScreen-module_header__zsOki",headerLeft:"UserStoryApprovalScreen-module_headerLeft__s-1Eq",headerMeta:"UserStoryApprovalScreen-module_headerMeta__3JPhW",headerArtifactId:"UserStoryApprovalScreen-module_headerArtifactId__xjOR9",headerTitle:"UserStoryApprovalScreen-module_headerTitle__xxkv-",headerRight:"UserStoryApprovalScreen-module_headerRight__BWc-W",approveAllButton:"UserStoryApprovalScreen-module_approveAllButton__HkH1f",approveAllContent:"UserStoryApprovalScreen-module_approveAllContent__-UTDs",approveAllButtonDefault:"UserStoryApprovalScreen-module_approveAllButtonDefault__MrKNR",body:"UserStoryApprovalScreen-module_body__aAJwQ"};
|
|
2
2
|
//# sourceMappingURL=UserStoryApprovalScreen.module.css.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),r=require("react"),n=require("../utils/proccess-stream.utils.js");exports.useStreamContentHandler=function(i){var t=i.setUserStory,s=i.setAiReasoning,o=i.setUserStoryCitations,a=i.onStreamingCompleted,u=i.isGraphQLCallInProgress,c=i.knowledgeBase,l=i.projectAnalyserSummary,_=i.dataSourceFiles,d=i.aiReasoning,p=i.setRedisValue,g=i.fetchCitationByBlock,v=r.useRef(new Set),m=r.useRef(new Set),f=r.useRef(null),b=r.useRef(null),y=r.useRef({gap_items_prompt:"",risk_items_prompt:""}),h=r.useRef(new Set);function N(r,n,i){var t,c;return e.__awaiter(this,void 0,void 0,function(){var l,_,d,p,h,N,R;return e.__generator(this,function(k){switch(k.label){case 0:l="",_="",k.label=1;case 1:return k.trys.push([1,3,4,7]),[4,g(r,i,n)];case 2:return d=k.sent(),s(function(r){var n,i=e.__spreadArray([],r,!0);return null===(n=d.response.ai_reasonings)||void 0===n||n.forEach(function(r){var n=i.findIndex(function(e){return e.id===r.id});-1!==n&&(i[n]=e.__assign({},r))}),i}),l=(null===(t=d.response)||void 0===t?void 0:t.gap_items_prompt)||"",_=(null===(c=d.response)||void 0===c?void 0:c.risk_items_prompt)||"",(l||_)&&(y.current={gap_items_prompt:l,risk_items_prompt:_}),o(function(r){var n,i,t,s,o,a,u,c,l,_,p,g,v,m;return e.__assign(e.__assign({},r),{appmod_citations:e.__spreadArray(e.__spreadArray([],null!==(n=r.appmod_citations)&&void 0!==n?n:[],!0),null!==(i=d.response.appmod_citations)&&void 0!==i?i:[],!0),audio_citations:e.__spreadArray(e.__spreadArray([],null!==(t=r.audio_citations)&&void 0!==t?t:[],!0),null!==(s=d.response.audio_citations)&&void 0!==s?s:[],!0),file_citations:e.__spreadArray(e.__spreadArray([],null!==(o=r.file_citations)&&void 0!==o?o:[],!0),null!==(a=d.response.file_citations)&&void 0!==a?a:[],!0),image_citations:e.__spreadArray(e.__spreadArray([],null!==(u=r.image_citations)&&void 0!==u?u:[],!0),null!==(c=d.response.image_citations)&&void 0!==c?c:[],!0),rca_citations:e.__spreadArray(e.__spreadArray([],null!==(l=r.rca_citations)&&void 0!==l?l:[],!0),null!==(_=d.response.rca_citations)&&void 0!==_?_:[],!0),web_citations:e.__spreadArray(e.__spreadArray([],null!==(p=r.web_citations)&&void 0!==p?p:[],!0),null!==(g=d.response.web_citations)&&void 0!==g?g:[],!0),readfile_citations:e.__spreadArray(e.__spreadArray([],null!==(v=r.readfile_citations)&&void 0!==v?v:[],!0),null!==(m=d.response.readfile_citations)&&void 0!==m?m:[],!0)})}),[3,7];case 3:return p=k.sent(),console.error("Error in fetching Citations",p),[3,7];case 4:return console.log("Citations fetching completed",r.storyNumber,r.blockNumber),h="<STORY_NUMBER>".concat(r.storyNumber,"<BLOCK_NUMBER>").concat(r.blockNumber),m.current.add(h),console.log("Citations fetching completed",m.current.size,v.current.size,u.current),m.current.size!==v.current.size||u.current?[3,6]:(N=l||y.current.gap_items_prompt,R=_||y.current.risk_items_prompt,[4,a(N,R)]);case 5:k.sent(),v.current.clear(),m.current.clear(),f.current=null,b.current=null,y.current={gap_items_prompt:"",risk_items_prompt:""},k.label=6;case 6:return[7];case 7:return[2]}})})}return{processStreamContent:function(r,i,a){try{var u=JSON.stringify(r);if(b.current===u)return;b.current=u;var g=[],m=[];r=r.map(function(r){var t;r=e.__assign(e.__assign({},r),{subBlockNumber:null!==(t=r.subBlockNumber)&&void 0!==t?t:"1"});var s="".concat(r.storyNumber,"-").concat(r.blockNumber,"-").concat(r.subBlockNumber);if(h.current.has(s))return null;h.current.add(s);var a=n.processAIReasoningFromBlocks(r.value,r.blockNumber,r.storyNumber,r.description),u=a.outputText,c=a.reasonings,l=a.gpt_citation,_=a.processedDescription;o(function(r){var n;return l.length>0&&((null==r?void 0:r.gpt_citations)||(r.gpt_citations=[]),null===(n=r.gpt_citations)||void 0===n||n.push.apply(n,l)),e.__assign({},r)}),g.push.apply(g,c),m.push(e.__spreadArray([],c,!0));var d="<STORY_NUMBER>".concat(r.storyNumber,"<BLOCK_NUMBER>").concat(r.blockNumber,"<SUB_BLOCK>").concat(r.subBlockNumber);return v.current.has(d)||(N(e.__assign(e.__assign({},r),{value:u,description:_}),c,i),v.current.add(d)),e.__assign(e.__assign({},r),{value:u,description:_})}).filter(Boolean),g.forEach(function(r){s(function(n){return n.find(function(e){return e.id===r.id})||n.push(r),e.__spreadArray([],n,!0)})}),r.length>0&&r.map(function(r,n){var i=r.title,s=r.section,o=r.value,u=r.storyNumber,g=r.description,v=r.blockNumber,b=r.big_enough,y=r.big_enough_decision_factors;t(function(r){"STORY-".concat(u,"-").concat(v);var t,h,N,R,k,A,S,B,C,O=r.findIndex(function(e){return e.storyNumber===u});if("intro"===s)-1===O?r.push({artifactId:"STORY-".concat(u,"-").concat(v),title:i,value:o,description:g,storyNumber:u,sub_features:[],section:s,blockNumber:v,aiReasoning:m[n],big_enough:b,big_enough_decision_factors:y}):(r[O].value+=o,r[O].aiReasoning=r[O].aiReasoning||[],null===(N=null===(h=r[O])||void 0===h?void 0:h.aiReasoning)||void 0===N||N.push.apply(N,m[n]),r[O].big_enough=b,r[O].big_enough_decision_factors=y);else{r[O].sub_features||(r[O].sub_features=[]);var w=(null===(k=null===(R=r[O])||void 0===R?void 0:R.sub_features)||void 0===k?void 0:k.findIndex(function(e){return e.blockNumber===v}))||-1;if(-1===w)null===(S=null===(A=r[O])||void 0===A?void 0:A.sub_features)||void 0===S||S.push({artifactId:"STORY-".concat(u,"-").concat(v),title:i,value:o,storyNumber:u,blockNumber:v,section:s,aiReasoning:m[n],big_enough:b,big_enough_decision_factors:y});else{var E=null===(C=null===(B=null==r?void 0:r[O])||void 0===B?void 0:B.sub_features)||void 0===C?void 0:C[w];E.value=(E.value||"")+o,E.aiReasoning=E.aiReasoning||[],(t=E.aiReasoning).push.apply(t,m[n]),E.big_enough=b,E.big_enough_decision_factors=y}}var I=JSON.stringify(r);return f.current!==I&&(p({key:"streaming-redis-key-".concat(a),value:{mmvf_list:r,knowledgeBase:c,projectAnalyserSummary:l,dataSources_files:_,ai_reasonings:d}}),f.current=I),e.__spreadArray([],r,!0)})})}catch(e){console.error("Error in processing Stream Content",e)}}}};
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});var e=require("tslib"),r=require("react"),n=require("../utils/proccess-stream.utils.js");exports.useStreamContentHandler=function(i){var t=i.setUserStory,s=i.setAiReasoning,o=i.setUserStoryCitations,a=i.onStreamingCompleted,u=i.isGraphQLCallInProgress,c=i.knowledgeBase,l=i.projectAnalyserSummary,_=i.dataSourceFiles,d=i.aiReasoning,p=i.setRedisValue,g=i.fetchCitationByBlock,v=r.useRef(new Set),m=r.useRef(new Set),f=r.useRef(null),b=r.useRef(null),y=r.useRef({gap_items_prompt:"",risk_items_prompt:""}),h=r.useRef(new Set);function N(r,n,i){var t,c;return e.__awaiter(this,void 0,void 0,function(){var l,_,d,p,h,N,R;return e.__generator(this,function(k){switch(k.label){case 0:l="",_="",k.label=1;case 1:return k.trys.push([1,3,4,7]),[4,g(r,i,n)];case 2:return d=k.sent(),s(function(r){var n,i=e.__spreadArray([],r,!0);return null===(n=d.response.ai_reasonings)||void 0===n||n.forEach(function(r){var n=i.findIndex(function(e){return e.id===r.id});-1!==n&&r.gap.length>0&&r.reason.length>0&&(i[n]=e.__assign({},r))}),i}),l=(null===(t=d.response)||void 0===t?void 0:t.gap_items_prompt)||"",_=(null===(c=d.response)||void 0===c?void 0:c.risk_items_prompt)||"",(l||_)&&(y.current={gap_items_prompt:l,risk_items_prompt:_}),o(function(r){var n,i,t,s,o,a,u,c,l,_,p,g,v,m;return e.__assign(e.__assign({},r),{appmod_citations:e.__spreadArray(e.__spreadArray([],null!==(n=r.appmod_citations)&&void 0!==n?n:[],!0),null!==(i=d.response.appmod_citations)&&void 0!==i?i:[],!0),audio_citations:e.__spreadArray(e.__spreadArray([],null!==(t=r.audio_citations)&&void 0!==t?t:[],!0),null!==(s=d.response.audio_citations)&&void 0!==s?s:[],!0),file_citations:e.__spreadArray(e.__spreadArray([],null!==(o=r.file_citations)&&void 0!==o?o:[],!0),null!==(a=d.response.file_citations)&&void 0!==a?a:[],!0),image_citations:e.__spreadArray(e.__spreadArray([],null!==(u=r.image_citations)&&void 0!==u?u:[],!0),null!==(c=d.response.image_citations)&&void 0!==c?c:[],!0),rca_citations:e.__spreadArray(e.__spreadArray([],null!==(l=r.rca_citations)&&void 0!==l?l:[],!0),null!==(_=d.response.rca_citations)&&void 0!==_?_:[],!0),web_citations:e.__spreadArray(e.__spreadArray([],null!==(p=r.web_citations)&&void 0!==p?p:[],!0),null!==(g=d.response.web_citations)&&void 0!==g?g:[],!0),readfile_citations:e.__spreadArray(e.__spreadArray([],null!==(v=r.readfile_citations)&&void 0!==v?v:[],!0),null!==(m=d.response.readfile_citations)&&void 0!==m?m:[],!0)})}),[3,7];case 3:return p=k.sent(),console.error("Error in fetching Citations",p),[3,7];case 4:return console.log("Citations fetching completed",r.storyNumber,r.blockNumber),h="<STORY_NUMBER>".concat(r.storyNumber,"<BLOCK_NUMBER>").concat(r.blockNumber),m.current.add(h),console.log("Citations fetching completed",m.current.size,v.current.size,u.current),m.current.size!==v.current.size||u.current?[3,6]:(N=l||y.current.gap_items_prompt,R=_||y.current.risk_items_prompt,[4,a(N,R)]);case 5:k.sent(),v.current.clear(),m.current.clear(),f.current=null,b.current=null,y.current={gap_items_prompt:"",risk_items_prompt:""},k.label=6;case 6:return[7];case 7:return[2]}})})}return{processStreamContent:function(r,i,a){try{var u=JSON.stringify(r);if(b.current===u)return;b.current=u;var g=[],m=[];r=r.map(function(r){var t;r=e.__assign(e.__assign({},r),{subBlockNumber:null!==(t=r.subBlockNumber)&&void 0!==t?t:"1"});var s="".concat(r.storyNumber,"-").concat(r.blockNumber,"-").concat(r.subBlockNumber);if(h.current.has(s))return null;h.current.add(s);var a=n.processAIReasoningFromBlocks(r.value,r.blockNumber,r.storyNumber,r.description),u=a.outputText,c=a.reasonings,l=a.gpt_citation,_=a.processedDescription;o(function(r){var n;return l.length>0&&((null==r?void 0:r.gpt_citations)||(r.gpt_citations=[]),null===(n=r.gpt_citations)||void 0===n||n.push.apply(n,l)),e.__assign({},r)}),g.push.apply(g,c),m.push(e.__spreadArray([],c,!0));var d="<STORY_NUMBER>".concat(r.storyNumber,"<BLOCK_NUMBER>").concat(r.blockNumber,"<SUB_BLOCK>").concat(r.subBlockNumber);return v.current.has(d)||(N(e.__assign(e.__assign({},r),{value:u,description:_}),c,i),v.current.add(d)),e.__assign(e.__assign({},r),{value:u,description:_})}).filter(Boolean),g.forEach(function(r){s(function(n){return n.find(function(e){return e.id===r.id})||n.push(r),e.__spreadArray([],n,!0)})}),r.length>0&&r.map(function(r,n){var i=r.title,s=r.section,o=r.value,u=r.storyNumber,g=r.description,v=r.blockNumber,b=r.big_enough,y=r.big_enough_decision_factors;t(function(r){"STORY-".concat(u,"-").concat(v);var t,h,N,R,k,A,S,B,C,O=r.findIndex(function(e){return e.storyNumber===u});if("intro"===s)-1===O?r.push({artifactId:"STORY-".concat(u,"-").concat(v),title:i,value:o,description:g,storyNumber:u,sub_features:[],section:s,blockNumber:v,aiReasoning:m[n],big_enough:b,big_enough_decision_factors:y}):(r[O].value+=o,r[O].aiReasoning=r[O].aiReasoning||[],null===(N=null===(h=r[O])||void 0===h?void 0:h.aiReasoning)||void 0===N||N.push.apply(N,m[n]),r[O].big_enough=b,r[O].big_enough_decision_factors=y);else{r[O].sub_features||(r[O].sub_features=[]);var w=(null===(k=null===(R=r[O])||void 0===R?void 0:R.sub_features)||void 0===k?void 0:k.findIndex(function(e){return e.blockNumber===v}))||-1;if(-1===w)null===(S=null===(A=r[O])||void 0===A?void 0:A.sub_features)||void 0===S||S.push({artifactId:"STORY-".concat(u,"-").concat(v),title:i,value:o,storyNumber:u,blockNumber:v,section:s,aiReasoning:m[n],big_enough:b,big_enough_decision_factors:y});else{var E=null===(C=null===(B=null==r?void 0:r[O])||void 0===B?void 0:B.sub_features)||void 0===C?void 0:C[w];E.value=(E.value||"")+o,E.aiReasoning=E.aiReasoning||[],(t=E.aiReasoning).push.apply(t,m[n]),E.big_enough=b,E.big_enough_decision_factors=y}}var I=JSON.stringify(r);return f.current!==I&&(p({key:"streaming-redis-key-".concat(a),value:{mmvf_list:r,knowledgeBase:c,projectAnalyserSummary:l,dataSources_files:_,ai_reasonings:d}}),f.current=I),e.__spreadArray([],r,!0)})})}catch(e){console.error("Error in processing Stream Content",e)}}}};
|
|
2
2
|
//# sourceMappingURL=useStreamContentHandler.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{__assign as e,__spreadArray as t,__awaiter as n,__generator as r}from"tslib";import{jsxs as o,jsx as i,Fragment as l}from"react/jsx-runtime";import{useState as s,useRef as a,useEffect as u}from"react";import{ChevronUpIcon as c,ChevronDownIcon as d,ExternalLink as v,Download as y,Share2 as m,Copy as h,LoaderCircle as f,PencilIcon as p,ChevronUp as S,ChevronDown as C,Info as g,Bookmark as I}from"lucide-react";import w from"showdown";import{Menu as N,MenuItem as U,Tooltip as b}from"@mui/material";import{v4 as D}from"uuid";import x from"./UserStoryCard.module.css.js";import{formatMarkdown as B,indentMarkdown as k}from"../../utils/helpers.js";import{replaceTitleSection as M}from"../../utils/user-story.utils.js";import A from"../../shared/AtomicButton.js";import E from"../RichTextEditor/RichTextEditor.js";import R from"../userstory-with-citation/UserStoryWithCitation.js";import{useRequirementAI as T}from"../RequirementAIWrapper/RequirementAIWrapper.js";import{BigEnoughPanel as j}from"../story-screen/BigEnoughPanel.js";function H(t){for(var n,r=[],o=/<learned>(.*?)<\/learned>/g,l=0,s=0;null!==(n=o.exec(t));){var a=n[1],u=n.index;u>l&&r.push(i("span",{children:t.slice(l,u)},"text-pre-".concat(s++))),r.push(i(b,e({title:a,placement:"top"},{children:i(g,{size:16,className:"inline-block mx-1 text-blue-500 hover:text-blue-700 cursor"})}),"tooltip-".concat(D()))),l=o.lastIndex}return l<(null==t?void 0:t.length)&&r.push(i("span",{children:t.slice(l)},"text-post-".concat(s++))),r}var L=function(t){var n,r=t.displayName,l=T().customStyles,s=null===(n=null==l?void 0:l.userStoryCardStyles)||void 0===n?void 0:n.showDisplayName;return o("div",e({className:x.displayName,style:null==s?void 0:s.wrapper},{children:[i(I,{className:x.displayNameIcon,style:null==s?void 0:s.displayNameIcon}),o("span",e({style:null==s?void 0:s.label},{children:[r,":"]}))]}))},z=function(c){var d,g,I=c.isUserStoryCurrentlyUpdated,b=c.artifactId,D=c.artifactTitleId,P=c.parentUserStory,_=c.currentUserStory,W=c.onUserStoryChange,O=c.parentIndex,V=c.currentIndex,q=c.enableDownload,Q=c.isDiffEditReviewMode,F=c.showUserStoryDiff,G=c.handleDownloadUserStory,J=c.handleOpenSendDialog,K=c.updateUserStoryArtifact,X=c.selectedArtifactId,Y=c.isDisplayHighlightControl,Z=c.elementDisplayConfig,$=T(),ee=$.searchQueryList,te=$.citations,ne=$.customStyles,re=null==ne?void 0:ne.userStoryCardStyles,oe=null===(d=null==ne?void 0:ne.userStoryScreenStyles)||void 0===d?void 0:d.userStoryContentStyles,ie=s(e(e({},structuredClone(_)),{value:B(_.value)||""})),le=ie[0],se=ie[1],ae=s({userStory:!1}),ue=ae[0],ce=ae[1],de=T(),ve=de.userStory,ye=de.customIcons,me=s(""===O||X===_.artifactId),he=me[0],fe=me[1],pe=s(!1);pe[0];var Se=pe[1],Ce=s(null),ge=Ce[0],Ie=Ce[1],we=s(!1),Ne=we[0],Ue=we[1],be=a(null),De=s(!1);De[0];var xe=De[1],Be=a(null);u(function(){I&&fe(I)},[I]),u(function(){se(e(e({},structuredClone(_)),{value:B(_.value)||""}))},[_]),u(function(){ee.length>0?fe(!0):X&&fe(X===_.artifactId)},[ee,X,_.artifactId]);var ke=function(){Ie(null)},Me=function(){fe(function(e){return!e})};return o("div",e({className:x.card,style:null==re?void 0:re.cardStyle},{children:[o("div",e({className:x.titleSection,style:null==re?void 0:re.titleSection},{children:[o("div",e({className:x.titleRow,style:null==re?void 0:re.titleRow,onClick:Me},{children:[o("div",e({className:x.titleLeft,style:null==re?void 0:re.titleLeft,onMouseEnter:function(){return xe(!0)},onMouseLeave:function(){return xe(!1)}},{children:[i(L,{displayName:D}),i("h2",e({className:x.storyTitle,style:null==re?void 0:re.storyTitle},{children:H(_.title)}),_.artifactId)]})),o("div",e({className:x.titleActions,style:null==re?void 0:re.titleActions,onClick:function(e){return e.stopPropagation()}},{children:[(null==_?void 0:_.big_enough)&&(null==_?void 0:_.big_enough_decision_factors)&&i(j,{customIcons:ye,customStyles:null==re?void 0:re.aiReasoningCitaionStyles,currentUserStory:_,panelStyles:null==re?void 0:re.BigEnoughStyles}),!ue.userStory&&o(l,{children:[!1!==(null==Z?void 0:Z.showShareButton)&&i("button",e({className:x.iconButton,style:null==re?void 0:re.iconButton,onClick:function(e){Ie(e.currentTarget)}},{children:i(v,{size:16})})),o(N,e({id:"user-story-share-menu",anchorEl:ge,open:!!ge,onClose:function(){return Ie(null)},style:null==re?void 0:re.userStoryShareMenu},{children:[q&&i(U,e({style:null==re?void 0:re.userStoryMenuItem,onClick:function(){return n(void 0,void 0,void 0,function(){return r(this,function(e){switch(e.label){case 0:return Se(!0),G?[4,Promise.all([G("pdf"),G("doc")])]:[2];case 1:return e.sent(),Se(!1),[2]}})})}},{children:o("div",e({ref:be,className:x.menuItemContent,style:null==re?void 0:re.menuItemContent},{children:[i(y,{size:16,color:null==re?void 0:re.menuIconColor}),i("p",e({style:null==re?void 0:re.menuLabel},{children:"Download"}))]}))})),i(U,e({style:null==re?void 0:re.userStoryMenuItem,onClick:function(){return n(void 0,void 0,void 0,function(){var t;return r(this,function(n){return t=_,P&&(t=e(e({},_),{value:"".concat(M(null==P?void 0:P.value,_.title)," \n").concat(_.value)})),null==J||J(!0,[t],_.artifactId),ke(),[2]})})}},{children:o("div",e({style:null==re?void 0:re.menuItemContent,className:x.menuItemContentPadded},{children:[i(m,{size:16,color:null==re?void 0:re.menuIconColor}),i("p",e({style:null==re?void 0:re.menuLabel},{children:"Send"}))]}))})),i(U,e({style:null==re?void 0:re.userStoryMenuItem,onClick:function(){return n(void 0,void 0,void 0,function(){var e,t,n,o,i;return r(this,function(r){switch(r.label){case 0:e=new w.Converter,t=e.makeHtml(B(_.value)||_.value),n=function(e){var t=(new w.Converter).makeHtml(e),n=document.createElement("div");return n.innerHTML=t,n.textContent||n.innerText||""}(B(_.value)||_.value),o=new ClipboardItem({"text/plain":new Blob([n],{type:"text/plain"}),"text/html":new Blob([t],{type:"text/html"})}),r.label=1;case 1:return r.trys.push([1,3,4,5]),[4,navigator.clipboard.write([o])];case 2:return r.sent(),console.log("Copied User Story"),[3,5];case 3:return i=r.sent(),console.error("Failed to copy user story:",i),[3,5];case 4:return ke(),[7];case 5:return[2]}})})}},{children:o("div",e({style:null==re?void 0:re.menuItemContent,className:x.menuItemContentPadded},{children:[i(h,{size:16,color:null==re?void 0:re.menuIconColor}),i("p",e({style:null==re?void 0:re.menuLabel},{children:"Copy"}))]}))}))]}))]}),ue.userStory&&he?i(A,{type:"outline",children:"Cancel",style:null==re?void 0:re.cancelButton,onClick:function(){var t;null===(t=Be.current)||void 0===t||t.abort(),ce(function(t){return e(e({},t),{userStory:!1})})}}):i(l,{}),ue.userStory&&he?i(A,{type:"fill",children:Ne?o("span",e({className:x.savingSpinner},{children:[i(f,{className:x.spinAnimation}),i("span",{children:"Saving..."})]})):"Save",isDisable:Ne,style:Ne?null==re?void 0:re.savingButton:null==re?void 0:re.saveButton,onClick:function(){return n(void 0,void 0,void 0,function(){var t;return r(this,function(n){switch(n.label){case 0:return Ue(!0),"userStory"==="userStory"&&(W(le),console.log("I am changing RTE editor values",le)),[4,K(te,ve,b,null===(t=Be.current)||void 0===t?void 0:t.signal)];case 1:return n.sent(),ce(function(t){return e(e({},t),{userStory:!1})}),Ue(!1),[2]}})})}}):!Q&&!F&&he&&!1!==(null==Z?void 0:Z.showEditButton)&&i("button",e({className:x.iconButton,style:null==re?void 0:re.editButton,onClick:function(){return ce(function(t){return e(e({},t),{userStory:!0})})}},{children:i(p,{color:null==re?void 0:re.pencilIconColor,size:16})})),i("button",e({type:"button",onClick:function(e){e.stopPropagation(),Me()},style:null==re?void 0:re.chevronButton,className:x.chevronButton},{children:i(he?S:C,{className:x.chevronIcon,color:null==re?void 0:re.chevronIconColor})}))]}))]})),i("div",{className:x.divider,style:null==re?void 0:re.dividerStyle})]})),he&&i("div",e({className:x.cardContent,style:null==re?void 0:re.cardContentStyle},{children:o("div",e({className:x.contentInner,style:null==re?void 0:re.contentInner},{children:[o("div",e({className:x.descriptionSection,style:null==re?void 0:re.descriptionSection},{children:[i("div",{className:x.justifyBetween,style:null==re?void 0:re.justifyBetween}),ue.userStory?i(E,{minHeight:"100%",height:"100%",type:"string",value:B(_.value)||"",handleUpdateState:function(t,n){var r=k(n);se(function(t){return e(e({},t),{value:r||""})})},doNotShowBorderInViewMode:!1,onBlur:function(){},mode:ue.userStory?"edit":"readOnly"}):i(R,{showUserStoryDiff:F,isParent:""===O,message:B(_.value)||"",artifactId:_.artifactId,customStyles:oe,isDisplayHighlightControl:Y})]})),null===(g=le.sub_features)||void 0===g?void 0:g.map(function(n,r){return i(z,{artifactId:b,isUserStoryCurrentlyUpdated:I,artifactTitleId:"".concat(D,"-").concat(String.fromCharCode(65+r)),parentUserStory:_,parentIndex:"".concat(O).concat(O&&".").concat(V),currentIndex:"".concat(r+1),doNotShowBorderInViewMode:!1,currentUserStory:n,onUserStoryChange:function(n){return function(n,r){var o=t([],_.sub_features||[],!0);o[n]=r,W(e(e({},_),{sub_features:o}))}(r,n)},enableDownload:!0,isDiffEditReviewMode:Q,showUserStoryDiff:F,updateUserStoryArtifact:K,handleDownloadUserStory:G,handleOpenSendDialog:J,isDisplayHighlightControl:Y,elementDisplayConfig:Z},n.artifactId)})]}))}))]}))},P=function(n){var r=n.artifactTitleIDs,s=n.isDiffEditReviewMode,a=n.showUserStoryDiff,u=n.updateUserStoryArtifact,v=n.isUserStoryCurrentlyUpdated,y=n.artifactId,m=n.handleOpenSendDialog,h=n.handleDownloadUserStory,f=n.selectedArtifactId,p=n.isDisplayHighlightControl,S=n.elementDisplayConfig,C=T(),g=C.userStory,I=C.setUserStory,w=C.customStyles,N=C.searchQueryList,U=C.currentHighlightIndex,b=C.setCurrentHighlightIndex,D=null==w?void 0:w.userStoryCardStyles,B=0===U,k=U===N.length-1;return o("div",e({className:x.userStoryCardWrapper,style:p?e(e({},null==D?void 0:D.userStoryCardWrapper),{position:"relative"}):null==D?void 0:D.userStoryCardWrapper},{children:[p&&i(l,{children:N.length>0&&i("div",e({className:x.wrapper},{children:i("div",e({className:x.highlightNavigation},{children:o("div",e({className:x.navigationContainer},{children:[o("span",e({className:x.navCounter},{children:[U+1," of ",N.length]})),o("div",e({className:x.navButtons},{children:[i("button",e({onClick:function(){U>0&&b(function(e){return e-1})},className:x.navButton,disabled:B},{children:i(c,{size:20,className:x.navIcon})})),i("button",e({onClick:function(){U<N.length-1&&b(function(e){return e+1})},className:x.navButton,disabled:k},{children:i(d,{size:20,className:x.navIcon})}))]}))]}))}))}))}),g.map(function(e,n){return i(z,{isUserStoryCurrentlyUpdated:v,artifactId:y,artifactTitleId:r[n]||"",currentUserStory:e,onUserStoryChange:function(e){I(function(r){return r[n]=e,t([],r,!0)})},parentIndex:"",currentIndex:"".concat(n+1),doNotShowBorderInViewMode:!0,enableDownload:!0,isDiffEditReviewMode:s,showUserStoryDiff:a,updateUserStoryArtifact:u,handleOpenSendDialog:m,handleDownloadUserStory:h,selectedArtifactId:f,isDisplayHighlightControl:p,elementDisplayConfig:S},e.artifactId)})]}))};export{z as StoryCard,P as UserStoryCardWrapper,z as default,H as replaceLearnedTagsWithInfo};
|
|
1
|
+
import{__assign as e,__spreadArray as t,__awaiter as n,__generator as r}from"tslib";import{jsxs as o,jsx as i,Fragment as l}from"react/jsx-runtime";import{useState as a,useRef as s,useEffect as u}from"react";import{ChevronUpIcon as c,ChevronDownIcon as d,ExternalLink as v,Download as y,Share2 as m,Copy as h,LoaderCircle as f,PencilIcon as p,ChevronUp as S,ChevronDown as C,Info as g,Bookmark as I}from"lucide-react";import N from"showdown";import{Menu as w,MenuItem as b,Tooltip as U}from"@mui/material";import{v4 as D}from"uuid";import x from"./UserStoryCard.module.css.js";import{formatMarkdown as B,indentMarkdown as k}from"../../utils/helpers.js";import{replaceTitleSection as M}from"../../utils/user-story.utils.js";import A from"../../shared/AtomicButton.js";import E from"../RichTextEditor/RichTextEditor.js";import R from"../userstory-with-citation/UserStoryWithCitation.js";import{useRequirementAI as T}from"../RequirementAIWrapper/RequirementAIWrapper.js";import{BigEnoughPanel as j}from"../story-screen/BigEnoughPanel.js";function H(t){for(var n,r=[],o=/<learned>(.*?)<\/learned>/g,l=0,a=0;null!==(n=o.exec(t));){var s=n[1],u=n.index;u>l&&r.push(i("span",{children:t.slice(l,u)},"text-pre-".concat(a++))),r.push(i(U,e({title:s,placement:"top"},{children:i(g,{size:16,className:"inline-block mx-1 text-blue-500 hover:text-blue-700 cursor"})}),"tooltip-".concat(D()))),l=o.lastIndex}return l<(null==t?void 0:t.length)&&r.push(i("span",{children:t.slice(l)},"text-post-".concat(a++))),r}var L=function(t){var n,r=t.displayName,l=T().customStyles,a=null===(n=null==l?void 0:l.userStoryCardStyles)||void 0===n?void 0:n.showDisplayName;return o("div",e({className:x.displayName,style:null==a?void 0:a.wrapper},{children:[i(I,{className:x.displayNameIcon,style:null==a?void 0:a.displayNameIcon}),o("span",e({style:null==a?void 0:a.label},{children:[r,":"]}))]}))},z=function(c){var d,g,I=c.isUserStoryCurrentlyUpdated,U=c.artifactId,D=c.artifactTitleId,_=c.parentUserStory,P=c.currentUserStory,W=c.onUserStoryChange,O=c.parentIndex,V=c.currentIndex,q=c.enableDownload,Q=c.isDiffEditReviewMode,F=c.showUserStoryDiff,G=c.handleDownloadUserStory,J=c.handleOpenSendDialog,K=c.updateUserStoryArtifact,X=c.selectedArtifactId,Y=c.isDisplayHighlightControl,Z=c.elementDisplayConfig,$=T(),ee=$.searchQueryList,te=$.citations,ne=$.customStyles,re=null==ne?void 0:ne.userStoryCardStyles,oe=null===(d=null==ne?void 0:ne.userStoryScreenStyles)||void 0===d?void 0:d.userStoryContentStyles,ie=a(e(e({},structuredClone(P)),{value:B(P.value)||""})),le=ie[0],ae=ie[1],se=a({userStory:!1}),ue=se[0],ce=se[1],de=T(),ve=de.userStory,ye=de.customIcons,me=a(""===O||X===P.artifactId),he=me[0],fe=me[1],pe=a(!1);pe[0];var Se=pe[1],Ce=a(null),ge=Ce[0],Ie=Ce[1],Ne=a(!1),we=Ne[0],be=Ne[1],Ue=s(null),De=a(!1);De[0];var xe=De[1],Be=s(null);u(function(){I&&fe(I)},[I]),u(function(){ae(e(e({},structuredClone(P)),{value:B(P.value)||""}))},[P]),u(function(){ee.length>0?fe(!0):X&&fe(X===P.artifactId)},[ee,X,P.artifactId]);var ke=function(){Ie(null)},Me=function(){fe(function(e){return!e})};var Ae=null!=(null==P?void 0:P.big_enough)&&!Number.isNaN(P.big_enough)&&!!(null==P?void 0:P.big_enough_decision_factors);return o("div",e({className:x.card,style:null==re?void 0:re.cardStyle},{children:[o("div",e({className:x.titleSection,style:null==re?void 0:re.titleSection},{children:[o("div",e({className:x.titleRow,style:null==re?void 0:re.titleRow,onClick:Me},{children:[o("div",e({className:x.titleLeft,style:null==re?void 0:re.titleLeft,onMouseEnter:function(){return xe(!0)},onMouseLeave:function(){return xe(!1)}},{children:[i(L,{displayName:D}),i("h2",e({className:x.storyTitle,style:null==re?void 0:re.storyTitle},{children:H(P.title)}),P.artifactId)]})),o("div",e({className:x.titleActions,style:null==re?void 0:re.titleActions,onClick:function(e){return e.stopPropagation()}},{children:[Ae&&i(j,{customIcons:ye,customStyles:null==re?void 0:re.aiReasoningCitaionStyles,currentUserStory:P,panelStyles:null==re?void 0:re.BigEnoughStyles}),!ue.userStory&&o(l,{children:[!1!==(null==Z?void 0:Z.showShareButton)&&i("button",e({className:x.iconButton,style:null==re?void 0:re.iconButton,onClick:function(e){Ie(e.currentTarget)}},{children:i(v,{size:16})})),o(w,e({id:"user-story-share-menu",anchorEl:ge,open:!!ge,onClose:function(){return Ie(null)},style:null==re?void 0:re.userStoryShareMenu},{children:[q&&i(b,e({style:null==re?void 0:re.userStoryMenuItem,onClick:function(){return n(void 0,void 0,void 0,function(){return r(this,function(e){switch(e.label){case 0:return Se(!0),G?[4,Promise.all([G("pdf"),G("doc")])]:[2];case 1:return e.sent(),Se(!1),[2]}})})}},{children:o("div",e({ref:Ue,className:x.menuItemContent,style:null==re?void 0:re.menuItemContent},{children:[i(y,{size:16,color:null==re?void 0:re.menuIconColor}),i("p",e({style:null==re?void 0:re.menuLabel},{children:"Download"}))]}))})),i(b,e({style:null==re?void 0:re.userStoryMenuItem,onClick:function(){return n(void 0,void 0,void 0,function(){var t;return r(this,function(n){return t=P,_&&(t=e(e({},P),{value:"".concat(M(null==_?void 0:_.value,P.title)," \n").concat(P.value)})),null==J||J(!0,[t],P.artifactId),ke(),[2]})})}},{children:o("div",e({style:null==re?void 0:re.menuItemContent,className:x.menuItemContentPadded},{children:[i(m,{size:16,color:null==re?void 0:re.menuIconColor}),i("p",e({style:null==re?void 0:re.menuLabel},{children:"Send"}))]}))})),i(b,e({style:null==re?void 0:re.userStoryMenuItem,onClick:function(){return n(void 0,void 0,void 0,function(){var e,t,n,o,i;return r(this,function(r){switch(r.label){case 0:e=new N.Converter,t=e.makeHtml(B(P.value)||P.value),n=function(e){var t=(new N.Converter).makeHtml(e),n=document.createElement("div");return n.innerHTML=t,n.textContent||n.innerText||""}(B(P.value)||P.value),o=new ClipboardItem({"text/plain":new Blob([n],{type:"text/plain"}),"text/html":new Blob([t],{type:"text/html"})}),r.label=1;case 1:return r.trys.push([1,3,4,5]),[4,navigator.clipboard.write([o])];case 2:return r.sent(),console.log("Copied User Story"),[3,5];case 3:return i=r.sent(),console.error("Failed to copy user story:",i),[3,5];case 4:return ke(),[7];case 5:return[2]}})})}},{children:o("div",e({style:null==re?void 0:re.menuItemContent,className:x.menuItemContentPadded},{children:[i(h,{size:16,color:null==re?void 0:re.menuIconColor}),i("p",e({style:null==re?void 0:re.menuLabel},{children:"Copy"}))]}))}))]}))]}),ue.userStory&&he?i(A,{type:"outline",children:"Cancel",style:null==re?void 0:re.cancelButton,onClick:function(){var t;null===(t=Be.current)||void 0===t||t.abort(),ce(function(t){return e(e({},t),{userStory:!1})})}}):i(l,{}),ue.userStory&&he?i(A,{type:"fill",children:we?o("span",e({className:x.savingSpinner},{children:[i(f,{className:x.spinAnimation}),i("span",{children:"Saving..."})]})):"Save",isDisable:we,style:we?null==re?void 0:re.savingButton:null==re?void 0:re.saveButton,onClick:function(){return n(void 0,void 0,void 0,function(){var t;return r(this,function(n){switch(n.label){case 0:return be(!0),"userStory"==="userStory"&&(W(le),console.log("I am changing RTE editor values",le)),[4,K(te,ve,U,null===(t=Be.current)||void 0===t?void 0:t.signal)];case 1:return n.sent(),ce(function(t){return e(e({},t),{userStory:!1})}),be(!1),[2]}})})}}):!Q&&!F&&he&&!1!==(null==Z?void 0:Z.showEditButton)&&i("button",e({className:x.iconButton,style:null==re?void 0:re.editButton,onClick:function(){return ce(function(t){return e(e({},t),{userStory:!0})})}},{children:i(p,{color:null==re?void 0:re.pencilIconColor,size:16})})),i("button",e({type:"button",onClick:function(e){e.stopPropagation(),Me()},style:null==re?void 0:re.chevronButton,className:x.chevronButton},{children:i(he?S:C,{className:x.chevronIcon,color:null==re?void 0:re.chevronIconColor})}))]}))]})),i("div",{className:x.divider,style:null==re?void 0:re.dividerStyle})]})),he&&i("div",e({className:x.cardContent,style:null==re?void 0:re.cardContentStyle},{children:o("div",e({className:x.contentInner,style:null==re?void 0:re.contentInner},{children:[o("div",e({className:x.descriptionSection,style:null==re?void 0:re.descriptionSection},{children:[i("div",{className:x.justifyBetween,style:null==re?void 0:re.justifyBetween}),ue.userStory?i(E,{minHeight:"100%",height:"100%",type:"string",value:B(P.value)||"",handleUpdateState:function(t,n){var r=k(n);ae(function(t){return e(e({},t),{value:r||""})})},doNotShowBorderInViewMode:!1,onBlur:function(){},mode:ue.userStory?"edit":"readOnly"}):i(R,{showUserStoryDiff:F,isParent:""===O,message:B(P.value)||"",artifactId:P.artifactId,customStyles:oe,isDisplayHighlightControl:Y})]})),null===(g=le.sub_features)||void 0===g?void 0:g.map(function(n,r){return i(z,{artifactId:U,isUserStoryCurrentlyUpdated:I,artifactTitleId:"".concat(D,"-").concat(String.fromCharCode(65+r)),parentUserStory:P,parentIndex:"".concat(O).concat(O&&".").concat(V),currentIndex:"".concat(r+1),doNotShowBorderInViewMode:!1,currentUserStory:n,onUserStoryChange:function(n){return function(n,r){var o=t([],P.sub_features||[],!0);o[n]=r,W(e(e({},P),{sub_features:o}))}(r,n)},enableDownload:!0,isDiffEditReviewMode:Q,showUserStoryDiff:F,updateUserStoryArtifact:K,handleDownloadUserStory:G,handleOpenSendDialog:J,isDisplayHighlightControl:Y,elementDisplayConfig:Z},n.artifactId)})]}))}))]}))},_=function(n){var r=n.artifactTitleIDs,a=n.isDiffEditReviewMode,s=n.showUserStoryDiff,u=n.updateUserStoryArtifact,v=n.isUserStoryCurrentlyUpdated,y=n.artifactId,m=n.handleOpenSendDialog,h=n.handleDownloadUserStory,f=n.selectedArtifactId,p=n.isDisplayHighlightControl,S=n.elementDisplayConfig,C=T(),g=C.userStory,I=C.setUserStory,N=C.customStyles,w=C.searchQueryList,b=C.currentHighlightIndex,U=C.setCurrentHighlightIndex,D=null==N?void 0:N.userStoryCardStyles,B=0===b,k=b===w.length-1;return o("div",e({className:x.userStoryCardWrapper,style:p?e(e({},null==D?void 0:D.userStoryCardWrapper),{position:"relative"}):null==D?void 0:D.userStoryCardWrapper},{children:[p&&i(l,{children:w.length>0&&i("div",e({className:x.wrapper},{children:i("div",e({className:x.highlightNavigation},{children:o("div",e({className:x.navigationContainer},{children:[o("span",e({className:x.navCounter},{children:[b+1," of ",w.length]})),o("div",e({className:x.navButtons},{children:[i("button",e({onClick:function(){b>0&&U(function(e){return e-1})},className:x.navButton,disabled:B},{children:i(c,{size:20,className:x.navIcon})})),i("button",e({onClick:function(){b<w.length-1&&U(function(e){return e+1})},className:x.navButton,disabled:k},{children:i(d,{size:20,className:x.navIcon})}))]}))]}))}))}))}),g.map(function(e,n){return i(z,{isUserStoryCurrentlyUpdated:v,artifactId:y,artifactTitleId:r[n]||"",currentUserStory:e,onUserStoryChange:function(e){I(function(r){return r[n]=e,t([],r,!0)})},parentIndex:"",currentIndex:"".concat(n+1),doNotShowBorderInViewMode:!0,enableDownload:!0,isDiffEditReviewMode:a,showUserStoryDiff:s,updateUserStoryArtifact:u,handleOpenSendDialog:m,handleDownloadUserStory:h,selectedArtifactId:f,isDisplayHighlightControl:p,elementDisplayConfig:S},e.artifactId)})]}))};export{z as StoryCard,_ as UserStoryCardWrapper,z as default,H as replaceLearnedTagsWithInfo};
|
|
2
2
|
//# sourceMappingURL=UserStoryCard.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{__assign as o}from"tslib";import{jsxs as n,jsx as e,Fragment as i}from"react/jsx-runtime";import{useState as r,useRef as t}from"react";import l from"../../icons/BigEnoughIcon.js";import
|
|
1
|
+
import{__assign as o}from"tslib";import{jsxs as n,jsx as e,Fragment as i}from"react/jsx-runtime";import{useState as r,useRef as t}from"react";import l from"../../icons/BigEnoughIcon.js";import c from"../ai-reasoning/AiReasoningCitationContent.js";import{useRequirementAI as s}from"../RequirementAIWrapper/RequirementAIWrapper.js";import a from"./BigEnoughPanel.module.css.js";var u=function(u){var d,p,g,v,m=u.customIcons,f=u.customStyles,h=u.currentUserStory,_=u.panelStyles,b=u.showPanel,y=void 0!==b&&b;s().searchQueryList;var S=r(!!y),P=S[0],k=S[1],w=t(null);return n("div",o({onClick:function(o){return o.stopPropagation()}},{children:[!y&&e("button",o({ref:w,className:a.developerEffortButton,style:null==_?void 0:_.buttonStyle,onClick:function(o){o.stopPropagation(),k(function(o){return!o})}},{children:e(l,{})})),P&&n(i,{children:[e("div",{className:null==a?void 0:a.backdrop,style:y?null==_?void 0:_.showPanelBackdropStyles:null==_?void 0:_.backdropStyle,onClick:function(o){o.stopPropagation(),k(!1)},onWheel:function(o){return o.stopPropagation()}}),e("div",o({className:"".concat(a.dropdown," ").concat(y?a.showPanelDropdown:""),style:o(o({},null==_?void 0:_.dropdownStyle),y?null==_?void 0:_.showPanelDropdownStyle:{})},{children:e(c,{cognitiveDecisionHeaders:{mainHeader:"Feature Implementation Score - ".concat((null==h?void 0:h.big_enough)||0)},big_enough_block:null===(d=h.big_enough_decision_factors)||void 0===d?void 0:d.big_enough_block,aiReason:{relevance_score:(null===(p=null==h?void 0:h.big_enough_decision_factors)||void 0===p?void 0:p.relevance_score)||0,reason:(null===(g=null==h?void 0:h.big_enough_decision_factors)||void 0===g?void 0:g.score_reason)||"",gap:(null===(v=null==h?void 0:h.big_enough_decision_factors)||void 0===v?void 0:v.gap)||"",id:"big-enough-cd"},customIcons:m,customStyles:f})}))]})]}))};export{u as BigEnoughPanel};
|
|
2
2
|
//# sourceMappingURL=BigEnoughPanel.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
var e={developerEffortButton:"BigEnoughPanel-module_developerEffortButton__KLQ-Z",dropdown:"BigEnoughPanel-module_dropdown__mlBHL"};!function(){if("undefined"==typeof document)return;const e=document.createElement("style");e.type="text/css";const o=window.__CSP_NONCE__||document.querySelector('meta[name="csp-nonce"]')?.content;o&&e.setAttribute("nonce",o),e.appendChild(document.createTextNode(".BigEnoughPanel-module_developerEffortButton__KLQ-Z{background-color:#fff;border:1px solid #d1d5db;border-radius:.3rem;box-shadow:0 1px 2px #0000000d;cursor:pointer;padding:.4rem .8rem}.BigEnoughPanel-module_dropdown__mlBHL{background-color:#fff;border:1px solid #e5e7eb;border-radius:8px;left:20px;margin-top:1.25rem;position:absolute;top:100%;width:91.666667%;z-index:40}"));const
|
|
1
|
+
var e={developerEffortButton:"BigEnoughPanel-module_developerEffortButton__KLQ-Z",backdrop:"BigEnoughPanel-module_backdrop__J0KVD",dropdown:"BigEnoughPanel-module_dropdown__mlBHL",showPanelDropdown:"BigEnoughPanel-module_showPanelDropdown__qz6dk"};!function(){if("undefined"==typeof document)return;const e=document.createElement("style");e.type="text/css";const o=window.__CSP_NONCE__||document.querySelector('meta[name="csp-nonce"]')?.content;o&&e.setAttribute("nonce",o),e.appendChild(document.createTextNode(".BigEnoughPanel-module_developerEffortButton__KLQ-Z{background-color:#fff;border:1px solid #d1d5db;border-radius:.3rem;box-shadow:0 1px 2px #0000000d;cursor:pointer;margin-right:3px;padding:.4rem .8rem}.BigEnoughPanel-module_backdrop__J0KVD{height:100vh;inset:0;position:absolute;width:100vw;z-index:40}.BigEnoughPanel-module_dropdown__mlBHL.BigEnoughPanel-module_showPanelDropdown__qz6dk{max-height:70vh;overflow-y:scroll;top:10px}.BigEnoughPanel-module_dropdown__mlBHL{background-color:#fff;border:1px solid #e5e7eb;border-radius:8px;left:20px;margin-top:1.25rem;position:absolute;top:100%;width:91.666667%;z-index:40}"));const n=document.head||document.getElementsByTagName("head")[0]||document.documentElement;n&&n.appendChild(e)}();export{e as default};
|
|
2
2
|
//# sourceMappingURL=BigEnoughPanel.module.css.js.map
|
package/dist/features/RequirementAI/components/userstory-approval-screen/UserStoryApprovalScreen.js
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{__assign as e,__spreadArray as o}from"tslib";import{jsx as t,jsxs as r}from"react/jsx-runtime";import{useState as n,useRef as i,useCallback as l,useMemo as a,useEffect as s}from"react";import{useRequirementAI as d}from"../RequirementAIWrapper/RequirementAIWrapper.js";import{createUserStoriesForApproval as c,cloneUserStories as v}from"../../utils/userstory-approval-transform.utils.js";import{getFirstNonApprovedSegmentId as p,getFirstUnapprovedStoryId as u,approveAllSegments as f}from"../../utils/userstory-approval.utils.js";import{useApprovalStatus as m}from"../../hooks/useApprovalStatus.js";import{ContentSegment as S}from"./components/ContentSegment/ContentSegment.js";import{ApprovalBadge as h}from"./components/ApprovalBadge/ApprovalBadge.js";import g from"./UserStoryApprovalScreen.module.css.js";import{CheckIcon as y}from"../../icons/CheckIcon.js";import{BookmarkIcon as b}from"../../icons/BookmarkIcon.js";import{ApprovalSidebar as A}from"./components/ApprovalSidebar/ApprovalSidebar.js";import{SidebarOpenIcon as I,SidebarCloseIcon as C}from"lucide-react";import{UserStoryApprovalScreenContext as w,useUserStoryApprovalScreen as E}from"./UserStoryApprovalContext.js";import{BigEnoughPanel as N}from"../story-screen/BigEnoughPanel.js";import T from"../../icons/BigEnoughIcon.js";var U={showApproveAllButton:!0,allowEditing:!0,allowDeletion:!0,showSidebar:!1,containerHeight:"calc(100vh - 100px)",useFullWidth:!1},x={approveAll:"Approve All",approved:"Approved",approve:"Approve",correctMe:"Correct Me",delete:"Delete",save:"Save",cancel:"Cancel",savingArtifact:"Saving Artifact...",artifactSavedTitle:"Artifact Saved Successfully",artifactSavedMessage:"Your changes have been saved.",saveFailedTitle:"Failed to Save the Artifact",saveFailedMessage:"An error occurred while saving your changes.",emptyContentWarning:"Saving empty content is not allowed",unsavedChangesWarning:"Please save the updated changes to proceed with Approve All"},F=Object.assign(function(r){var f,S=r.artifactTitleIds,h=r.config,y=void 0===h?{}:h,b=r.callbacks,A=void 0===b?{}:b,I=r.labels,C=void 0===I?{}:I,E=r.isDisabled,N=void 0!==E&&E,T=r.children,F=r.classNames,k=r.selectedArtifactId,j=d(),B=j.userStory,D=j.customStyles,_=e(e({},U),y),P=e(e({},x),C),R=n([]),W=R[0],M=R[1],V=n(""),q=V[0],O=V[1],z=n(""),L=z[0],H=z[1],G=n(!1),Y=G[0],J=G[1],K=n(!0),Q=K[0],X=K[1],Z=i(void 0),$=l(function(e,o,t,r){A.onShowNotification?A.onShowNotification(e,o,t,r):console.log("[".concat(e.toUpperCase(),"] ").concat(o,": ").concat(t))},[A]),ee=l(function(e){A.onScrollToElement?A.onScrollToElement(e):(e.style.scrollMarginTop="20px",e.scrollIntoView({behavior:"smooth",block:"start"}))},[A]),oe=a(function(){var e=W.findIndex(function(e){return e.artifactId===q});return e>=0?e:0},[W,q]),te=W[oe];s(function(){Z.current=te},[te]),s(function(){var e;if(null==B?void 0:B.length){null===(e=A.onInitialize)||void 0===e||e.call(A),1===B.length&&X(!1),B.length>0&&!q&&O(k||B[0].artifactId);var o=c(v(B));M(o)}},[B,k]),s(function(){k&&k!==q&&O(k)},[k,q]),s(function(){if(te){var e=p(te,"");H(e)}},[null==te?void 0:te.artifactId]);var re=l(function(e,t){M(function(r){var n=o([],r,!0);if("APPROVED"===t.approval_status&&"APPROVED"!==r[e].approval_status){var i=u(r,t.artifactId);i&&O(i)}return n[e]=t,n})},[]),ne=l(function(e){var o=Z.current;if(o){var t=p(o,e);"NA"!==t&&(H(""),setTimeout(function(){H(t)},0))}},[]);m({userStoryForApproval:W,selectedUserStoryForApproval:te,userStoryIndex:oe,callbacks:A,labels:P,onSaveUserStory:re});var ie=e({height:_.containerHeight},_.useFullWidth?{width:"100%",marginLeft:0,marginRight:0}:{width:"calc(100% + 40px)",marginLeft:"-20px",marginRight:"-20px"}),le={userStoryForApproval:W,setUserStoryForApproval:M,selectedStoryArtifactId:q,setSelectedStoryArtifactId:O,selectedUserStoryIndex:oe,selectedUserStoryForApproval:te,currentContentId:L,setCurrentContentId:H,isEditingSegment:Y,setIsEditingSegment:J,isSidebarExpanded:Q,setIsSidebarExpanded:X,artifactTitleIds:S,config:_,labels:P,callbacks:A,isDisabled:N,handleSaveUserStory:re,handleUpdateContentId:ne,showNotification:$,scrollToElement:ee};return t(w.Provider,e({value:le},{children:t("div",e({className:"".concat(g.container," ").concat((null==F?void 0:F.container)||""),style:e(e({},ie),null===(f=null==D?void 0:D.approvalScreen)||void 0===f?void 0:f.wrapperContainer)},{children:T}))}))},{Sidebar:function(e){var o=e.Component,r=e.config,n=e.className,i=E(),l=i.isSidebarExpanded,a=i.selectedStoryArtifactId,s=i.setSelectedStoryArtifactId,d=i.userStoryForApproval,c=i.isEditingSegment,v=i.artifactTitleIds;return o?t(o,{isSidebarExpanded:l,selectedStoryArtifactId:a,setSelectedStoryArtifactId:s,userStoryForApproval:d,isEditingAnUserStorySegment:c,artifactTitleIds:v}):t(A,{config:r,className:n})},SidebarToggle:function(o){var r=o.OpenIcon,n=o.CloseIcon,i=o.className,l=void 0===i?"":i,a=E(),s=a.isSidebarExpanded,d=a.setIsSidebarExpanded,c=r||I,v=n||C;return t("div",e({className:"".concat(g.sidebarToggleWrapper," ").concat(l)},{children:t("button",e({onClick:function(){return d(function(e){return!e})},className:g.sidebarToggleBtn,"aria-label":s?"Collapse sidebar":"Expand sidebar",type:"button"},{children:t(s?v:c,{})}))}))},Content:function(o){var i,a,s,c,v,p,u,m,S,A,I,C,w,U,x,F,k,j,B,D,_,P,R,W,M,V=o.children,q=o.ButtonComponent,O=o.hideApproveAll,z=void 0!==O&&O,L=o.pageTitle,H=void 0===L?"Review Generated Requirements":L,G=o.pageDescription,Y=void 0===G?"This page displays automatically generated requirements for your project. Use this screen to review, refine, correct, or approve all generated requirements.":G,J=E(),K=J.selectedUserStoryForApproval,Q=J.selectedUserStoryIndex,X=J.artifactTitleIds,Z=J.labels,$=J.config,ee=J.isDisabled,oe=J.isEditingSegment,te=J.handleSaveUserStory,re=J.setCurrentContentId,ne=J.showNotification,ie=d(),le=ie.customStyles,ae=ie.customIcons,se=n(!1),de=se[0],ce=se[1],ve=l(function(){if(K)if(oe)ne("warn","Warning!",Z.unsavedChangesWarning,3e3);else{var e=f(K);te(Q,e),re("")}},[K,Q,oe,Z,te,re,ne]);if(!K)return null;var pe=X[Q]||"",ue="APPROVED"===K.approval_status,fe=null!=(null==K?void 0:K.big_enough)&&!Number.isNaN(K.big_enough)&&!!(null==K?void 0:K.big_enough_decision_factors);return r("div",e({className:g.content,style:e({},null===(a=null===(i=null==le?void 0:le.approvalScreen)||void 0===i?void 0:i.content)||void 0===a?void 0:a.content),"data-lsc-ui-page-title":H,"data-lsc-ui-page-description":Y},{children:[r("div",e({className:g.header,style:e({},null===(v=null===(c=null===(s=null==le?void 0:le.approvalScreen)||void 0===s?void 0:s.body)||void 0===c?void 0:c.contentSegment)||void 0===v?void 0:v.header)},{children:[r("div",e({className:g.headerLeft,style:e({},null===(u=null===(p=null==le?void 0:le.approvalScreen)||void 0===p?void 0:p.content)||void 0===u?void 0:u.headerLeft)},{children:[r("div",e({className:g.headerMeta,style:e({},null===(A=null===(S=null===(m=null==le?void 0:le.approvalScreen)||void 0===m?void 0:m.body)||void 0===S?void 0:S.contentSegment)||void 0===A?void 0:A.headerMeta)},{children:[t(b,{size:16,color:(null===(w=null===(C=null===(I=null==le?void 0:le.approvalScreen)||void 0===I?void 0:I.body)||void 0===C?void 0:C.contentSegment)||void 0===w?void 0:w.bookMarkColor)||"#8C8C8C"}),t("h2",e({className:g.headerArtifactId,style:e({},null===(F=null===(x=null===(U=null==le?void 0:le.approvalScreen)||void 0===U?void 0:U.body)||void 0===x?void 0:x.contentSegment)||void 0===F?void 0:F.headerArtifactId)},{children:pe}))]})),t("p",e({className:g.headerTitle,style:e({},null===(B=null===(j=null===(k=null==le?void 0:le.approvalScreen)||void 0===k?void 0:k.body)||void 0===j?void 0:j.contentSegment)||void 0===B?void 0:B.headerTitle)},{children:null==K?void 0:K.title}))]})),r("div",e({className:"flex items-center gap-2 "},{children:[fe&&t("button",e({className:g.developerEffortButton,style:null===(_=null===(D=null==le?void 0:le.approvalScreen)||void 0===D?void 0:D.BigEnoughStyles)||void 0===_?void 0:_.buttonStyle,onClick:function(){return ce(!de)}},{children:t(T,{})})),!z&&$.showApproveAllButton&&t("div",e({className:g.headerRight},{children:ue?t(h,{status:"APPROVED",label:Z.approved}):q?t(q,e({type:"fill",onClick:ve,isDisable:ee,className:g.approveAllButton,overrideStyles:!0,lscUIAgent:{id:"approve-all",lscUIType:"button",lscUILabel:Z.approveAll,lscUIDescription:"Clicks this button to approve all generated requirements on the page in a single action.",lscUIWhenToApply:"Apply when the user wants to accept all requirements without reviewing them individually, or when they say phrases like 'approve everything', 'finalize all', 'accept all', or 'this looks good, approve all'."}},{children:r("div",e({className:g.approveAllContent},{children:[t(y,{size:16,color:"white"}),t("span",{children:Z.approveAll})]}))})):r("button",e({onClick:ve,disabled:ee,className:g.approveAllButtonDefault,style:e({},null===(R=null===(P=null==le?void 0:le.approvalScreen)||void 0===P?void 0:P.content)||void 0===R?void 0:R.approveAllButtonDefault)},{children:[t(y,{size:16,color:"white"}),t("span",{children:Z.approveAll})]}))}))]}))]})),de&&fe&&t("div",e({className:g.bigEnoughWrapper},{children:t(N,{customIcons:ae,customStyles:null===(W=null==le?void 0:le.approvalScreen)||void 0===W?void 0:W.aiReasoningCitaionStyles,currentUserStory:K,panelStyles:null===(M=null==le?void 0:le.approvalScreen)||void 0===M?void 0:M.BigEnoughStyles,showPanel:de})})),V]}))},Body:function(o){var n,i,a,s=o.children,c=o.EditorComponent,v=o.ViewerComponent,p=E(),u=p.selectedUserStoryForApproval,f=p.selectedUserStoryIndex,m=p.artifactTitleIds,h=p.handleSaveUserStory,y=d().customStyles,b=l(function(e){h(f,e)},[f,h]),A=l(function(o,t){var r;if(u){var n=e(e({},u),{sub_features:null===(r=u.sub_features)||void 0===r?void 0:r.map(function(e,r){return r===o?t:e})});h(f,n)}},[u,f,h]),I=l(function(o){var t;if(u){var r=e(e({},u),{sub_features:null===(t=u.sub_features)||void 0===t?void 0:t.filter(function(e,t){return t!==o})});h(f,r)}},[u,f,h]);if(!u)return null;var C=m[f]||"";return r("div",e({className:g.body,style:e({},null===(i=null===(n=null==y?void 0:y.approvalScreen)||void 0===n?void 0:n.body)||void 0===i?void 0:i.container)},{children:[t(S,{userStoryForApproval:u,artifactTitleId:C,onSaveMainStoryContent:b,EditorComponent:c,ViewerComponent:v}),null===(a=u.sub_features)||void 0===a?void 0:a.map(function(e,o){return t(S,{userStoryForApproval:e,artifactTitleId:"".concat(C," - ").concat(String.fromCharCode(65+o)),isSubFeature:!0,subFeatureIndex:o,onSaveSubFeature:A,onDeleteSubFeature:I,EditorComponent:c,ViewerComponent:v},e.artifactId)}),s]}))}});export{F as default};
|
|
1
|
+
import{__assign as e,__spreadArray as o}from"tslib";import{jsx as t,jsxs as r}from"react/jsx-runtime";import{useState as n,useRef as i,useCallback as l,useMemo as a,useEffect as s}from"react";import{useRequirementAI as d}from"../RequirementAIWrapper/RequirementAIWrapper.js";import{createUserStoriesForApproval as c,cloneUserStories as v}from"../../utils/userstory-approval-transform.utils.js";import{getFirstNonApprovedSegmentId as p,getFirstUnapprovedStoryId as u,approveAllSegments as f}from"../../utils/userstory-approval.utils.js";import{useApprovalStatus as m}from"../../hooks/useApprovalStatus.js";import{ContentSegment as S}from"./components/ContentSegment/ContentSegment.js";import{ApprovalBadge as h}from"./components/ApprovalBadge/ApprovalBadge.js";import g from"./UserStoryApprovalScreen.module.css.js";import{CheckIcon as y}from"../../icons/CheckIcon.js";import{BookmarkIcon as b}from"../../icons/BookmarkIcon.js";import{ApprovalSidebar as A}from"./components/ApprovalSidebar/ApprovalSidebar.js";import{SidebarOpenIcon as I,SidebarCloseIcon as C}from"lucide-react";import{UserStoryApprovalScreenContext as w,useUserStoryApprovalScreen as E}from"./UserStoryApprovalContext.js";import{BigEnoughPanel as N}from"../story-screen/BigEnoughPanel.js";import T from"../../icons/BigEnoughIcon.js";var U={showApproveAllButton:!0,allowEditing:!0,allowDeletion:!0,showSidebar:!1,containerHeight:"calc(100vh - 100px)",useFullWidth:!1},x={approveAll:"Approve All",approved:"Approved",approve:"Approve",correctMe:"Correct Me",delete:"Delete",save:"Save",cancel:"Cancel",savingArtifact:"Saving Artifact...",artifactSavedTitle:"Artifact Saved Successfully",artifactSavedMessage:"Your changes have been saved.",saveFailedTitle:"Failed to Save the Artifact",saveFailedMessage:"An error occurred while saving your changes.",emptyContentWarning:"Saving empty content is not allowed",unsavedChangesWarning:"Please save the updated changes to proceed with Approve All"},F=Object.assign(function(r){var f,S=r.artifactTitleIds,h=r.config,y=void 0===h?{}:h,b=r.callbacks,A=void 0===b?{}:b,I=r.labels,C=void 0===I?{}:I,E=r.isDisabled,N=void 0!==E&&E,T=r.children,F=r.classNames,k=r.selectedArtifactId,B=d(),j=B.userStory,D=B.customStyles,_=e(e({},U),y),P=e(e({},x),C),R=n([]),W=R[0],M=R[1],V=n(""),q=V[0],O=V[1],z=n(""),L=z[0],H=z[1],G=n(!1),Y=G[0],J=G[1],K=n(!0),Q=K[0],X=K[1],Z=i(void 0),$=l(function(e,o,t,r){A.onShowNotification?A.onShowNotification(e,o,t,r):console.log("[".concat(e.toUpperCase(),"] ").concat(o,": ").concat(t))},[A]),ee=l(function(e){A.onScrollToElement?A.onScrollToElement(e):(e.style.scrollMarginTop="20px",e.scrollIntoView({behavior:"smooth",block:"start"}))},[A]),oe=a(function(){var e=W.findIndex(function(e){return e.artifactId===q});return e>=0?e:0},[W,q]),te=W[oe];s(function(){Z.current=te},[te]),s(function(){var e;if(null==j?void 0:j.length){null===(e=A.onInitialize)||void 0===e||e.call(A),1===j.length&&X(!1),j.length>0&&!q&&O(k||j[0].artifactId);var o=c(v(j));M(o)}},[j,k]),s(function(){k&&k!==q&&O(k)},[k,q]),s(function(){if(te){var e=p(te,"");H(e)}},[null==te?void 0:te.artifactId]);var re=l(function(e,t){M(function(r){var n=o([],r,!0);if("APPROVED"===t.approval_status&&"APPROVED"!==r[e].approval_status){var i=u(r,t.artifactId);i&&O(i)}return n[e]=t,n})},[]),ne=l(function(e){var o=Z.current;if(o){var t=p(o,e);"NA"!==t&&(H(""),setTimeout(function(){H(t)},0))}},[]);m({userStoryForApproval:W,selectedUserStoryForApproval:te,userStoryIndex:oe,callbacks:A,labels:P,onSaveUserStory:re});var ie=e({height:_.containerHeight},_.useFullWidth?{width:"100%",marginLeft:0,marginRight:0}:{width:"calc(100% + 40px)",marginLeft:"-20px",marginRight:"-20px"}),le={userStoryForApproval:W,setUserStoryForApproval:M,selectedStoryArtifactId:q,setSelectedStoryArtifactId:O,selectedUserStoryIndex:oe,selectedUserStoryForApproval:te,currentContentId:L,setCurrentContentId:H,isEditingSegment:Y,setIsEditingSegment:J,isSidebarExpanded:Q,setIsSidebarExpanded:X,artifactTitleIds:S,config:_,labels:P,callbacks:A,isDisabled:N,handleSaveUserStory:re,handleUpdateContentId:ne,showNotification:$,scrollToElement:ee};return t(w.Provider,e({value:le},{children:t("div",e({className:"".concat(g.container," ").concat((null==F?void 0:F.container)||""),style:e(e({},ie),null===(f=null==D?void 0:D.approvalScreen)||void 0===f?void 0:f.wrapperContainer)},{children:T}))}))},{Sidebar:function(e){var o=e.Component,r=e.config,n=e.className,i=E(),l=i.isSidebarExpanded,a=i.selectedStoryArtifactId,s=i.setSelectedStoryArtifactId,d=i.userStoryForApproval,c=i.isEditingSegment,v=i.artifactTitleIds;return o?t(o,{isSidebarExpanded:l,selectedStoryArtifactId:a,setSelectedStoryArtifactId:s,userStoryForApproval:d,isEditingAnUserStorySegment:c,artifactTitleIds:v}):t(A,{config:r,className:n})},SidebarToggle:function(o){var r=o.OpenIcon,n=o.CloseIcon,i=o.className,l=void 0===i?"":i,a=E(),s=a.isSidebarExpanded,d=a.setIsSidebarExpanded,c=r||I,v=n||C;return t("div",e({className:"".concat(g.sidebarToggleWrapper," ").concat(l)},{children:t("button",e({onClick:function(){return d(function(e){return!e})},className:g.sidebarToggleBtn,"aria-label":s?"Collapse sidebar":"Expand sidebar",type:"button"},{children:t(s?v:c,{})}))}))},Content:function(o){var i,a,s,c,v,p,u,m,S,A,I,C,w,U,x,F,k,B,j,D,_,P,R,W,M,V,q,O=o.children,z=o.ButtonComponent,L=o.hideApproveAll,H=void 0!==L&&L,G=o.pageTitle,Y=void 0===G?"Review Generated Requirements":G,J=o.pageDescription,K=void 0===J?"This page displays automatically generated requirements for your project. Use this screen to review, refine, correct, or approve all generated requirements.":J,Q=E(),X=Q.selectedUserStoryForApproval,Z=Q.selectedUserStoryIndex,$=Q.artifactTitleIds,ee=Q.labels,oe=Q.config,te=Q.isDisabled,re=Q.isEditingSegment,ne=Q.handleSaveUserStory,ie=Q.setCurrentContentId,le=Q.showNotification,ae=d(),se=ae.customStyles,de=ae.customIcons,ce=n(!1),ve=ce[0],pe=ce[1],ue=l(function(){if(X)if(re)le("warn","Warning!",ee.unsavedChangesWarning,3e3);else{var e=f(X);ne(Z,e),ie("")}},[X,Z,re,ee,ne,ie,le]);if(!X)return null;var fe=$[Z]||"",me="APPROVED"===X.approval_status,Se=null!=(null==X?void 0:X.big_enough)&&!Number.isNaN(X.big_enough)&&!!(null==X?void 0:X.big_enough_decision_factors);return r("div",e({className:g.content,style:e({},null===(a=null===(i=null==se?void 0:se.approvalScreen)||void 0===i?void 0:i.content)||void 0===a?void 0:a.content),"data-lsc-ui-page-title":Y,"data-lsc-ui-page-description":K},{children:[r("div",e({className:g.header,style:e({},null===(v=null===(c=null===(s=null==se?void 0:se.approvalScreen)||void 0===s?void 0:s.body)||void 0===c?void 0:c.contentSegment)||void 0===v?void 0:v.header)},{children:[r("div",e({className:g.headerLeft,style:e({},null===(u=null===(p=null==se?void 0:se.approvalScreen)||void 0===p?void 0:p.content)||void 0===u?void 0:u.headerLeft)},{children:[r("div",e({className:g.headerMeta,style:e({},null===(A=null===(S=null===(m=null==se?void 0:se.approvalScreen)||void 0===m?void 0:m.body)||void 0===S?void 0:S.contentSegment)||void 0===A?void 0:A.headerMeta)},{children:[t(b,{size:16,color:(null===(w=null===(C=null===(I=null==se?void 0:se.approvalScreen)||void 0===I?void 0:I.body)||void 0===C?void 0:C.contentSegment)||void 0===w?void 0:w.bookMarkColor)||"#8C8C8C"}),t("h2",e({className:g.headerArtifactId,style:e({},null===(F=null===(x=null===(U=null==se?void 0:se.approvalScreen)||void 0===U?void 0:U.body)||void 0===x?void 0:x.contentSegment)||void 0===F?void 0:F.headerArtifactId)},{children:fe}))]})),t("p",e({className:g.headerTitle,style:e({},null===(j=null===(B=null===(k=null==se?void 0:se.approvalScreen)||void 0===k?void 0:k.body)||void 0===B?void 0:B.contentSegment)||void 0===j?void 0:j.headerTitle)},{children:null==X?void 0:X.title}))]})),r("div",e({className:null==g?void 0:g.containerStyle,style:null===(_=null===(D=null==se?void 0:se.approvalScreen)||void 0===D?void 0:D.BigEnoughStyles)||void 0===_?void 0:_.containerStyle},{children:[Se&&t("button",e({className:g.developerEffortButton,style:null===(R=null===(P=null==se?void 0:se.approvalScreen)||void 0===P?void 0:P.BigEnoughStyles)||void 0===R?void 0:R.buttonStyle,onClick:function(){return pe(!ve)}},{children:t(T,{})})),!H&&oe.showApproveAllButton&&t("div",e({className:g.headerRight},{children:me?t(h,{status:"APPROVED",label:ee.approved}):z?t(z,e({type:"fill",onClick:ue,isDisable:te,className:g.approveAllButton,overrideStyles:!0,lscUIAgent:{id:"approve-all",lscUIType:"button",lscUILabel:ee.approveAll,lscUIDescription:"Clicks this button to approve all generated requirements on the page in a single action.",lscUIWhenToApply:"Apply when the user wants to accept all requirements without reviewing them individually, or when they say phrases like 'approve everything', 'finalize all', 'accept all', or 'this looks good, approve all'."}},{children:r("div",e({className:g.approveAllContent},{children:[t(y,{size:16,color:"white"}),t("span",{children:ee.approveAll})]}))})):r("button",e({onClick:ue,disabled:te,className:g.approveAllButtonDefault,style:e({},null===(M=null===(W=null==se?void 0:se.approvalScreen)||void 0===W?void 0:W.content)||void 0===M?void 0:M.approveAllButtonDefault)},{children:[t(y,{size:16,color:"white"}),t("span",{children:ee.approveAll})]}))}))]}))]})),ve&&Se&&t("div",e({className:g.bigEnoughWrapper},{children:t(N,{customIcons:de,customStyles:null===(V=null==se?void 0:se.approvalScreen)||void 0===V?void 0:V.aiReasoningCitaionStyles,currentUserStory:X,panelStyles:null===(q=null==se?void 0:se.approvalScreen)||void 0===q?void 0:q.BigEnoughStyles,showPanel:ve})})),O]}))},Body:function(o){var n,i,a,s=o.children,c=o.EditorComponent,v=o.ViewerComponent,p=E(),u=p.selectedUserStoryForApproval,f=p.selectedUserStoryIndex,m=p.artifactTitleIds,h=p.handleSaveUserStory,y=d().customStyles,b=l(function(e){h(f,e)},[f,h]),A=l(function(o,t){var r;if(u){var n=e(e({},u),{sub_features:null===(r=u.sub_features)||void 0===r?void 0:r.map(function(e,r){return r===o?t:e})});h(f,n)}},[u,f,h]),I=l(function(o){var t;if(u){var r=e(e({},u),{sub_features:null===(t=u.sub_features)||void 0===t?void 0:t.filter(function(e,t){return t!==o})});h(f,r)}},[u,f,h]);if(!u)return null;var C=m[f]||"";return r("div",e({className:g.body,style:e({},null===(i=null===(n=null==y?void 0:y.approvalScreen)||void 0===n?void 0:n.body)||void 0===i?void 0:i.container)},{children:[t(S,{userStoryForApproval:u,artifactTitleId:C,onSaveMainStoryContent:b,EditorComponent:c,ViewerComponent:v}),null===(a=u.sub_features)||void 0===a?void 0:a.map(function(e,o){return t(S,{userStoryForApproval:e,artifactTitleId:"".concat(C," - ").concat(String.fromCharCode(65+o)),isSubFeature:!0,subFeatureIndex:o,onSaveSubFeature:A,onDeleteSubFeature:I,EditorComponent:c,ViewerComponent:v},e.artifactId)}),s]}))}});export{F as default};
|
|
2
2
|
//# sourceMappingURL=UserStoryApprovalScreen.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
var e={container:"UserStoryApprovalScreen-module_container__Hy5uc",sidebarToggleWrapper:"UserStoryApprovalScreen-module_sidebarToggleWrapper__Z9C-4",sidebarToggleBtn:"UserStoryApprovalScreen-module_sidebarToggleBtn__9edtf",content:"UserStoryApprovalScreen-module_content__VQ6Z9",header:"UserStoryApprovalScreen-module_header__zsOki",headerLeft:"UserStoryApprovalScreen-module_headerLeft__s-1Eq",headerMeta:"UserStoryApprovalScreen-module_headerMeta__3JPhW",headerArtifactId:"UserStoryApprovalScreen-module_headerArtifactId__xjOR9",headerTitle:"UserStoryApprovalScreen-module_headerTitle__xxkv-",headerRight:"UserStoryApprovalScreen-module_headerRight__BWc-W",approveAllButton:"UserStoryApprovalScreen-module_approveAllButton__HkH1f",approveAllContent:"UserStoryApprovalScreen-module_approveAllContent__-UTDs",approveAllButtonDefault:"UserStoryApprovalScreen-module_approveAllButtonDefault__MrKNR",body:"UserStoryApprovalScreen-module_body__aAJwQ"};!function(){if("undefined"==typeof document)return;const e=document.createElement("style");e.type="text/css";const r=window.__CSP_NONCE__||document.querySelector('meta[name="csp-nonce"]')?.content;r&&e.setAttribute("nonce",r),e.appendChild(document.createTextNode(".UserStoryApprovalScreen-module_container__Hy5uc{border:1px solid #d1d5db;display:flex;flex-direction:row;font-family:Inter,sans-serif;min-height:100vh}.UserStoryApprovalScreen-module_container__Hy5uc *{font-family:inherit}.UserStoryApprovalScreen-module_sidebarToggleBtn__9edtf{transition:color .2s ease}.UserStoryApprovalScreen-module_sidebarToggleBtn__9edtf:hover{opacity:.8}.UserStoryApprovalScreen-module_content__VQ6Z9{display:flex;flex:1;flex-direction:column;min-height:100%;overflow-y:auto;position:relative;width:100%}.UserStoryApprovalScreen-module_header__zsOki{align-items:center;background-color:#fff;border-bottom:1px solid #d1d5db;display:flex;flex-direction:row;justify-content:space-between;padding:16px 32px;position:sticky;top:0;z-index:50}.UserStoryApprovalScreen-module_headerLeft__s-1Eq{display:flex;flex-direction:column;gap:4px}.UserStoryApprovalScreen-module_headerMeta__3JPhW{align-items:center;color:#6932e2;display:flex;flex-direction:row;gap:8px}.UserStoryApprovalScreen-module_headerArtifactId__xjOR9{font-family:Inter,sans-serif;font-size:14px;font-weight:400;margin:0}.UserStoryApprovalScreen-module_headerTitle__xxkv-{font-family:Inter,sans-serif;font-size:16px;font-weight:600;margin:0}.UserStoryApprovalScreen-module_headerRight__BWc-W{align-items:center;display:flex}.UserStoryApprovalScreen-module_approveAllButton__HkH1f{height:40px}.UserStoryApprovalScreen-module_approveAllContent__-UTDs{align-items:center;display:flex;flex-direction:row;gap:4px;height:32px;padding:0 2px}.UserStoryApprovalScreen-module_approveAllContent__-UTDs span{color:#fff;font-family:Inter,sans-serif;font-size:14px;text-transform:none}.UserStoryApprovalScreen-module_approveAllButtonDefault__MrKNR{align-items:center;background:linear-gradient(115.1deg,#2546f0 -23.58%,#5928ed 74.92%);border:none;border-radius:8px;color:#fff;cursor:pointer;display:flex;flex-direction:row;font-family:Inter,sans-serif;font-size:14px;gap:4px;height:40px;padding:0 16px;transition:opacity .2s ease}.UserStoryApprovalScreen-module_approveAllButtonDefault__MrKNR:hover{opacity:.9}.UserStoryApprovalScreen-module_approveAllButtonDefault__MrKNR:disabled{cursor:not-allowed;opacity:.5}.UserStoryApprovalScreen-module_body__aAJwQ{display:flex;flex-direction:column;width:100%}.UserStoryApprovalScreen-module_sidebarToggleWrapper__Z9C-4{flex-shrink:0;height:100%;position:relative;width:0}.UserStoryApprovalScreen-module_sidebarToggleBtn__9edtf{align-items:center;background:none;border:none;cursor:pointer;display:flex;justify-content:center;left:0;margin:0;padding:0;position:absolute;top:50%;transform:translateY(-50%);transition:opacity .2s ease;z-index:10}.UserStoryApprovalScreen-module_sidebarToggleBtn__9edtf:focus{outline:none}"));const o=document.head||document.getElementsByTagName("head")[0]||document.documentElement;o&&o.appendChild(e)}();export{e as default};
|
|
1
|
+
var e={container:"UserStoryApprovalScreen-module_container__Hy5uc",sidebarToggleWrapper:"UserStoryApprovalScreen-module_sidebarToggleWrapper__Z9C-4",developerEffortButton:"UserStoryApprovalScreen-module_developerEffortButton__9EfUX",containerStyle:"UserStoryApprovalScreen-module_containerStyle__PS6Gn",sidebarToggleBtn:"UserStoryApprovalScreen-module_sidebarToggleBtn__9edtf",content:"UserStoryApprovalScreen-module_content__VQ6Z9",header:"UserStoryApprovalScreen-module_header__zsOki",headerLeft:"UserStoryApprovalScreen-module_headerLeft__s-1Eq",headerMeta:"UserStoryApprovalScreen-module_headerMeta__3JPhW",headerArtifactId:"UserStoryApprovalScreen-module_headerArtifactId__xjOR9",headerTitle:"UserStoryApprovalScreen-module_headerTitle__xxkv-",headerRight:"UserStoryApprovalScreen-module_headerRight__BWc-W",approveAllButton:"UserStoryApprovalScreen-module_approveAllButton__HkH1f",approveAllContent:"UserStoryApprovalScreen-module_approveAllContent__-UTDs",approveAllButtonDefault:"UserStoryApprovalScreen-module_approveAllButtonDefault__MrKNR",body:"UserStoryApprovalScreen-module_body__aAJwQ"};!function(){if("undefined"==typeof document)return;const e=document.createElement("style");e.type="text/css";const r=window.__CSP_NONCE__||document.querySelector('meta[name="csp-nonce"]')?.content;r&&e.setAttribute("nonce",r),e.appendChild(document.createTextNode(".UserStoryApprovalScreen-module_container__Hy5uc{border:1px solid #d1d5db;display:flex;flex-direction:row;font-family:Inter,sans-serif;min-height:100vh}.UserStoryApprovalScreen-module_container__Hy5uc *{font-family:inherit}.UserStoryApprovalScreen-module_developerEffortButton__9EfUX{background-color:#fff;border:1px solid #d1d5db;border-radius:.3rem;box-shadow:0 1px 2px #0000000d;cursor:pointer;margin-right:3px;padding:.4rem .8rem}.UserStoryApprovalScreen-module_containerStyle__PS6Gn{align-items:center;display:flex;gap:3px}.UserStoryApprovalScreen-module_sidebarToggleBtn__9edtf{transition:color .2s ease}.UserStoryApprovalScreen-module_sidebarToggleBtn__9edtf:hover{opacity:.8}.UserStoryApprovalScreen-module_content__VQ6Z9{display:flex;flex:1;flex-direction:column;min-height:100%;overflow-y:auto;position:relative;width:100%}.UserStoryApprovalScreen-module_header__zsOki{align-items:center;background-color:#fff;border-bottom:1px solid #d1d5db;display:flex;flex-direction:row;justify-content:space-between;padding:16px 32px;position:sticky;top:0;z-index:50}.UserStoryApprovalScreen-module_headerLeft__s-1Eq{display:flex;flex-direction:column;gap:4px}.UserStoryApprovalScreen-module_headerMeta__3JPhW{align-items:center;color:#6932e2;display:flex;flex-direction:row;gap:8px}.UserStoryApprovalScreen-module_headerArtifactId__xjOR9{font-family:Inter,sans-serif;font-size:14px;font-weight:400;margin:0}.UserStoryApprovalScreen-module_headerTitle__xxkv-{font-family:Inter,sans-serif;font-size:16px;font-weight:600;margin:0}.UserStoryApprovalScreen-module_headerRight__BWc-W{align-items:center;display:flex}.UserStoryApprovalScreen-module_approveAllButton__HkH1f{height:40px}.UserStoryApprovalScreen-module_approveAllContent__-UTDs{align-items:center;display:flex;flex-direction:row;gap:4px;height:32px;padding:0 2px}.UserStoryApprovalScreen-module_approveAllContent__-UTDs span{color:#fff;font-family:Inter,sans-serif;font-size:14px;text-transform:none}.UserStoryApprovalScreen-module_approveAllButtonDefault__MrKNR{align-items:center;background:linear-gradient(115.1deg,#2546f0 -23.58%,#5928ed 74.92%);border:none;border-radius:8px;color:#fff;cursor:pointer;display:flex;flex-direction:row;font-family:Inter,sans-serif;font-size:14px;gap:4px;height:40px;padding:0 16px;transition:opacity .2s ease}.UserStoryApprovalScreen-module_approveAllButtonDefault__MrKNR:hover{opacity:.9}.UserStoryApprovalScreen-module_approveAllButtonDefault__MrKNR:disabled{cursor:not-allowed;opacity:.5}.UserStoryApprovalScreen-module_body__aAJwQ{display:flex;flex-direction:column;width:100%}.UserStoryApprovalScreen-module_sidebarToggleWrapper__Z9C-4{flex-shrink:0;height:100%;position:relative;width:0}.UserStoryApprovalScreen-module_sidebarToggleBtn__9edtf{align-items:center;background:none;border:none;cursor:pointer;display:flex;justify-content:center;left:0;margin:0;padding:0;position:absolute;top:50%;transform:translateY(-50%);transition:opacity .2s ease;z-index:10}.UserStoryApprovalScreen-module_sidebarToggleBtn__9edtf:focus{outline:none}"));const o=document.head||document.getElementsByTagName("head")[0]||document.documentElement;o&&o.appendChild(e)}();export{e as default};
|
|
2
2
|
//# sourceMappingURL=UserStoryApprovalScreen.module.css.js.map
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{__assign as e,__spreadArray as n,__awaiter as t,__generator as i}from"tslib";import{useRef as r}from"react";import{processAIReasoningFromBlocks as o}from"../utils/proccess-stream.utils.js";function s(s){var a=s.setUserStory,u=s.setAiReasoning,c=s.setUserStoryCitations,l=s.onStreamingCompleted,d=s.isGraphQLCallInProgress,p=s.knowledgeBase,_=s.projectAnalyserSummary,m=s.dataSourceFiles,v=s.aiReasoning,g=s.setRedisValue,f=s.fetchCitationByBlock,b=r(new Set),h=r(new Set),N=r(null),y=r(null),k=r({gap_items_prompt:"",risk_items_prompt:""}),R=r(new Set);function S(r,o,s){var a,p;return t(this,void 0,void 0,function(){var t,_,m,v,g,R,S;return i(this,function(i){switch(i.label){case 0:t="",_="",i.label=1;case 1:return i.trys.push([1,3,4,7]),[4,f(r,s,o)];case 2:return m=i.sent(),u(function(t){var i,r=n([],t,!0);return null===(i=m.response.ai_reasonings)||void 0===i||i.forEach(function(n){var t=r.findIndex(function(e){return e.id===n.id});-1!==t&&(r[t]=e({},n))}),r}),t=(null===(a=m.response)||void 0===a?void 0:a.gap_items_prompt)||"",_=(null===(p=m.response)||void 0===p?void 0:p.risk_items_prompt)||"",(t||_)&&(k.current={gap_items_prompt:t,risk_items_prompt:_}),c(function(t){var i,r,o,s,a,u,c,l,d,p,_,v,g,f;return e(e({},t),{appmod_citations:n(n([],null!==(i=t.appmod_citations)&&void 0!==i?i:[],!0),null!==(r=m.response.appmod_citations)&&void 0!==r?r:[],!0),audio_citations:n(n([],null!==(o=t.audio_citations)&&void 0!==o?o:[],!0),null!==(s=m.response.audio_citations)&&void 0!==s?s:[],!0),file_citations:n(n([],null!==(a=t.file_citations)&&void 0!==a?a:[],!0),null!==(u=m.response.file_citations)&&void 0!==u?u:[],!0),image_citations:n(n([],null!==(c=t.image_citations)&&void 0!==c?c:[],!0),null!==(l=m.response.image_citations)&&void 0!==l?l:[],!0),rca_citations:n(n([],null!==(d=t.rca_citations)&&void 0!==d?d:[],!0),null!==(p=m.response.rca_citations)&&void 0!==p?p:[],!0),web_citations:n(n([],null!==(_=t.web_citations)&&void 0!==_?_:[],!0),null!==(v=m.response.web_citations)&&void 0!==v?v:[],!0),readfile_citations:n(n([],null!==(g=t.readfile_citations)&&void 0!==g?g:[],!0),null!==(f=m.response.readfile_citations)&&void 0!==f?f:[],!0)})}),[3,7];case 3:return v=i.sent(),console.error("Error in fetching Citations",v),[3,7];case 4:return console.log("Citations fetching completed",r.storyNumber,r.blockNumber),g="<STORY_NUMBER>".concat(r.storyNumber,"<BLOCK_NUMBER>").concat(r.blockNumber),h.current.add(g),console.log("Citations fetching completed",h.current.size,b.current.size,d.current),h.current.size!==b.current.size||d.current?[3,6]:(R=t||k.current.gap_items_prompt,S=_||k.current.risk_items_prompt,[4,l(R,S)]);case 5:i.sent(),b.current.clear(),h.current.clear(),N.current=null,y.current=null,k.current={gap_items_prompt:"",risk_items_prompt:""},i.label=6;case 6:return[7];case 7:return[2]}})})}return{processStreamContent:function(t,i,r){try{var s=JSON.stringify(t);if(y.current===s)return;y.current=s;var l=[],d=[];t=t.map(function(t){var r;t=e(e({},t),{subBlockNumber:null!==(r=t.subBlockNumber)&&void 0!==r?r:"1"});var s="".concat(t.storyNumber,"-").concat(t.blockNumber,"-").concat(t.subBlockNumber);if(R.current.has(s))return null;R.current.add(s);var a=o(t.value,t.blockNumber,t.storyNumber,t.description),u=a.outputText,p=a.reasonings,_=a.gpt_citation,m=a.processedDescription;c(function(n){var t;return _.length>0&&((null==n?void 0:n.gpt_citations)||(n.gpt_citations=[]),null===(t=n.gpt_citations)||void 0===t||t.push.apply(t,_)),e({},n)}),l.push.apply(l,p),d.push(n([],p,!0));var v="<STORY_NUMBER>".concat(t.storyNumber,"<BLOCK_NUMBER>").concat(t.blockNumber,"<SUB_BLOCK>").concat(t.subBlockNumber);return b.current.has(v)||(S(e(e({},t),{value:u,description:m}),p,i),b.current.add(v)),e(e({},t),{value:u,description:m})}).filter(Boolean),l.forEach(function(e){u(function(t){return t.find(function(n){return n.id===e.id})||t.push(e),n([],t,!0)})}),t.length>0&&t.map(function(e,t){var i=e.title,o=e.section,s=e.value,u=e.storyNumber,c=e.description,l=e.blockNumber,f=e.big_enough,b=e.big_enough_decision_factors;a(function(e){"STORY-".concat(u,"-").concat(l);var a,h,y,k,R,S,B,C,O,w=e.findIndex(function(e){return e.storyNumber===u});if("intro"===o)-1===w?e.push({artifactId:"STORY-".concat(u,"-").concat(l),title:i,value:s,description:c,storyNumber:u,sub_features:[],section:o,blockNumber:l,aiReasoning:d[t],big_enough:f,big_enough_decision_factors:b}):(e[w].value+=s,e[w].aiReasoning=e[w].aiReasoning||[],null===(y=null===(h=e[w])||void 0===h?void 0:h.aiReasoning)||void 0===y||y.push.apply(y,d[t]),e[w].big_enough=f,e[w].big_enough_decision_factors=b);else{e[w].sub_features||(e[w].sub_features=[]);var E=(null===(R=null===(k=e[w])||void 0===k?void 0:k.sub_features)||void 0===R?void 0:R.findIndex(function(e){return e.blockNumber===l}))||-1;if(-1===E)null===(B=null===(S=e[w])||void 0===S?void 0:S.sub_features)||void 0===B||B.push({artifactId:"STORY-".concat(u,"-").concat(l),title:i,value:s,storyNumber:u,blockNumber:l,section:o,aiReasoning:d[t],big_enough:f,big_enough_decision_factors:b});else{var U=null===(O=null===(C=null==e?void 0:e[w])||void 0===C?void 0:C.sub_features)||void 0===O?void 0:O[E];U.value=(U.value||"")+s,U.aiReasoning=U.aiReasoning||[],(a=U.aiReasoning).push.apply(a,d[t]),U.big_enough=f,U.big_enough_decision_factors=b}}var I=JSON.stringify(e);return N.current!==I&&(g({key:"streaming-redis-key-".concat(r),value:{mmvf_list:e,knowledgeBase:p,projectAnalyserSummary:_,dataSources_files:m,ai_reasonings:v}}),N.current=I),n([],e,!0)})})}catch(e){console.error("Error in processing Stream Content",e)}}}}export{s as useStreamContentHandler};
|
|
1
|
+
import{__assign as e,__spreadArray as n,__awaiter as t,__generator as i}from"tslib";import{useRef as r}from"react";import{processAIReasoningFromBlocks as o}from"../utils/proccess-stream.utils.js";function s(s){var a=s.setUserStory,u=s.setAiReasoning,c=s.setUserStoryCitations,l=s.onStreamingCompleted,d=s.isGraphQLCallInProgress,p=s.knowledgeBase,_=s.projectAnalyserSummary,m=s.dataSourceFiles,v=s.aiReasoning,g=s.setRedisValue,f=s.fetchCitationByBlock,b=r(new Set),h=r(new Set),N=r(null),y=r(null),k=r({gap_items_prompt:"",risk_items_prompt:""}),R=r(new Set);function S(r,o,s){var a,p;return t(this,void 0,void 0,function(){var t,_,m,v,g,R,S;return i(this,function(i){switch(i.label){case 0:t="",_="",i.label=1;case 1:return i.trys.push([1,3,4,7]),[4,f(r,s,o)];case 2:return m=i.sent(),u(function(t){var i,r=n([],t,!0);return null===(i=m.response.ai_reasonings)||void 0===i||i.forEach(function(n){var t=r.findIndex(function(e){return e.id===n.id});-1!==t&&n.gap.length>0&&n.reason.length>0&&(r[t]=e({},n))}),r}),t=(null===(a=m.response)||void 0===a?void 0:a.gap_items_prompt)||"",_=(null===(p=m.response)||void 0===p?void 0:p.risk_items_prompt)||"",(t||_)&&(k.current={gap_items_prompt:t,risk_items_prompt:_}),c(function(t){var i,r,o,s,a,u,c,l,d,p,_,v,g,f;return e(e({},t),{appmod_citations:n(n([],null!==(i=t.appmod_citations)&&void 0!==i?i:[],!0),null!==(r=m.response.appmod_citations)&&void 0!==r?r:[],!0),audio_citations:n(n([],null!==(o=t.audio_citations)&&void 0!==o?o:[],!0),null!==(s=m.response.audio_citations)&&void 0!==s?s:[],!0),file_citations:n(n([],null!==(a=t.file_citations)&&void 0!==a?a:[],!0),null!==(u=m.response.file_citations)&&void 0!==u?u:[],!0),image_citations:n(n([],null!==(c=t.image_citations)&&void 0!==c?c:[],!0),null!==(l=m.response.image_citations)&&void 0!==l?l:[],!0),rca_citations:n(n([],null!==(d=t.rca_citations)&&void 0!==d?d:[],!0),null!==(p=m.response.rca_citations)&&void 0!==p?p:[],!0),web_citations:n(n([],null!==(_=t.web_citations)&&void 0!==_?_:[],!0),null!==(v=m.response.web_citations)&&void 0!==v?v:[],!0),readfile_citations:n(n([],null!==(g=t.readfile_citations)&&void 0!==g?g:[],!0),null!==(f=m.response.readfile_citations)&&void 0!==f?f:[],!0)})}),[3,7];case 3:return v=i.sent(),console.error("Error in fetching Citations",v),[3,7];case 4:return console.log("Citations fetching completed",r.storyNumber,r.blockNumber),g="<STORY_NUMBER>".concat(r.storyNumber,"<BLOCK_NUMBER>").concat(r.blockNumber),h.current.add(g),console.log("Citations fetching completed",h.current.size,b.current.size,d.current),h.current.size!==b.current.size||d.current?[3,6]:(R=t||k.current.gap_items_prompt,S=_||k.current.risk_items_prompt,[4,l(R,S)]);case 5:i.sent(),b.current.clear(),h.current.clear(),N.current=null,y.current=null,k.current={gap_items_prompt:"",risk_items_prompt:""},i.label=6;case 6:return[7];case 7:return[2]}})})}return{processStreamContent:function(t,i,r){try{var s=JSON.stringify(t);if(y.current===s)return;y.current=s;var l=[],d=[];t=t.map(function(t){var r;t=e(e({},t),{subBlockNumber:null!==(r=t.subBlockNumber)&&void 0!==r?r:"1"});var s="".concat(t.storyNumber,"-").concat(t.blockNumber,"-").concat(t.subBlockNumber);if(R.current.has(s))return null;R.current.add(s);var a=o(t.value,t.blockNumber,t.storyNumber,t.description),u=a.outputText,p=a.reasonings,_=a.gpt_citation,m=a.processedDescription;c(function(n){var t;return _.length>0&&((null==n?void 0:n.gpt_citations)||(n.gpt_citations=[]),null===(t=n.gpt_citations)||void 0===t||t.push.apply(t,_)),e({},n)}),l.push.apply(l,p),d.push(n([],p,!0));var v="<STORY_NUMBER>".concat(t.storyNumber,"<BLOCK_NUMBER>").concat(t.blockNumber,"<SUB_BLOCK>").concat(t.subBlockNumber);return b.current.has(v)||(S(e(e({},t),{value:u,description:m}),p,i),b.current.add(v)),e(e({},t),{value:u,description:m})}).filter(Boolean),l.forEach(function(e){u(function(t){return t.find(function(n){return n.id===e.id})||t.push(e),n([],t,!0)})}),t.length>0&&t.map(function(e,t){var i=e.title,o=e.section,s=e.value,u=e.storyNumber,c=e.description,l=e.blockNumber,f=e.big_enough,b=e.big_enough_decision_factors;a(function(e){"STORY-".concat(u,"-").concat(l);var a,h,y,k,R,S,B,C,O,w=e.findIndex(function(e){return e.storyNumber===u});if("intro"===o)-1===w?e.push({artifactId:"STORY-".concat(u,"-").concat(l),title:i,value:s,description:c,storyNumber:u,sub_features:[],section:o,blockNumber:l,aiReasoning:d[t],big_enough:f,big_enough_decision_factors:b}):(e[w].value+=s,e[w].aiReasoning=e[w].aiReasoning||[],null===(y=null===(h=e[w])||void 0===h?void 0:h.aiReasoning)||void 0===y||y.push.apply(y,d[t]),e[w].big_enough=f,e[w].big_enough_decision_factors=b);else{e[w].sub_features||(e[w].sub_features=[]);var E=(null===(R=null===(k=e[w])||void 0===k?void 0:k.sub_features)||void 0===R?void 0:R.findIndex(function(e){return e.blockNumber===l}))||-1;if(-1===E)null===(B=null===(S=e[w])||void 0===S?void 0:S.sub_features)||void 0===B||B.push({artifactId:"STORY-".concat(u,"-").concat(l),title:i,value:s,storyNumber:u,blockNumber:l,section:o,aiReasoning:d[t],big_enough:f,big_enough_decision_factors:b});else{var U=null===(O=null===(C=null==e?void 0:e[w])||void 0===C?void 0:C.sub_features)||void 0===O?void 0:O[E];U.value=(U.value||"")+s,U.aiReasoning=U.aiReasoning||[],(a=U.aiReasoning).push.apply(a,d[t]),U.big_enough=f,U.big_enough_decision_factors=b}}var I=JSON.stringify(e);return N.current!==I&&(g({key:"streaming-redis-key-".concat(r),value:{mmvf_list:e,knowledgeBase:p,projectAnalyserSummary:_,dataSources_files:m,ai_reasonings:v}}),N.current=I),n([],e,!0)})})}catch(e){console.error("Error in processing Stream Content",e)}}}}export{s as useStreamContentHandler};
|
|
2
2
|
//# sourceMappingURL=useStreamContentHandler.js.map
|
|
@@ -259,7 +259,6 @@ export interface BigEnoughPanelCustomStyles {
|
|
|
259
259
|
dropdownStyle?: React.CSSProperties;
|
|
260
260
|
showPanelDropdownStyle?: React.CSSProperties;
|
|
261
261
|
showPanelBackdropStyles?: React.CSSProperties;
|
|
262
|
-
cardStyle?: React.CSSProperties;
|
|
263
262
|
}
|
|
264
263
|
interface IRequirementAIContext {
|
|
265
264
|
userStory: IUserStory[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RequirementAIWrapper.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/RequirementAI/components/RequirementAIWrapper/RequirementAIWrapper.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAA6B,SAAS,EAAkC,MAAM,OAAO,CAAC;AACpG,OAAO,EAAE,eAAe,EAAE,UAAU,EAAE,MAAM,sCAAsC,CAAC;AACnF,OAAO,EACL,uBAAuB,EACvB,0BAA0B,EAC1B,wBAAwB,EACxB,uBAAuB,EACvB,wBAAwB,EACxB,kBAAkB,EAClB,kBAAkB,EAClB,mBAAmB,EACnB,oBAAoB,EACpB,qBAAqB,EACrB,0BAA0B,EAC1B,qBAAqB,EACrB,YAAY,EACZ,cAAc,EACd,sBAAsB,EACvB,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAAE,cAAc,EAAE,gBAAgB,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BAAkB,CAAC;IAC9B,YAAY,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,cAAc,CAAC,kBAAkB,CAAC,CAAC,CAAC;IAEvE,eAAe,EAAE,MAAM,EAAE,CAAC;IAC1B,0BAA0B,EAAE,MAAM,EAAE,CAAC;IAErC,gBAAgB,EAAE,qBAAqB,CAAC,kBAAkB,CAAC,CAAC;IAC5D,YAAY,CAAC,EAAE,qBAAqB,CAAC,cAAc,CAAC,CAAC;IACrD,WAAW,CAAC,EAAE,qBAAqB,CAAC,aAAa,CAAC,CAAC;IACnD,cAAc,CAAC,EAAE,cAAc,CAAC;IAChC,8BAA8B,CAAC,EAAE,0BAA0B,CAAC;IAC5D,kBAAkB,CAAC,EAAE,eAAe,GAAG,IAAI,CAAC;CAC7C;AAID,QAAA,MAAM,oBAAoB,oTAmBvB,yBAAyB,4CAsE3B,CAAC;AAEF,eAAO,MAAM,gBAAgB,6BAU5B,CAAC;AAEF,eAAe,oBAAoB,CAAC"}
|
|
1
|
+
{"version":3,"file":"RequirementAIWrapper.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/RequirementAI/components/RequirementAIWrapper/RequirementAIWrapper.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAA6B,SAAS,EAAkC,MAAM,OAAO,CAAC;AACpG,OAAO,EAAE,eAAe,EAAE,UAAU,EAAE,MAAM,sCAAsC,CAAC;AACnF,OAAO,EACL,uBAAuB,EACvB,0BAA0B,EAC1B,wBAAwB,EACxB,uBAAuB,EACvB,wBAAwB,EACxB,kBAAkB,EAClB,kBAAkB,EAClB,mBAAmB,EACnB,oBAAoB,EACpB,qBAAqB,EACrB,0BAA0B,EAC1B,qBAAqB,EACrB,YAAY,EACZ,cAAc,EACd,sBAAsB,EACvB,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAAE,cAAc,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,MAAM,qCAAqC,CAAC;AAE3G,OAAO,EAAE,4BAA4B,E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Ae,EAAE,MAAM,EAAE,CAAC;IAC1B,0BAA0B,EAAE,MAAM,EAAE,CAAC;IAErC,gBAAgB,EAAE,qBAAqB,CAAC,kBAAkB,CAAC,CAAC;IAC5D,YAAY,CAAC,EAAE,qBAAqB,CAAC,cAAc,CAAC,CAAC;IACrD,WAAW,CAAC,EAAE,qBAAqB,CAAC,aAAa,CAAC,CAAC;IACnD,cAAc,CAAC,EAAE,cAAc,CAAC;IAChC,8BAA8B,CAAC,EAAE,0BAA0B,CAAC;IAC5D,kBAAkB,CAAC,EAAE,eAAe,GAAG,IAAI,CAAC;CAC7C;AAID,QAAA,MAAM,oBAAoB,oTAmBvB,yBAAyB,4CAsE3B,CAAC;AAEF,eAAO,MAAM,gBAAgB,6BAU5B,CAAC;AAEF,eAAe,oBAAoB,CAAC"}
|
package/dist/types/src/features/RequirementAI/components/UserStoryCard/UserStoryCard.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UserStoryCard.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/RequirementAI/components/UserStoryCard/UserStoryCard.tsx"],"names":[],"mappings":";AAmBA,OAAO,EAAE,UAAU,EAAE,MAAM,sCAAsC,CAAC;AAOlE,OAAO,EAAE,kBAAkB,EAAE,MAAM,qCAAqC,CAAC;AAMzE,UAAU,cAAc;IACpB,2BAA2B,CAAC,EAAE,OAAO,CAAC;IACtC,UAAU,EAAE,MAAM,CAAC;IACnB,eAAe,CAAC,EAAE,UAAU,CAAC;IAC7B,gBAAgB,EAAE,UAAU,CAAC;IAC7B,iBAAiB,EAAE,CAAC,UAAU,EAAE,UAAU,KAAK,IAAI,CAAC;IACpD,WAAW,EAAE,MAAM,CAAC;IACpB,YAAY,EAAE,MAAM,CAAC;IACrB,yBAAyB,EAAE,OAAO,CAAC;IACnC,cAAc,EAAE,OAAO,CAAC;IACxB,eAAe,EAAE,MAAM,CAAC;IACxB,oBAAoB,EAAE,OAAO,CAAC;IAC9B,2CAA2C;IAC3C,iBAAiB,EAAE,OAAO,CAAC;IAC3B,uBAAuB,CAAC,EAAE,CAAC,QAAQ,EAAE,KAAK,GAAG,KAAK,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IACrE,oBAAoB,CAAC,EAAE,CAAC,eAAe,EAAE,OAAO,EAAE,eAAe,EAAE,UAAU,EAAE,EAAE,UAAU,EAAE,MAAM,EAAE,kBAAkB,CAAC,EAAE,MAAM,EAAE,EAAE,aAAa,CAAC,EAAE,OAAO,KAAK,IAAI,CAAC;IACrK,uBAAuB,EAAE,CAAC,YAAY,EAAE,kBAAkB,GAAG,IAAI,EAAE,sBAAsB,EAAE,UAAU,EAAE,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,WAAW,KAAK,OAAO,CAAC,GAAG,CAAC,CAAC;IACnK,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,yBAAyB,CAAC,EAAE,OAAO,CAAC;IACpC,oBAAoB,CAAC,EAAE;QACnB,eAAe,CAAC,EAAE,OAAO,CAAC;QAC1B,cAAc,CAAC,EAAE,OAAO,CAAC;KAC5B,CAAC;CACL;AAID,wBAAgB,0BAA0B,CAAC,OAAO,EAAE,MAAM,GAAG,KAAK,CAAC,SAAS,EAAE,CAwC7E;AAkBD,eAAO,MAAM,SAAS,wVAkBnB,cAAc,
|
|
1
|
+
{"version":3,"file":"UserStoryCard.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/RequirementAI/components/UserStoryCard/UserStoryCard.tsx"],"names":[],"mappings":";AAmBA,OAAO,EAAE,UAAU,EAAE,MAAM,sCAAsC,CAAC;AAOlE,OAAO,EAAE,kBAAkB,EAAE,MAAM,qCAAqC,CAAC;AAMzE,UAAU,cAAc;IACpB,2BAA2B,CAAC,EAAE,OAAO,CAAC;IACtC,UAAU,EAAE,MAAM,CAAC;IACnB,eAAe,CAAC,EAAE,UAAU,CAAC;IAC7B,gBAAgB,EAAE,UAAU,CAAC;IAC7B,iBAAiB,EAAE,CA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OAAO,CAAC;IAC9B,iBAAiB,EAAE,OAAO,CAAC;IAC3B,uBAAuB,EAAE,CAAC,YAAY,EAAE,kBAAkB,GAAG,IAAI,EAAE,sBAAsB,EAAE,UAAU,EAAE,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,CAAC,EAAG,WAAW,KAAK,OAAO,CAAC,GAAG,CAAC,CAAC;IACpK,oBAAoB,CAAC,EAAE,CAAC,eAAe,EAAE,OAAO,EAAE,eAAe,EAAE,UAAU,EAAE,EAAE,UAAU,EAAE,MAAM,EAAE,kBAAkB,CAAC,EAAE,MAAM,EAAE,EAAE,aAAa,CAAC,EAAE,OAAO,KAAK,IAAI,CAAC;IACrK,uBAAuB,CAAC,EAAE,CAAC,QAAQ,EAAE,KAAK,GAAG,KAAK,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;IACrE,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,yBAAyB,CAAC,EAAE,OAAO,CAAC;IACpC,oBAAoB,CAAC,EAAE;QACnB,eAAe,CAAC,EAAE,OAAO,CAAC;QAC1B,cAAc,CAAC,EAAE,OAAO,CAAC;KAC5B,CAAC;CACL;AAED,eAAO,MAAM,oBAAoB,wPAAyP,MAAM,4CA0F/R,CAAA;AAED,eAAe,SAAS,CAAC"}
|
package/dist/types/src/features/RequirementAI/components/story-screen/BigEnoughPanel.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BigEnoughPanel.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/RequirementAI/components/story-screen/BigEnoughPanel.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,UAAU,EAAE,qBAAqB,EAAE,MAAM,sCAAsC,CAAC;AACzF,OAAO,EAA4B,uBAAuB,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAEjH,OAA6B,EAAE,0BAA0B,EAAoB,MAAM,8CAA8C,CAAC;AAIlI,eAAO,MAAM,cAAc;iBAEX,cAAc;kBACZ,uBAAuB;sBACpB,qBAAqB,GAAG,UAAU;;;
|
|
1
|
+
{"version":3,"file":"BigEnoughPanel.d.ts","sourceRoot":"","sources":["../../../../../../../src/features/RequirementAI/components/story-screen/BigEnoughPanel.tsx"],"names":[],"mappings":"AAGA,OAAO,EAAE,UAAU,EAAE,qBAAqB,EAAE,MAAM,sCAAsC,CAAC;AACzF,OAAO,EAA4B,uBAAuB,EAAE,cAAc,EAAE,MAAM,8BAA8B,CAAC;AAEjH,OAA6B,EAAE,0BAA0B,EAAoB,MAAM,8CAA8C,CAAC;AAIlI,eAAO,MAAM,cAAc;iBAEX,cAAc;kBACZ,uBAAuB;sBACpB,qBAAqB,GAAG,UAAU;;;6CAwEtD,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"proccess-stream.utils.d.ts","sourceRoot":"","sources":["../../../../../../src/features/RequirementAI/utils/proccess-stream.utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACzD,OAAO,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AACrD,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AAGhE,eAAO,MAAM,mBAAmB,UAAW,MAAM,sBA4BhD,CAAA;
|
|
1
|
+
{"version":3,"file":"proccess-stream.utils.d.ts","sourceRoot":"","sources":["../../../../../../src/features/RequirementAI/utils/proccess-stream.utils.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,2BAA2B,CAAC;AACzD,OAAO,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AACrD,OAAO,EAAE,eAAe,EAAE,MAAM,+BAA+B,CAAC;AAGhE,eAAO,MAAM,mBAAmB,UAAW,MAAM,sBA4BhD,CAAA;AAGD,wBAAgB,4BAA4B,CACxC,KAAK,EAAE,MAAM,EACb,WAAW,EAAE,MAAM,EACnB,WAAW,EAAE,MAAM,EACnB,WAAW,CAAC,EAAE,MAAM,GACrB;IACC,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,YAAY,EAAE,CAAC;IAC3B,YAAY,EAAE,WAAW,EAAE,CAAC;IAC5B,oBAAoB,EAAE,MAAM,CAAC;CAChC,CA+FA;AAED,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,GAAG,MAAM,CAU3E;AAED,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,GAAG,WAAW,CAkCvE;AAED,eAAO,MAAM,qBAAqB,UAAW,MAAM,iBAAiB,MAAM,SAAS,MAAM,WAIxF,CAAA;AAED,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAc9D"}
|