Skip to content

refactor(frontend): remove dead landing page styles - #9069

Merged
aglinxinyuan merged 1 commit into
apache:mainfrom
aglinxinyuan:refactor/fe-landing-page-dead-styles
Oct 24, 2026
Merged

aglinxinyuan merged 1 commit into
apache:mainfrom
aglinxinyuan:refactor/fe-landing-page-dead-styles

Conversation

@aglinxinyuan

Copy link
Copy Markdown
Contributor

What changes were proposed in this PR?

Removes three rules from the hub landing page's stylesheet that style nothing: .search-bar, .section-intro-img and .browse-section. −15 lines. There is no behaviour change.

The component uses emulated encapsulation, so these rules can only match its own template. That template uses only landing-page-container, section-intro and section-intro-text, and has no class bindings or projected content. The browse sections are <texera-browse-section> elements, which the .browse-section class selector doesn't match. The rules for the intro block and its text stay.

History

Introduced by #2928 (2024-10-29), "Add landing page", with all three rules
Usage removed by #4134 (2026-01-14), "fix: restore proper license headers for third-party code", removed the <img class="section-intro-img"> hub icon. .search-bar and .browse-section were never used: no version of the template has had either class

.search-bar and .browse-section have never applied in the two years since they were added; .section-intro-img has been dead for nine months.

Any related issues, documentation, discussions?

Closes #9066

How was this PR tested?

No new tests; no spec referenced these classes.

From frontend/:

  • npx ng test --watch=false --include='**/landing-page.component.spec.ts': 17 tests, all pass. No other spec renders the component.
  • yarn format:ci: clean.
  • npx ng build: success.

Was this PR authored or co-authored using generative AI tooling?

Generated-by: Claude Code (Claude Opus 5.5)

🤖 Generated with Claude Code

The landing page template has never used .search-bar or
.browse-section (the sections are <texera-browse-section> elements),
and apache#4134 removed the only .section-intro-img element with the hub
icon. Emulated encapsulation keeps the rules from matching anything
else. Delete the three rules.
Copilot AI balanced review requested due to automatic review settings October 21, 2026 04:07
@aglinxinyuan aglinxinyuan self-assigned this Oct 21, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@aglinxinyuan
aglinxinyuan requested a review from kunwp1 October 21, 2026 04:16
@github-actions

Copy link
Copy Markdown
Contributor

Automated Reviewer Suggestions

Based on the git blame history of the changed files, we recommend the following reviewers:

  • No candidates found from git blame history.

@github-actions github-actions Bot added refactor Refactor the code frontend Changes related to the frontend GUI labels Oct 21, 2026
@codecov-commenter

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 92.33%. Comparing base (22b82a2) to head (741f7a9).

Additional details and impacted files
@@             Coverage Diff              @@
##               main    #9069      +/-   ##
============================================
- Coverage     92.33%   92.33%   -0.01%     
  Complexity     5045     5045              
============================================
  Files          1261     1261              
  Lines         54120    54120              
  Branches       6768     6768              
============================================
- Hits          49974    49972       -2     
  Misses         2486     2486              
- Partials       1660     1662       +2     
Flag Coverage Δ *Carryforward flag
access-control-service 77.38% <ø> (ø) Carriedforward from 22b82a2
agent-service 99.16% <ø> (ø) Carriedforward from 22b82a2
amber 87.31% <ø> (ø) Carriedforward from 22b82a2
computing-unit-managing-service 60.48% <ø> (ø) Carriedforward from 22b82a2
config-service 87.37% <ø> (ø) Carriedforward from 22b82a2
file-service 82.00% <ø> (ø) Carriedforward from 22b82a2
frontend 96.55% <ø> (-0.01%) ⬇️
notebook-migration-service 83.73% <ø> (ø) Carriedforward from 22b82a2
pyamber 98.57% <ø> (ø) Carriedforward from 22b82a2
workflow-compiling-service 72.43% <ø> (ø) Carriedforward from 22b82a2

*This pull request uses carry forward flags. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@aglinxinyuan
aglinxinyuan requested a review from mengw15 October 22, 2026 00:29

@mengw15 mengw15 left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

LGTM

@kunwp1
kunwp1 requested a lite review from Copilot October 22, 2026 17:31

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Warning

Copilot couldn't run its full agentic review because it didn't start before the timeout. Make sure your repository has a runner available, or add a copilot-code-review.yml file specifying one with the runs-on attribute. See the docs for more details.

Copilot review overview

No open issues 🎉

Review effort: Lite

@aglinxinyuan
aglinxinyuan added this pull request to the merge queue Oct 24, 2026
Merged via the queue into apache:main with commit e02eeb0 Oct 24, 2026
28 checks passed
@aglinxinyuan
aglinxinyuan deleted the refactor/fe-landing-page-dead-styles branch October 24, 2026 04:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

frontend Changes related to the frontend GUI refactor Refactor the code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Remove dead styles from the hub landing page

5 participants