mirror of
https://gh.wpcy.net/https://github.com/discourse/discourse.git
synced 2026-05-05 07:13:12 +08:00
This switches the default tab for refreshed reviewables to "timeline" to provide more glance-able context and reverses the order... putting the oldest events at the top and the input at the bottom. I've also adjusted the form styling to minimize space, cleaned up some general spacing, and made it clearer who's profile you're adding a note to. The textarea now auto expands as needed using `ExpandingTextArea` Before: <img width="1750" height="962" alt="image" src="https://github.com/user-attachments/assets/257e041e-6f9b-4b22-b08e-a94310c21f6c" /> After: <img width="2270" height="1586" alt="image" src="https://github.com/user-attachments/assets/48c9f296-1f69-40f7-bbb6-e8df2a46878b" />
16 lines
356 B
Ruby
16 lines
356 B
Ruby
# frozen_string_literal: true
|
|
|
|
module PageObjects
|
|
module Components
|
|
class ReviewNoteForm < PageObjects::Components::Base
|
|
def add_note(note)
|
|
form.fill_in("content", with: note)
|
|
form.submit
|
|
end
|
|
|
|
def form
|
|
@form ||= PageObjects::Components::FormKit.new(".reviewable-note-form__form")
|
|
end
|
|
end
|
|
end
|
|
end
|