-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: applications delivery menu redirection link #173
Conversation
.env.example
Outdated
# Base Path where to deploy the UI | ||
NEXT_PUBLIC_BASE_PATH=/ | ||
#NEXT_PUBLIC_BASE_PATH=/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why this has been commented?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Because otherwise doesn't work on localhost. I will remove the comment on .env.example
.gitignore
Outdated
|
||
#package-lock.json | ||
package-lock.json | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
AFAIK, the lock file must be committed to ensure reproducibility builds based on SHA.
src/app/auth/signin/page.tsx
Outdated
@@ -104,6 +104,7 @@ const SignInWithCredentials = () => { | |||
}} | |||
> | |||
{({ handleSubmit, dirtySinceLastSubmit, submitErrors, submitting }) => { | |||
console.log("submit errors:" , submitErrors) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Let's clean console.log
debug information unless we use a logger with a configurable verbosity level.
src/auth/server/auth.service.ts
Outdated
@@ -58,6 +58,7 @@ export class Auth { | |||
} | |||
|
|||
async login(input: LoginInput) { | |||
console.log("Entered login: ", input) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same as above: no debug messages.
if(token) | ||
return `${process.env.NEXT_PUBLIC_SVELTOS_URL}/sveltos/clusters?auth=${encodeURIComponent(token)}`; | ||
|
||
return '' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we disable the Sveltos Addon menu item in case of a missing token?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
src/constants/constants.ts
Outdated
@@ -0,0 +1,2 @@ | |||
export const RedirectUrlSveltosKey = 'Sveltos' | |||
export const RedirectUrlGrafanaKey = 'Grafana' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Missing new line at the end of the file.
No description provided.