Skip to content

Remove activity feed CSS that never applies (collate#9237) - #39665

Closed
harsh-vador wants to merge 1 commit into
mainfrom
chore/feed-dead-css
Closed

harsh-vador wants to merge 1 commit into
mainfrom
chore/feed-dead-css

Conversation

@harsh-vador

@harsh-vador harsh-vador commented Dec 3, 2026 •

Copy link
Copy Markdown
Contributor

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 .ap rule that used to load the sprite image.

    • The emoji plugin inserts the unicode character itself.
    • Its picker items render as span.bem.bem-<name>.ap, so no ap-* class ever reaches the DOM.
  • FeedEditor/feed-editor.less: removes 54 rules for toolbar controls the feed editor never renders:

    • the header, font, size, colour and align pickers;
    • the image file input;
    • the video and formula tooltips.

    TOOLBAR_ITEMS contains 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-container part of a selector it shares with .widget-wrapper-container.

    • The 10 selectors: .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-icon and .feed-filter-icon.
  • feeds-widget.less: deleted, along with its import in ActivityFeedTab. Neither of its classes is used.

  • .feed-widget-padding: removed. It was only applied when isForFeedTab is true, and the one caller of ActivityFeedListV1New passes false.

"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.less repeat quill.snow.css exactly. They are probably safe to remove, but they need their own visual check.

feed-dead-css-evidence

Type of change:

  • Improvement

High-level design:

N/A. This only deletes code: 8 files, 1 line added and 4,238 removed.

Tests:

Use cases covered

  • Classic mode: the feed tab, an open thread, the reply editor, the emoji picker, and inserting an emoji.
  • AI mode: an asset's Activity tab and the Inbox.

How it was verified

  • I ran a Vite dev server from this branch against a local backend and captured each state above twice: once on this branch, and once with the changes stashed (the main files). Both runs used the same server, data and viewport.
  • Rules loaded in the page. On main, 1,299 .ap-* rules load, plus 109 .ql-picker rules and each of the removed selectors. On this branch there are 0, 59 (the rules from quill.snow.css itself) and 0 respectively. This shows the comparison really ran against both versions of the CSS.
  • Computed styles. I compared 23 properties on every rendered element (about 5,300 element snapshots across the 7 states). There are 0 differences.
  • Screenshots: see below. Only light mode was captured. None of the removed rules is scoped to .dark-mode.

Unit tests

  • The ActivityFeedTab, ActivityFeedListV1New and FeedEditor suites pass: 4 suites, 53 tests.
  • ESLint, Prettier, organize-imports, the license header and tw-audit pass on the changed files, and leave no diff. tsc reports 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:

  • I have read the CONTRIBUTING document.
  • My PR title is Fixes <issue-number>: <short explanation>. The issue is in openmetadata-collate, so the title names it instead.
  • My PR is linked to a GitHub issue via Fixes above (cross-repo).
  • I have commented on my code, particularly in hard-to-understand areas. No code needed comments.
  • For JSON Schema changes: I updated the migration scripts or explained why it is not needed. Not applicable.
  • For a UI feature or feature task: as part of PR creation, I ran the PR build in Docker with sample data and embedded a verified GitHub-hosted recording plus build/health evidence above (or explained why this requirement is not applicable). Not applicable, explained above.
  • I have added tests (unit / integration / Playwright as applicable) and listed them above. No new tests: the change removes code without changing behaviour, and the existing suites and the style comparison above cover it.
  • Self-review: I reviewed the final diff against REVIEW.md and fixed every 🔴 finding, or answered it on the line below. The only relevant item is "Collate builds against OpenMetadata main": none of the removed classes is used in openmetadata-collate, and no test id, prop or export changed.
  • Decision check: if this PR decides something the next contributor could undo, it adds a record under docs/decisions/. Not applicable: nothing here is a decision another component depends on.

🤖 Generated with Claude Code

- 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).
@harsh-vador
harsh-vador requested a review from a team as a code owner December 3, 2026 09:52
@harsh-vador
harsh-vador requested review from anuj-kumary and removed request for a team December 3, 2026 09:52
@github-actions

github-actions Bot commented Dec 3, 2026

Copy link
Copy Markdown
Contributor

❌ PR checklist incomplete

This PR cannot be merged until the following are addressed on its linked issue:

  • No GitHub issue is linked. Link an issue in the Development section of the PR (or add Fixes #12345 to the description). For a same-org cross-repo issue, add Fixes open-metadata/<repo>#123 to the description.

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 skip-pr-checks label.

@harsh-vador harsh-vador added the UI UI specific issues label Dec 3, 2026
@gitar-bot

gitar-bot Bot commented Dec 3, 2026 •

Copy link
Copy Markdown
Code Review ✅ Approved 🟢 Low risk

Removing 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 feeds-widget.less file. Pure deletion with no visible behaviour change. No issues found.

Verification

Rules No rules evaluated

Functional validation Not enabled

Set up

Auto-approval Not enabled

Set up

For more verification details, comment gitar display:verbose.

Options

Display: compact → Showing compact verification results.

Comment with these commands to change the behavior for this request:

Compact
gitar display:verbose         

Was this helpful? React with 👍 / 👎 | Powered by Gitar — free for open source

@harsh-vador

Copy link
Copy Markdown
Contributor Author

Combined into #39670, which carries this commit unchanged (94e7149) together with the dead TypeScript removal, so both pure-deletion changes are reviewed and merged once.

@harsh-vador harsh-vador closed this Dec 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

UI UI specific issues

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant