Skip to content
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

Merged
merged 4 commits into from
Feb 28, 2025

Conversation

Ranzeb
Copy link
Contributor

@Ranzeb Ranzeb commented Feb 26, 2025

No description provided.

.env.example Outdated
# Base Path where to deploy the UI
NEXT_PUBLIC_BASE_PATH=/
#NEXT_PUBLIC_BASE_PATH=/
Copy link
Member

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?

Copy link
Contributor Author

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
Comment on lines 44 to 47

#package-lock.json
package-lock.json

Copy link
Member

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.

@@ -104,6 +104,7 @@ const SignInWithCredentials = () => {
}}
>
{({ handleSubmit, dirtySinceLastSubmit, submitErrors, submitting }) => {
console.log("submit errors:" , submitErrors)
Copy link
Member

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.

@@ -58,6 +58,7 @@ export class Auth {
}

async login(input: LoginInput) {
console.log("Entered login: ", input)
Copy link
Member

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 ''
Copy link
Member

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?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

@@ -0,0 +1,2 @@
export const RedirectUrlSveltosKey = 'Sveltos'
export const RedirectUrlGrafanaKey = 'Grafana'
Copy link
Member

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.

@Ranzeb Ranzeb requested a review from prometherion February 27, 2025 13:15
@prometherion prometherion changed the title Feat: Applications delivery menu redirection link feat: applications delivery menu redirection link Feb 28, 2025
@prometherion prometherion merged commit 541d78d into clastix:main Feb 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants