fix(frontend): drop fixed height on about-page login card#4890
Conversation
|
@bobbai00 for frontend changes, please include a screenshot. |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #4890 +/- ##
============================================
- Coverage 43.16% 43.11% -0.05%
Complexity 2153 2153
============================================
Files 915 986 +71
Lines 32208 36910 +4702
Branches 3256 4213 +957
============================================
+ Hits 13902 15915 +2013
- Misses 17462 19844 +2382
- Partials 844 1151 +307
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
The login card sat absolute at top:140px / right:0, but its inner .form had height:350px hardcoded. With padding/margin/border, the box was ~426px tall — overflowing past the bullet list and overlapping the workflow GUI screenshot below (apache#4879). Drop the fixed height so the card sizes to its content (Sign In: 2 inputs + button; Sign Up: 3 inputs + button). The card stays where it was on the page; it's just no longer artificially tall. Closes apache#4879 Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
b1af15b to
a7cd7a6
Compare
75fe64a to
69761ce
Compare
Closes apache#4879 Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
69761ce to
c5809dc
Compare
- top: 110 -> 120 (final tuning) - nz-form-item margin-bottom: 24 -> 12 to reduce gap between input fields Closes apache#4879 Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
|
please add tests ;) |
Closes apache#4879 Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
bc1e9d4 to
2ffd559
Compare
|
need backport right @bobbai00 ? |
|
hmm I am afraid the test won't be able to backport. because the release branch is still using the old frontend testing framework. I suggest you separate to two PRs: 1 for the fix, backport it. 2 for the adding the test, only to main. |
9e6049a to
2ffd559
Compare
Splitted |
### What changes were proposed in this PR? The login card on `/about` (logged out) overlapped the workflow GUI screenshot (#4879). Root cause: `local-login.component.scss` had `height: 350px` hardcoded on the inner `.form`. Drop it so the card sizes to its content; also tighten the gap between input fields. Login: <img width="1817" height="1072" alt="Screenshot 2026-05-03 at 8 35 56 PM" src="https://github.com/user-attachments/assets/c4c3630e-d80e-447b-aad7-3fbe22f3e1c7" /> Sign Up: <img width="1829" height="1088" alt="Screenshot 2026-05-03 at 8 36 22 PM" src="https://github.com/user-attachments/assets/967ebf75-50e9-4664-9892-5a5bcb563ac7" /> ### Any related issues, documentation, discussions? Closes #4879. ### How was this PR tested? Visual check (screenshots above); AboutComponent smoke spec passes. ### Was this PR authored or co-authored using generative AI tooling? Generated-by: Claude Code (claude-opus-4-7) --------- (backported from commit aedc6e2) Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
|
Backport to |
### What changes were proposed in this PR? Adds 3 unit tests to `about.component.spec.ts` covering the `*ngIf` branches in `about.component.html` that codecov flagged on #4890: - `<texera-local-login>` is hidden when the user is logged in. - It is shown when the user is logged out and `config.env.localLogin` is true. - It is hidden when the user is logged out but `config.env.localLogin` is false. Provides `RouterTestingModule.withRoutes([])` plus a `NotificationService` spy via `useValue` so the real `LocalLoginComponent` renders under TestBed (matching the spy-mocked `NotificationService` pattern in `download.service.spec.ts` and `workflow-result-export.service.spec.ts`). ### Any related issues, documentation, discussions? Sibling of #4890 (the actual `/about` layout fix). Split out of #4890 because the release branch still uses the old frontend testing framework, and the layout fix needs to backport cleanly without dragging the new spec along. This PR targets `main` only — no backport. ### How was this PR tested? `yarn ng test --watch=false --include=\"src/app/hub/component/about/about.component.spec.ts\"` → 4 passed. ### Was this PR authored or co-authored using generative AI tooling? Generated-by: Claude Code (claude-opus-4-7) Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
What changes were proposed in this PR?
The login card on
/about(logged out) overlapped the workflow GUI screenshot (#4879). Root cause:local-login.component.scsshadheight: 350pxhardcoded on the inner.form. Drop it so the card sizes to its content; also tighten the gap between input fields.Login:

Sign Up:

Any related issues, documentation, discussions?
Closes #4879.
How was this PR tested?
Visual check (screenshots above); AboutComponent smoke spec passes.
Was this PR authored or co-authored using generative AI tooling?
Generated-by: Claude Code (claude-opus-4-7)