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

fix: blank /change-password page #2596

Merged
merged 1 commit into from
Aug 6, 2024
Merged

fix: blank /change-password page #2596

merged 1 commit into from
Aug 6, 2024

Conversation

yomybaby
Copy link
Member

@yomybaby yomybaby commented Aug 1, 2024

TL;DR

This PR fixed blank /chage-password page
image.png

Removed lines of code related to setting the visibility of appBody in various components. appBody has been deleted in #2350

What changed?

  • In backend-ai-change-forgot-password-view.ts, removed code setting this.webUIShell.appBody.style.visibility.
  • In backend-ai-edu-applauncher.ts, removed the commented-out code for setting webUIShell.appBody.style.visibility.
  • In backend-ai-email-verification-view.ts, removed code setting this.webUIShell.appBody.style.visibility.
  • In backend-ai-console.d.ts, removed the declaration of appBody.

How to test?

  1. Access /change-password?token=sometoken page.
  2. If you want to get the link, you can use cloud.backend.ai

Why make this change?

The visibility setting of appBody was redundant and possibly causing issues with page rendering.

Copy link

graphite-app bot commented Aug 1, 2024

Your org requires the Graphite merge queue for merging into main

Add the label “flow:merge-queue” to the PR and Graphite will automatically add it to the merge queue when it’s ready to merge. Or use the label “flow:hotfix” to add to the merge queue as a hot fix.

You must have a Graphite account and log in to Graphite in order to use the merge queue. Sign up using this link.

@github-actions github-actions bot added the size:XS ~10 LoC label Aug 1, 2024
Copy link
Member Author

yomybaby commented Aug 1, 2024

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @yomybaby and the rest of your teammates on Graphite Graphite

@yomybaby yomybaby changed the title fix: remove code reading appBody fix: blank /change-password page Aug 1, 2024
@yomybaby yomybaby marked this pull request as ready for review August 1, 2024 05:23
@@ -157,7 +157,6 @@ export default class BackendAiEduApplauncher extends BackendAIPage {
async _initClient(apiEndpoint: string) {
this.notification = globalThis.lablupNotification;
const webUIShell: any = document.querySelector('#webui-shell');
// webUIShell.appBody.style.visibility = 'visible';
Copy link

@why-arong why-arong Aug 1, 2024

Choose a reason for hiding this comment

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

You deleted everything else, but why did you just annotate this line instead of erasing it? Did you leave it because it might be needed later?

Copy link
Contributor

Choose a reason for hiding this comment

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

It looks like the code was cleared, not annotated out.

Copy link

@why-arong why-arong left a comment

Choose a reason for hiding this comment

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

Screenshot 2024-08-01 at 4 13 19 PM

I confirmed that it works properly!! 😀

Copy link
Contributor

@ironAiken2 ironAiken2 left a comment

Choose a reason for hiding this comment

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

LGTM

@@ -157,7 +157,6 @@ export default class BackendAiEduApplauncher extends BackendAIPage {
async _initClient(apiEndpoint: string) {
this.notification = globalThis.lablupNotification;
const webUIShell: any = document.querySelector('#webui-shell');
// webUIShell.appBody.style.visibility = 'visible';
Copy link
Contributor

Choose a reason for hiding this comment

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

It looks like the code was cleared, not annotated out.

Copy link

graphite-app bot commented Aug 6, 2024

Merge activity

### TL;DR

This PR fixed blank `/chage-password` page
![image.png](https://graphite-user-uploaded-assets-prod.s3.amazonaws.com/XqC2uNFuj0wg8I60sMUh/69f6a035-0d9a-4a9d-90b1-4edf82257576.png)

Removed lines of code related to setting the visibility of `appBody` in various components. `appBody` has been deleted in #2350

### What changed?

- In `backend-ai-change-forgot-password-view.ts`, removed code setting `this.webUIShell.appBody.style.visibility`.
- In `backend-ai-edu-applauncher.ts`, removed the commented-out code for setting `webUIShell.appBody.style.visibility`.
- In `backend-ai-email-verification-view.ts`, removed code setting `this.webUIShell.appBody.style.visibility`.
- In `backend-ai-console.d.ts`, removed the declaration of `appBody`.

### How to test?

1. Access `/change-password?token=sometoken` page.
2. If you want to get the link, you can use `cloud.backend.ai`

### Why make this change?

The visibility setting of `appBody` was redundant and possibly causing issues with page rendering.
@graphite-app graphite-app bot merged commit 38f9106 into main Aug 6, 2024
5 checks passed
@graphite-app graphite-app bot deleted the fix/remove-appbody branch August 6, 2024 07:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size:XS ~10 LoC
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants