Skip to content
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/login2 #190

Merged
merged 13 commits into from
Jan 18, 2024
Merged

Feat/login2 #190

merged 13 commits into from
Jan 18, 2024

Conversation

badvision
Copy link
Collaborator

This implements username/password login with showing the login name on the header.

Some other utility functions for getting user profile and login status, logout are also implemented.

Fix #152

Test URLs:

Copy link

aem-code-sync bot commented Jan 17, 2024

Hello, I'm the AEM Code Sync Bot and I will run some actions to deploy your branch and validate page speed.
In case there are problems, just click a checkbox below to rerun the respective action.

  • Re-run PSI checks
  • Re-sync branch
Commits

@badvision badvision requested a review from bstopp January 17, 2024 22:13
Copy link

aem-code-sync bot commented Jan 17, 2024

Page Scores Audits Google
/ PERFORMANCE A11Y SEO BEST PRACTICES SI FCP LCP TBT CLS PSI

}).toString(),
});
if (resp.ok) {
console.log('Success!');
Copy link
Collaborator

Choose a reason for hiding this comment

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

Do we need this?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I can remove console logging.

sessionStorage.setItem('userDetails', JSON.stringify(sessionData));
return sessionData;
}
console.error('Failed to login');
Copy link
Collaborator

Choose a reason for hiding this comment

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

add eslint comment.

@badvision badvision requested a review from bstopp January 18, 2024 15:10
@badvision badvision merged commit b783381 into main Jan 18, 2024
2 checks passed
@badvision badvision deleted the feat/login2 branch January 18, 2024 16:12
bstopp pushed a commit that referenced this pull request Mar 6, 2024
* Cherry-pick feat/login changes

* Fix JS errors

* Missing from merge

* Missed in the merge

* Adding delay logic to load the delayed part of the form

* Added more utility functions around login/logout and session state tracking for logged in user

* treat invalid login as a logout as well

* More login handling of errors, fetching profile, and showing user name in navigation

* Remove external ID from initial login

* Handle logged-in user on page load

* Fix lint issue

* Remove console logging

---------

Co-authored-by: Brendan Robert <[email protected]>
bstopp added a commit that referenced this pull request May 20, 2024
* Some improvements to loading and Accessibility.

* Fix icons.

* More icon fixing.

* Need to test intermediate logic on site.

* Remove references to partytown. (#178)

* add style for section top-border (#179)

Co-authored-by: Bryan Stopp <[email protected]>

* added style to override margin bottom (#180)

Co-authored-by: Bryan Stopp <[email protected]>

* update host for dev publishing (#182)

* starter hero slides

* mocked listings

* Fix images in default content. (#184)

* fix the gradiant overlay, less opacity (#185)

* Update styles on Shade Icon card variation. (#186)

* css layout

* hide paging

* rearrange functions

* disable linting on specific functions

* css linting

* style updates

* added class that scales images

* js linting

* added section full-bleed to allow full-witdh scaled image

* create div for headline

* add row for headline to block

* js clean up

* linting

* linting

* linting css

* js linting

* update logic around classlist

* create helix-query and start lookahead dropdown

* display list w/ listeners

* css tune

* css clean up

* js clean up

* js update

* js linting

* css linting

* css linting color notation

* add communities search styles

* Feat/login2 (#190)

* Cherry-pick feat/login changes

* Fix JS errors

* Missing from merge

* Missed in the merge

* Adding delay logic to load the delayed part of the form

* Added more utility functions around login/logout and session state tracking for logged in user

* treat invalid login as a logout as well

* More login handling of errors, fetching profile, and showing user name in navigation

* Remove external ID from initial login

* Handle logged-in user on page load

* Fix lint issue

* Remove console logging

---------

Co-authored-by: Brendan Robert <[email protected]>

* add style to adjust hero brightness in community dir

* Adjusted the city text and styling

* add braces

* css linting

* Feat/profile (#194)

* Update profile code implemetation

* Start of profile UI implementation and saving routine

* Tabs are working, needs more form styling and validation though

* Style improvements, also adjusted selectors to make linter happy

* Dropdown values implemented

* More styling work and visual support for required fields

* Updated form placeholders to match site

* Remove empty selections for regional preferences

* Skip missing profile check

* Improvements to error reporting and form submission.

* Profile saves working!

* Password reset working

* Navigation and login/logout starting to work.  Needs more testing

* Small cleanup

* Fix linting gripes

* Better session handling and also moved header visibility changes into header block (and out of login-delayed)

* Refactored i18n to be in utils

* Add i18n support to header nav

* Added i18n to login form

* Add i18n to login form

* Missing two text strings in i18n for login

---------

Co-authored-by: Brendan Robert <[email protected]>

* Intermediate work.

* Intermediate work with property search bar refactor.

* Final work for updating Property Search Bar.

* Fix some lint.

* Functional Search results list.

* Functional Search results list.

* Add pagination and all associated logic.

* Intermediate work on map.

* Intermediate info window work.

* More intermediate pin work.

* Finalize info window views.

* Finish mapping logic.

* Push first search off til after CWV

* No redraw on pagination.

* Trying css based animation.

* Fix some minor visual bugs.

---------

Co-authored-by: Rob Rusher <[email protected]>
Co-authored-by: Rob Rusher <[email protected]>
Co-authored-by: Brendan Robert <[email protected]>
Co-authored-by: Brendan Robert <[email protected]>
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.

Log-In modal
2 participants