-
-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
✨🥗🌸 Room
: Improve clarity of publicity and access level options
#1301
Conversation
b3eeb76
to
5d0e196
Compare
9543fea
to
fb5c2dd
Compare
…ot Postgres enums).
fb5c2dd
to
b611f7a
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you! I really like where this is going!
@@ -0,0 +1,9 @@ | |||
class AddDefaultPublicity < ActiveRecord::Migration[7.0] | |||
def up | |||
change_column :rooms, :publicity_level, :string, default: :listed, null: false |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm trying to decide whether :listed
or :unlisted
is the better default, but I am landing on 🤷
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, I wasn't sure either, but if feels like a public
default sort of implies a listed
default?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That makes sense to me!
…groups, so that the options and choices are a little bit more visible.
Neighborhood
: Improve clarity of Room publicity and access level options
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
v pretty
<%= form.label attribute, option, value: option, | ||
class: "ml-3 block text-sm leading-6 text-gray-900" %> | ||
</div> | ||
<%- end %> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice! I'm glad we have a radio component now!
@@ -0,0 +1,9 @@ | |||
class AddDefaultPublicity < ActiveRecord::Migration[7.0] | |||
def up | |||
change_column :rooms, :publicity_level, :string, default: :listed, null: false |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That makes sense to me!
Neighborhood
: Improve clarity of Room publicity and access level optionsRoom
: Improve clarity of publicity and access level options
Room
: Improve clarity of publicity and access level optionsRoom
: Improve clarity of publicity and access level options
Sections
#1155As a follow-up on #1300, this PR replaces the visibility and access level select drop-downs in the Room edit form with radio groups.
My goal is to make the available options and current setting clearer.
I would like to soon add an "explanation text" to each of these options. I was experimenting with using Tailwind's
peer/...
andpeer/...checked
classes and I couldn't get them working reliably, so I've given up on that for now. But I'll be back.I also:
publicity_level
Screenshots
Before
After