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.

Fix SIG-55

Himanshu DIxit81a1d2bb37dd
diff --git a/frontend/src/components/Signup.tsx b/frontend/src/components/Signup.tsx
index 3797e40b15..19d1d51624 100644
--- a/frontend/src/components/Signup.tsx
+++ b/frontend/src/components/Signup.tsx
@@ -22,33 +22,16 @@ const Signup = (props: SignUpProps) => {
const updateForm = (name: any, target: any, valueAttr = "value") => {
/* Validate password (if applicable) */
- if (name === "password") {
- let password = target[valueAttr];
- const valid = password.length >= 8;
- setFormState({
- ...formState,
- password: { ...formState.password, valid, value: target[valueAttr] },
- });
- } else if (name === "firstName") {
+ if (name === "firstName") {
setFormState({
...formState,
firstName: { ...formState.firstName, value: target[valueAttr] },
});
- } else if (name === "companyName") {
- setFormState({
- ...formState,
- companyName: { ...formState.companyName, value: target[valueAttr] },
- });
} else if (name === "email") {
setFormState({
...formState,
email: { ...formState.email, value: target[valueAttr] },
});
- } else if (name === "emailOptIn") {
- setFormState({
- ...formState,
- emailOptIn: { ...formState.emailOptIn, value: target[valueAttr] },
- });
}
};
@@ -59,41 +42,14 @@ const Signup = (props: SignUpProps) => {
setState({ ...state, submitted: true });
- /* Password has custom validation */
- if (!formState.password.valid) {
- // if (passwordInput.current){
- // passwordInput.current.focus()
- // }
- // return
- }
const payload = {
first_name: formState.firstName,
- company_name: formState.companyName || undefined,
email: formState.email,
- password: formState.password,
- email_opt_in: formState.emailOptIn.value,
- // plan, // Pass it along if on QS, won't have any effect unless on multitenancy
};
- // createAccount(payload)
-
- // axios.get(`https://jsonplaceholder.typicode.com/users`)
- // .then(res => {
- // console.log(res);
- // console.log(res.data);
- // })
let texttolog = JSON.stringify(payload);
- // submitForm.get('sendMessage', {
- // params: {
- // chat_id: 351813222,
- // text:texttolog,
- // }
- // }
- // ).then(res => {
- // console.log(res);
- // console.log(res.data);
- // })
+
submitForm.post("user?email=" + texttolog).then((res) => {
console.log(res);
@@ -162,29 +118,7 @@ const Signup = (props: SignUpProps) => {
/>
</div>
- <div
- className={`input-set ${
- state.submitted && !formState.password.valid ? "errored" : ""
- }`}
- >
- <label htmlFor="signupPassword">Password</label>
- <Input.Password
- value={formState.password.value}
- onChange={(e) => updateForm("password", e.target)}
- required
- ref={passwordInput}
- // disabled={accountLoading}
- id="signupPassword"
- />
- <Suspense fallback={<span />}>
- {/* <PasswordStrength password={formState.password.value} /> */}
- </Suspense>
- {!formState.password && (
- <span className="caption">
- Your password must have at least 8 characters.
- </span>
- )}
- </div>
+
<div className="input-set">
<label htmlFor="signupFirstName">First Name</label>
@@ -199,27 +133,6 @@ const Signup = (props: SignUpProps) => {
/>
</div>
- <div className="input-set">
- <label htmlFor="signupCompanyName">Company or Project</label>
- <Input
- placeholder="Netflix"
- value={formState.companyName.value}
- onChange={(e) => updateForm("companyName", e.target)}
- // disabled={accountLoading}
- id="signupCompanyName"
- />
- </div>
-
- <div>
- <Checkbox
- checked={formState.emailOptIn.value}
- onChange={(e) => updateForm("emailOptIn", e.target, "checked")}
- // disabled={accountLoading}
- >
- Send me occasional emails about security and product updates. You may
- unsubscribe at any time.
- </Checkbox>
- </div>
<div className="text-center space-top">
<Button
type="primary"
diff --git a/frontend/src/components/settings/settingsPage.tsx b/frontend/src/components/settings/settingsPage.tsx
index 65cf5644ae..2b7d7204e1 100644
--- a/frontend/src/components/settings/settingsPage.tsx
+++ b/frontend/src/components/settings/settingsPage.tsx
@@ -48,7 +48,7 @@ const SettingsPage = (props: SettingsPageProps) => {
<Space style={{ marginLeft: 60, marginTop: 48 }}>
<Alert
- message="Mail us at [email protected] to change your plan or retention period"
+ message="Mail us at [email protected] to get instructions on how to change your retention period"
type="info"
/>
</Space>
diff --git a/frontend/src/components/traces/TraceGraph.tsx b/frontend/src/components/traces/TraceGraph.tsx
index 8ce70abaf1..a5950a70b3 100644
--- a/frontend/src/components/traces/TraceGraph.tsx
+++ b/frontend/src/components/traces/TraceGraph.tsx
@@ -73,10 +73,10 @@ const _TraceGraph = (props: TraceGraphProps) => {
return (
<Row gutter={{ xs: 8, sm: 16, md: 24, lg: 32 }}>
- <Col md={8} sm={24}>
- <TraceGraphColumn />
- </Col>
- <Col md={16} sm={24}>
+ {/*<Col md={8} sm={24}>*/}
+ {/* <TraceGraphColumn />*/}
+ {/*</Col>*/}
+ <Col md={24} sm={24}>
{/* <Card style={{ width: 640 }}> */}
<Space direction="vertical" size="middle">
<Card bodyStyle={{ padding: 80 }} style={{ height: 320 }}>