Kusuma04-dev commented on code in PR #3119:
URL: 
https://github.com/apache/incubator-kie-tools/pull/3119#discussion_r2077723549


##########
packages/online-editor/src/editor/Toolbar/Accelerators/AcceleratorModal.tsx:
##########
@@ -62,9 +133,39 @@ export function AcceleratorModal(props: Props) {
       </Title>
       <Grid style={{ margin: "1rem 0" }} hasGutter>
         {props.isApplying && (
-          <GridItem span={12}>
-            <i>{i18n.accelerators.acceleratorDescription}</i>
-          </GridItem>
+          <>
+            <GridItem span={12}>
+              <i>{i18n.accelerators.acceleratorDescription}</i>
+            </GridItem>
+
+            <GridItem span={12}>
+              <label htmlFor="auth-session-select">Select Authentication 
Session:</label>
+              <AuthSessionSelect
+                menuAppendTo={document.body}
+                title={"Select authentication session"}
+                authSessionId={selectedAuthSessionId}
+                setAuthSessionId={setSelectedAuthSessionId}
+                isPlain={false}
+                filter={gitAuthSessionSelectFilter()}
+                
showOnlyThisAuthProviderGroupWhenConnectingToNewAccount={undefined}
+                hideConnectToAccountButton={true}
+              />
+            </GridItem>
+
+            {selectedAuthSession && (
+              <GridItem span={12}>
+                {isCompatibleAuthSession ? (
+                  <Alert variant="info" isInline title="Authentication Status">
+                    Using {selectedAuthProvider?.domain} credentials for 
{(selectedAuthSession as GitAuthSession).login}
+                  </Alert>
+                ) : (
+                  <Alert variant="danger" isInline title="Authentication 
Status">
+                    Selected auth session is not compatible with repository 
domain: {urlDomain}
+                  </Alert>

Review Comment:
   Yeah, they'll know based on the Apply button, but I thought showing this 
info might give users a bit more clarity about which account is being used. But 
I'm okay with simplifying it if we feel it's redundant.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to