Skip to content

Mobile / Search scrolling + clear button suggestion#2640

Merged
adjogima merged 9 commits intomainfrom
mobile/search-scrolling+clear-suggestion
Mar 3, 2026
Merged

Mobile / Search scrolling + clear button suggestion#2640
adjogima merged 9 commits intomainfrom
mobile/search-scrolling+clear-suggestion

Conversation

@adjogima
Copy link
Contributor

@adjogima adjogima commented Mar 2, 2026

No description provided.

@adjogima adjogima requested review from Copilot and jayohms March 2, 2026 13:23
@adjogima adjogima changed the base branch from main to mobile/search-scrolling March 2, 2026 13:24
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Updates the search UI behavior for mobile/perma search to improve scrolling behavior and refine the “clear” interaction by moving input-clearing logic into a dedicated Stimulus controller and adjusting when the clear button is shown.

Changes:

  • Added a search-form Stimulus controller to handle clearing/focusing the search input and to emit a clear event.
  • Updated bar#clearInput to react to the dispatched clear event (reset only when the input is already empty).
  • Adjusted CSS to hide/show the clear button based on whether the search input is empty, and tweaked native overscroll behavior for .search.

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
app/views/searches/_form.html.erb Wires the form/input/reset button to the new search-form controller and adds an (hidden) submit button.
app/javascript/controllers/search_form_controller.js New controller that clears the search input and dispatches a clear event with state.
app/javascript/controllers/bar_controller.js Simplifies clearInput to reset only when the search-form reports the input is already empty.
app/assets/stylesheets/search.css Changes clear button visibility rules in .search-perma to depend on input emptiness.
app/assets/stylesheets/native.css Overrides .search overscroll behavior for native platform styling.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

jayohms added 2 commits March 2, 2026 11:53
* main:
  Extract event particulars helper method
  Reapply "Push event payload body updates"
  Bump z-index
  Bump z-index
  dep: Fix up Gemfile.saas.lock
…lear-suggestion

* mobile/search-scrolling:
  Extract event particulars helper method
  Reapply "Push event payload body updates"
  Bump z-index
  Bump z-index
  dep: Fix up Gemfile.saas.lock
Copilot AI review requested due to automatic review settings March 3, 2026 09:31
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 5 out of 5 changed files in this pull request and generated 1 comment.


💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Base automatically changed from mobile/search-scrolling to main March 3, 2026 10:22
Copy link
Member

@jorgemanrubia jorgemanrubia left a comment

Choose a reason for hiding this comment

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

Good to merge @adjogima 👍 (needs rebasing)

adjogima added 2 commits March 3, 2026 11:32
* main:
  Mobile: improve search screen (#2636)
  Document has_attachments in API card responses (#2523)
  Change exceeding and nearing limits to account for the 1000th card (#2345)
  Include concrete example motivating this module file
  Simplify comment in skip-detached override
  Extract detached-blob guard into its own file
  Skip AnalyzeJob when blob has no attachments
  Allow notice to take more inline space
  Fix small documentation typos
  Display the save form button on Board Settings page as a bridge button
  billing.rb: destroy -> destroy!
  Strip whitespace from webhook URLs
  Add test for webhook URL with trailing whitespace
…lear-suggestion

* mobile/search-scrolling:
  Mobile: improve search screen (#2636)
  Document has_attachments in API card responses (#2523)
  Change exceeding and nearing limits to account for the 1000th card (#2345)
  Include concrete example motivating this module file
  Simplify comment in skip-detached override
  Extract detached-blob guard into its own file
  Skip AnalyzeJob when blob has no attachments
  Allow notice to take more inline space
  Fix small documentation typos
  Display the save form button on Board Settings page as a bridge button
  billing.rb: destroy -> destroy!
  Strip whitespace from webhook URLs
  Add test for webhook URL with trailing whitespace
@adjogima adjogima merged commit 0cdb449 into main Mar 3, 2026
12 checks passed
@adjogima adjogima deleted the mobile/search-scrolling+clear-suggestion branch March 3, 2026 10:38
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.

4 participants