0
0
Fork 0
mirror of https://github.com/discourse/discourse.git synced 2026-08-11 02:59:07 +08:00
discourse/spec/fixtures/images
Krzysztof Kotlarek 53d799eb8b
DEV: Remove reviewable_ui_refresh feature flag and legacy code (#36752)
Following PR #36711 which enabled the refreshed review UI for all users, this commit removes the old feature flag infrastructure and cleans up legacy code that is no longer needed.

Backend Changes:
  - Removed ReviewableActionLog model and its spec entirely
  - Removed CalculateFinalStatusFromLogs service and spec
  - Removed site settings: force_old_reviewable_ui, reviewable_old_moderator_actions
  - Simplified ReviewableActionBuilder — stripped out legacy action-building methods (build_user_actions_bundle, build_post_actions_bundle, build_new_separated_actions)
  - Cleaned up reviewable models (ReviewableFlaggedPost, ReviewablePost, ReviewableQueuedPost, ReviewableUser, Chat::ReviewableMessage, ReviewablePostVotingComment) — removed unused/legacy action definitions
  - Removed legacy specs for action builder, action logs, flagged post actions, post actions, user actions, and status-from-logs
  - Updated system tests and page objects to reflect the new UI structure

  Frontend Changes:

  - Deleted legacy components: reviewable-item.gjs, reviewable-user.gjs, review-index-legacy.gjs
  - Renamed reviewable-refresh/ → reviewable/ — moved all sub-components (created-by, flagged-post, item, post, queued-post, topic-link, user, etc.) out of the refresh directory into the canonical reviewable/ namespace
  - Simplified reviewable/item.gjs — removed feature flag conditionals and legacy code paths
  - Cleaned up review/index.gjs and review/show.gjs templates — removed branching between old/new UI
  - Updated plugin components (chat, AI, post-voting) to import from reviewable/ instead of reviewable-refresh/
  - Removed acceptance tests (review-test.js) replaced by system tests
  - Renamed and updated integration tests from reviewable-refresh/* to reviewable/*

Plan for next PRs:
- Move plugins from Pages::RefreshedReview to Pages::Review 
- Move plugins to import from `reviewable/` and not `refreshed-reviewable/`
- Move reviewable-user.js import in plugin to use `reviewable/user.js`
- Remove unused settings like `reviewable_old_moderator_actions` from plugins
- Delete `Pages::RefreshedReview`
- Delete `reviewable-refresh/` directory
- Delete `reviewable-user.js` component
- Delete `reviewable_old_moderator_actions` site setting

Plugins PRs:
- https://github.com/discourse/discourse-akismet/pull/203
- https://github.com/discourse/discourse-antivirus/pull/98
- https://github.com/discourse/discourse-category-experts/pull/223
2026-02-23 10:45:36 +08:00
..
upcoming_changes FEATURE: Upcoming changes part 1 (#34617) 2025-10-30 10:46:14 +10:00
vanilla_import
2000x2000.png PERF: stop downloading images from post processor and lean on uploads 2022-11-25 12:40:31 +11:00
animated.gif FIX - don't attempt to optimized animated images (#11031) 2020-10-26 15:10:19 -04:00
animated.webp FIX: Use ImageMagick to detect animated images (#11702) 2021-01-13 19:01:30 +02:00
bad-xml-icon-sprite.svg
cropped.png Add compatibility for ImageMagick7. 2018-07-17 15:50:58 +08:00
custom-theme-component-icon-sprite.svg SECURITY: Reduce maximum size of SVG sprite cache to prevent DoS 2023-09-12 15:31:28 -03:00
custom-theme-icon-sprite.svg
downsized.png Add compatibility for ImageMagick7. 2018-07-17 15:50:58 +08:00
fake.jpg SECURITY: ensure we never accept fake images 2015-12-21 16:08:14 +01:00
fake.long-FileExtension
fake.not_image
huge.jpg SECURITY: return error on oversized images 2020-09-14 10:45:11 +10:00
image.svg FIX: add support for style element in SVGs 2019-02-07 12:09:06 +01:00
image_no_extension
large_and_unoptimized.png
large_icon_correct.png
large_icon_incorrect.png
logo-dev.png FIX: crop & optimize user background profile/card images 2015-07-15 17:15:43 +02:00
logo.jpg DEV: Remove reviewable_ui_refresh feature flag and legacy code (#36752) 2026-02-23 10:45:36 +08:00
logo.png FIX: crop & optimize user background profile/card images 2015-07-15 17:15:43 +02:00
massive.svg FIX: Allow SVG uploads if dimensions are a fraction of a unit (#13409) 2021-06-17 15:56:11 -04:00
not_an_image
png_as.bin
pngquant.png DEV: Fix png optimization test flakyness (#19535) 2022-12-20 16:05:14 -03:00
resized.png Add compatibility for ImageMagick7. 2018-07-17 15:50:58 +08:00
should_be_jpeg.heic FEATURE: Support converting HEIF images to JPEG (#10079) 2020-07-22 21:40:09 -04:00
should_be_jpeg.png FEATURE: do not switch to JPEG unless you meet 75k byte savings 2018-11-21 11:01:08 +11:00
smallest.ico FEATURE: Upload Site Settings. (#6573) 2018-11-14 15:03:02 +08:00
smallest.png FIX: Moving upload to tombstone should update modification time. 2018-09-18 10:48:29 +08:00
svg.png Add spec for 4bf3bf6786. 2018-07-26 09:16:14 +08:00
tiff_as.bin
tiny.svg FIX: Allow SVG uploads if dimensions are a fraction of a unit (#13409) 2021-06-17 15:56:11 -04:00
webp_as.bin
zero_sized.svg FIX: Allow SVG uploads if dimensions are a fraction of a unit (#13409) 2021-06-17 15:56:11 -04:00