Skip to content

SigNoz is an open-source, OpenTelemetry-native observability platform for your team and their AI agents. Get logs, metrics, and traces in one tool with features like APM, distributed tracing, log management, infra monitoring, etc. Combined with SigNoz MCP and a native AI teammate (in SigNoz Cloud) it helps you build more resilient apps.

chore: name field is hidden when empty name is received from invite details api (#1036)

palash-signoz63693a418540
diff --git a/frontend/src/pages/SignUp/SignUp.tsx b/frontend/src/pages/SignUp/SignUp.tsx
index d45b14b72e..9a3a967738 100644
--- a/frontend/src/pages/SignUp/SignUp.tsx
+++ b/frontend/src/pages/SignUp/SignUp.tsx
@@ -173,6 +173,11 @@ function SignUp({ version }: SignUpProps): JSX.Element {
setFunction(value);
};
+ const getIsNameVisible = (): boolean =>
+ !(firstName.length === 0 && !isPreferenceVisible);
+
+ const isNameVisible = getIsNameVisible();
+
return (
<WelcomeLeftContainer version={version}>
<FormWrapper>
@@ -194,19 +199,22 @@ function SignUp({ version }: SignUpProps): JSX.Element {
/>
</div>
- <div>
- <Label htmlFor="signupFirstName">First Name</Label>
- <Input
- placeholder="Mike"
- value={firstName}
- onChange={(e): void => {
- setState(e.target.value, setFirstName);
- }}
- required
- id="signupFirstName"
- disabled={isDetailsDisable}
- />
- </div>
+ {isNameVisible && (
+ <div>
+ <Label htmlFor="signupFirstName">First Name</Label>
+ <Input
+ placeholder="Mike"
+ value={firstName}
+ onChange={(e): void => {
+ setState(e.target.value, setFirstName);
+ }}
+ required
+ id="signupFirstName"
+ disabled={isDetailsDisable}
+ />
+ </div>
+ )}
+
<div>
<Label htmlFor="organizationName">Organization Name</Label>
<Input