-
Notifications
You must be signed in to change notification settings - Fork 984
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
feat: browser input #16487
feat: browser input #16487
Conversation
0510049
to
43e88a5
Compare
5a07e9f
to
8c60126
Compare
8c60126
to
b716b6f
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.
Should the browser default to a search engine like Google, Yahoo, Bing in case the user didn't add a specifc URL?
And should we allow him to alter the selection of the default engine?
:color | ||
(colors/theme-colors colors/neutral-100 colors/white))) | ||
|
||
(def rooot-container |
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.
Typo, should be root-container
:style style/clear-icon-container} | ||
[icon/icon :i/clear | ||
{:color (clear-icon-color blur? theme) | ||
:size 20}]]) |
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 think default size is 20 so this can be omitted, By no worries let's keep it.
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.
let's remove it if it's redundant 👍
b716b6f
to
5c1e657
Compare
This PR only adds the input component for the browser and doesn't implement the actual search/query which is where I think the consideration would come in. |
5c1e657
to
d1ffe18
Compare
Jenkins BuildsClick to see older builds (12)
|
@BalogunofAfrica linting fails:
You might want to address the issues and run |
@cammellos I have updated the PR with the fix |
@BalogunofAfrica thank you, lint passes! Component tests are now failing:
would you mind having a look please? thank you |
7c25303
to
9323b56
Compare
@cammellos Fixed test errors |
Thank you @BalogunofAfrica , amazing work! |
:flex-direction :row | ||
:justify-content :center | ||
:opacity (if display? 1 0) | ||
:width "100%"}) |
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.
width is redundant
:height 20 | ||
:justify-content :center | ||
:margin-left 8 | ||
:top 3.5 |
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.
should be integer
(when on-clear (on-clear))) | ||
:theme theme}])]])))) | ||
|
||
|
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.
extra line
on-clear on-focus on-blur theme get-ref locked? | ||
favicon favicon-color favicon-size] | ||
:as props}] | ||
(let [clean-props (apply dissoc props props-to-remove)] |
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.
could you pls elaborate on why we need to remove props?
[react-native.core :as rn] | ||
[reagent.core :as reagent] | ||
[quo2.foundations.colors :as colors] | ||
[quo2.theme :as quo2.theme] |
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.
just theme
, quo2 is redundant
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.
actually it's not @flexsurfer. Here we are using theme
prop as well so there is a likely chance these two references clash and there is unsafe uses.
Similar to @ilmotta's pr: #16500
however we have been using [quo2.theme :as quo.theme]
in other files
(when (and (seq @value) (= @state :default)) | ||
[rn/touchable-opacity | ||
{:style style/default-container | ||
:on-press (fn [] (focus-input))} |
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.
fn [] is redundant just focus-input
Reopens #16039
Fixes #15972
Implements the browser input component according to the designs.
The component is added to the quo preview in the profile settings.
Simulator.Screen.Recording.-.iPhone.11.Pro.-.2023-07-06.at.19.55.48.mp4
Component overlayed with the design:
status: ready