Skip to content

fix(intro search): handle user position in the intro search#43

Merged
mas-iota merged 11 commits intomainfrom
fix/intro-search
Oct 2, 2024
Merged

fix(intro search): handle user position in the intro search#43
mas-iota merged 11 commits intomainfrom
fix/intro-search

Conversation

@AlaaN-Smadi
Copy link
Copy Markdown
Contributor

handle user position in the intro screen, and use initial view only in the map view, and add category empty state

handle user position in the intro screen, and use initial view only in the map view, and add category empty state
enhance code complexity and remove disable from filter when there're some categories
handle city search in the ontro screen
minimize intro screen search code block
set location state upon centering  map
don't change location search point when search area is disabled
Comment thread src/widget/css/main.css
margin-left: -15px;
margin-right: -15px;
margin-top: 18px;
height: 32px;
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

line-height for the text element is better

Comment thread src/widget/js/state.js Outdated
userPosition: null,
selectedLocation: null,
currentLocation: null,
mapCenterPosition: null,
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

getter function is better

import constants from "../../js/constants";

const SearchLocationsModes = {
export const SearchLocationsModes = {
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

constants!

use getter function to get map center point, and move all constants to a separate file
remove empty categories margin
getting locations with no location permissions, and fix breadcrumb issues
revert widget breadcrumb fixes
@mas-iota mas-iota merged commit 29a427a into main Oct 2, 2024
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