Skip to content

refactor(frontend): remove dead pve-modal selectors - #8926

Open
aglinxinyuan wants to merge 1 commit into
apache:mainfrom
aglinxinyuan:refactor/fe-global-styles-dead-selectors
Open

aglinxinyuan wants to merge 1 commit into
apache:mainfrom
aglinxinyuan:refactor/fe-global-styles-dead-selectors

Conversation

@aglinxinyuan

Copy link
Copy Markdown
Contributor

What changes were proposed in this PR?

Removes two selectors from the global stylesheet's Python-environment modal (.pve-modal) block that match no element. +1/−8 lines. There is no behaviour change.

  • The .pve-modal .system-header .subtitle rule. The only .system-header element (in the computing-unit selection modal) contains just a .title. No template, TS code or ng-zorro component produces a bare subtitle class.
  • The bare .package-inputs token in .package-header-row, .package-inputs. The rule and .package-header-row stay. The templates use system-package-inputs and user-package-inputs, and CSS matches whole class tokens, so neither matches .package-inputs.

Because these are global styles, the check covered every template and TS file in the app, plus ng-zorro's compiled output.

History

Introduced by #4484 (2026-05-01), "feat: Add Python Virtual Environment Support: Creating a Virtual Environment", which added the whole .pve-modal block
Usage removed by #4902 (2026-05-12), "Installing User Defined Packages", renamed the element to system-package-inputs, which left .package-inputs unmatched. .subtitle was never used

.package-inputs has been dead for nearly five months.

Any related issues, documentation, discussions?

Closes #8925

How was this PR tested?

No new tests; no spec referenced either selector.

From frontend/:

  • npx ng test --watch=false --include='**/user-venv.component.spec.ts' --include='**/computing-unit-selection.component.spec.ts': 2 files, 242 tests, all pass. These are the only specs that render the modal.
  • 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

No element has ever carried .subtitle under .system-header, and apache#4902
renamed the .package-inputs element to system-package-inputs. Drop the
.subtitle rule and the bare .package-inputs token; .package-header-row
and its rule stay.
Copilot AI balanced review requested due to automatic review settings October 8, 2026 08:20

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 8, 2026 09:09
@github-actions

github-actions Bot commented Oct 8, 2026

Copy link
Copy Markdown
Contributor

Automated Reviewer Suggestions

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

  • Contributors with relevant context: @SarahAsad23
    You can notify them by mentioning @SarahAsad23 in a comment.

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

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 92.59%. Comparing base (535b97a) to head (78ac794).
⚠️ Report is 2 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff            @@
##               main    #8926   +/-   ##
=========================================
  Coverage     92.59%   92.59%           
  Complexity     5040     5040           
=========================================
  Files          1252     1252           
  Lines         53587    53587           
  Branches       6673     6673           
=========================================
+ Hits          49619    49620    +1     
  Misses         2317     2317           
+ Partials       1651     1650    -1     
Flag Coverage Δ *Carryforward flag
access-control-service 77.38% <ø> (ø) Carriedforward from 535b97a
agent-service 99.16% <ø> (ø) Carriedforward from 535b97a
amber 88.07% <ø> (ø) Carriedforward from 535b97a
computing-unit-managing-service 60.48% <ø> (ø) Carriedforward from 535b97a
config-service 87.37% <ø> (ø) Carriedforward from 535b97a
file-service 81.53% <ø> (ø) Carriedforward from 535b97a
frontend 96.59% <ø> (+<0.01%) ⬆️
notebook-migration-service 83.73% <ø> (ø) Carriedforward from 535b97a
pyamber 98.58% <ø> (ø) Carriedforward from 535b97a
workflow-compiling-service 74.09% <ø> (ø) Carriedforward from 535b97a

*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.

@CaroFernando CaroFernando 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

This branch has not been deployed

No deployments
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 pve-modal selectors from the global stylesheet

4 participants