Skip to content

Some random changes#1038

Open
maebeale wants to merge 12 commits intomainfrom
copilot/enhance-ux-for-organization-view
Open

Some random changes#1038
maebeale wants to merge 12 commits intomainfrom
copilot/enhance-ux-for-organization-view

Conversation

@maebeale
Copy link
Collaborator

@maebeale maebeale commented Feb 15, 2026

  • This work Closes [link an issue]

What is the goal of this PR and why is this important?

Grab bag of changes:

  • order case insensitively and stripped chars
  • require person_id
  • avoid ahoy errors
  • change windows dropdown label

How did you approach the change?

Anything else to add?

)
when "title"
@workshops = @workshops.order(title: :asc)
@workshops = @workshops.order(Arel.sql(TITLE_SORT_SQL))
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

order case insensitively and stripped chars

t.integer "organization_id"
t.bigint "person_id"
t.integer "organization_id", null: false
t.integer "person_id", null: false
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

not sure why person_id wasn't a true fk

scope = double("scope", respond_to?: false)
allow(scope).to receive(:respond_to?).with(:total_entries).and_return(false)
allow(scope).to receive(:respond_to?).with(:count).and_return(true)
allow(scope).to receive(:unscope).with(:select).and_return(scope)
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

was hitting some ahoy test errors


# Open the dropdown
click_on "Windows Type" # this clicks the <button> text/label
click_on "Windows Audience" # this clicks the <button> text/label
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

changed button text to hopefully increase discoverability

@maebeale maebeale force-pushed the copilot/enhance-ux-for-organization-view branch from e4f5ebf to 8138919 Compare February 15, 2026 21:22
@maebeale maebeale changed the title Copilot/enhance ux for organization view Some random changes Feb 15, 2026
@maebeale maebeale force-pushed the copilot/enhance-ux-for-organization-view branch from 292c93e to 82eb40b Compare February 16, 2026 02:51
authorize!
@category_types = CategoryType.published.order(:name).decorate
@sectors = Sector.published
@category_types = CategoryType.published.where(story_specific: false).order(:name).decorate
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

don't show StoryPopulation on Workshops index

include PunctuationStrippable
authorize :user

TITLE_SORT_SQL = "LOWER(TRIM(#{Workshop.strip_punctuation_sql_spaced('workshops.title')})) ASC".freeze
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

doing it as a frozen constant helped avoid brakeman concern

@maebeale maebeale force-pushed the copilot/enhance-ux-for-organization-view branch from 82eb40b to a905529 Compare February 16, 2026 12:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants