discourse/spec/system/page_objects/components/review_note_form.rb
Kris 23c8821d0e
UX: switch default reviewable refresh tab to timeline, adjust spacing (#35945)
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"
/>
2025-11-12 07:53:03 +08:00

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