Skip to content

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

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

aglinxinyuan wants to merge 2 commits 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

codecov-commenter commented Oct 8, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 92.31%. Comparing base (7426431) to head (cbb35f7).

Additional details and impacted files
@@            Coverage Diff            @@
##               main    #8926   +/-   ##
=========================================
  Coverage     92.30%   92.31%           
  Complexity     5046     5046           
=========================================
  Files          1260     1260           
  Lines         53887    53886    -1     
  Branches       6711     6710    -1     
=========================================
  Hits          49743    49743           
  Misses         2486     2486           
+ Partials       1658     1657    -1     
Flag Coverage Δ *Carryforward flag
access-control-service 77.38% <ø> (ø) Carriedforward from 988c655
agent-service 99.16% <ø> (ø) Carriedforward from 988c655
amber 87.32% <ø> (-0.01%) ⬇️ Carriedforward from 988c655
computing-unit-managing-service 60.48% <ø> (ø) Carriedforward from 988c655
config-service 87.37% <ø> (ø) Carriedforward from 988c655
file-service 82.00% <ø> (ø) Carriedforward from 988c655
frontend 96.55% <ø> (+<0.01%) ⬆️
notebook-migration-service 83.73% <ø> (ø) Carriedforward from 988c655
pyamber 98.53% <ø> (ø) Carriedforward from 988c655
workflow-compiling-service 72.43% <ø> (ø) Carriedforward from 988c655

*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

@kunwp1
kunwp1 requested a lite review from Copilot October 14, 2026 17:58

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

0 open findings

🧠 Review effort: Lite

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