mirror of
https://github.com/discourse/discourse.git
synced 2026-08-07 13:19:19 +08:00
At the moment there is no way in the UI to convert a category to nested replies. This introduces a backfill button and UI to show admin the current state (using category custom field). Screenshots pretty much tell the story: <img width="1483" height="1187" alt="Screenshot 2026-07-02 at 10 08 23 AM" src="https://github.com/user-attachments/assets/532bd7d2-8aae-455a-9744-aee0f3ac5b82" /> <img width="1498" height="1247" alt="Screenshot 2026-07-02 at 10 08 38 AM" src="https://github.com/user-attachments/assets/a1382732-8b72-4526-a770-72b6452b56bb" /> <img width="1460" height="1220" alt="Screenshot 2026-07-02 at 10 08 58 AM" src="https://github.com/user-attachments/assets/b4113347-c760-4f66-b947-988c270750a6" />
11 lines
372 B
Ruby
Vendored
11 lines
372 B
Ruby
Vendored
# frozen_string_literal: true
|
|
|
|
module NestedReplies
|
|
CONVERSION_COMPLETED_CUSTOM_FIELD = "nested_replies_conversion_completed"
|
|
end
|
|
|
|
require_relative "nested_replies/ancestor_walker"
|
|
require_relative "nested_replies/sort"
|
|
require_relative "nested_replies/tree_loader"
|
|
require_relative "nested_replies/post_preloader"
|
|
require_relative "nested_replies/post_tree_serializer"
|