Page MenuHomePhorge

Remove orphan CSS rules from phui-timeline-view.css
ClosedPublic

Authored by aklapper on Mar 24 2025, 11:38.
Tags
None
Referenced Files
F3803266: D25918.1745982687.diff
Tue, Apr 29, 03:11
F3777020: D25918.1745869929.diff
Sun, Apr 27, 19:52
F3757712: D25918.1745826765.diff
Sun, Apr 27, 07:52
F3757598: D25918.1745826726.diff
Sun, Apr 27, 07:52
F3757053: D25918.1745826532.diff
Sun, Apr 27, 07:48
F3753922: D25918.1745814246.diff
Sun, Apr 27, 04:24
F3733996: D25918.1745754719.diff
Sat, Apr 26, 11:51
F3712463: D25918.1745682096.diff
Fri, Apr 25, 15:41

Details

Summary
  • .phui-timeline-preview-header has never been used since introduction in rPdb66cd830d1b.
  • Only use of .phui-timeline-change-details was removed in direct followup rP4e8e035de006.
Test Plan

Grep the code.

Diff Detail

Repository
rP Phorge
Branch
cssBorderTypo (branched from master)
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 1884
Build 1884: arc lint + arc unit

Event Timeline

Thanks for this patch! Kind reminder: if you touched CSS or JavaScript, please remember to also run this:

./bin/celerity map

⚙️ Thanks! Bip bop I'm a bot - helping for T15209

Good news: we can be even more aggressive about that broken CSS rule, since it seems orphan.

Nothing in the source code seems to call it:

$ grep -R 'phui-timeline-preview' src/ resources/ support/ webroot/
webroot/rsrc/css/phui/phui-timeline-view.css:.phui-timeline-preview-header {

And only one commit introduces a line about it, and it's only the CSS definition:

$ git log -G 'phui-timeline-preview'
commit db66cd830d1be431424d9ce147381e02a08c5727

So, introduced only here, orphan since it's creation in 2014:

rPdb66cd830d1b: PHUITimelineView

→ LET'S DROP phui-timeline-preview-header

bwahaha


Anyway the proposed change seems like reviving a dead horse, since the supposed syntax should be:

border: {width} {style} {color};

But the syntax A/B is (still) this:

border: {style} {color} {width};

Anyway I assume that the original intention was set top+bottom = 1px, and left+right = 0 but it cannot work like that. Anyway, who cares, we will never know. Let's drop that.

This revision now requires changes to proceed.Thu, Apr 24, 09:16

git rebase master only; still Needs Revision

Remove two orphan CSS rules from phui-timeline-view.css

aklapper retitled this revision from Fix invalid CSS border value for .phui-timeline-preview-header to Remove orphan CSS rules from phui-timeline-view.css.Thu, Apr 24, 15:26
aklapper edited the summary of this revision. (Show Details)
aklapper edited the test plan for this revision. (Show Details)
This revision is now accepted and ready to land.Thu, Apr 24, 15:57