Repository navigation
Remove activity feed CSS that never applies (collate#9237) - #39665
harsh-vador wants to merge 1 commit into
Conversation
- quill-emoji.css: drop the 1,302 emoji sprite-position rules and the commented-out sprite rule they depended on. The emoji plugin inserts the unicode character and its items carry no ap-* class. - feed-editor.less: drop 54 toolbar rules for pickers and tooltips the feed editor's toolbar never renders (header/font/size/colour/align pickers, image input, video and formula tooltips). - activity-feed-tab.less: drop 10 selectors no component uses, and the unused .feed-widget-container part of a shared selector. - Delete feeds-widget.less (neither class used) and .feed-widget-padding (only set when isForFeedTab, which its one caller passes as false).
❌ PR checklist incompleteThis PR cannot be merged until the following are addressed on its linked issue:
The fields live on the linked issue in the Shipping project (open the issue → right sidebar → Projects). After you set them, re-run this check (or push a commit) — issue/project changes do not re-trigger it automatically. Maintainers can bypass this check by adding the |
Code Review ✅ Approved 🟢 Low riskRemoving unused activity-feed CSS and padding is limited to styling; the reported before/after comparison found no rendered style differences. Removes roughly 4,200 lines of activity feed CSS that never applies to rendered output, including unused emoji sprite rules, Quill toolbar overrides, dead selectors, and the VerificationRules No rules evaluated Functional validation Not enabledAuto-approval Not enabledFor more verification details, comment OptionsDisplay: compact → Showing compact verification results. Comment with these commands to change the behavior for this request:
Was this helpful? React with 👍 / 👎 | Powered by Gitar — free for open source |
Describe your changes:
Fixes https://github.com/open-metadata/openmetadata-collate/issues/9237
Removes about 4,200 lines of activity feed CSS that never apply to anything rendered. This is the first step of the activity feed cleanup: it is pure deletion, and nothing users see changes.
FeedEditor/quill-emoji.css: removes the 1,302 emoji sprite-position rules (.ap-*), plus the commented-out.aprule that used to load the sprite image.span.bem.bem-<name>.ap, so noap-*class ever reaches the DOM.FeedEditor/feed-editor.less: removes 54 rules for toolbar controls the feed editor never renders:TOOLBAR_ITEMScontains none of these, and this is the only Quill editor in OpenMetadata or Collate. Rules that also select live elements are kept.ActivityFeedTab/activity-feed-tab.less: removes 10 selectors that no component uses, and the unused.feed-widget-containerpart of a selector it shares with.widget-wrapper-container..feed-explore-heading,.activity-feed-reply-button,.activity-feed-card-message-right-panel,.activity-feed-reply-card-message,.activity-feed-comment-text,.activity-feed-reply-card-footer,.close-tab-icon,.reply-message,.owner-team-iconand.feed-filter-icon.feeds-widget.less: deleted, along with its import inActivityFeedTab. Neither of its classes is used..feed-widget-padding: removed. It was only applied whenisForFeedTabis true, and the one caller ofActivityFeedListV1Newpassesfalse."Unused" was checked against both this repo and openmetadata-collate, including class names built from template strings.
Not in this PR: 68 rules in
feed-editor.lessrepeatquill.snow.cssexactly. They are probably safe to remove, but they need their own visual check.Type of change:
High-level design:
N/A. This only deletes code: 8 files, 1 line added and 4,238 removed.
Tests:
Use cases covered
How it was verified
mainfiles). Both runs used the same server, data and viewport.main, 1,299.ap-*rules load, plus 109.ql-pickerrules and each of the removed selectors. On this branch there are 0, 59 (the rules fromquill.snow.cssitself) and 0 respectively. This shows the comparison really ran against both versions of the CSS..dark-mode.Unit tests
ActivityFeedTab,ActivityFeedListV1NewandFeedEditorsuites pass: 4 suites, 53 tests.tw-auditpass on the changed files, and leave no diff.tscreports no errors in the changed files.Screenshots
UI screen recording:
Not applicable: this PR only deletes CSS that renders nothing, so there is no behaviour to record. The before/after evidence is under Screenshots above.
Checklist:
Fixes <issue-number>: <short explanation>. The issue is in openmetadata-collate, so the title names it instead.Fixesabove (cross-repo).REVIEW.mdand fixed every 🔴 finding, or answered it on the line below. The only relevant item is "Collate builds against OpenMetadatamain": none of the removed classes is used in openmetadata-collate, and no test id, prop or export changed.docs/decisions/. Not applicable: nothing here is a decision another component depends on.🤖 Generated with Claude Code