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

CIF-1398 - [My Account] Address book management #23

Merged
merged 31 commits into from
Aug 3, 2020
Merged

CIF-1398 - [My Account] Address book management #23

merged 31 commits into from
Aug 3, 2020

Conversation

nettree
Copy link
Collaborator

@nettree nettree commented Jul 29, 2020

This PR is to add address book component to the main React App, the render of address book is controlled by React router

Description

  • Add a new npm package react-router-dom so that we can control when to render the address book component in App.js

  • Add configuration values for address book component to config.js

  • Add .content.xml files for address book

Related Issue

adobe/aem-core-cif-components#327

Motivation and Context

We need to provide the address book management in venia guides, this is a required feature

How Has This Been Tested?

The changes work with changes made in PR: adobe/aem-core-cif-components#353

Screenshots (if appropriate):

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to change)

Checklist:

  • I have signed the Adobe Open Source CLA.
  • My change requires a change to the documentation.
  • I have updated the documentation accordingly.
  • I have read the CONTRIBUTING document.
  • I have added tests to cover my changes and the overall coverage did not decrease.
  • All unit tests pass on CircleCi.
  • I ran all tests locally and they pass.

mhaack and others added 30 commits June 30, 2020 16:35
…hat it can provide the mount point for 'miniaccount' CIF core component defined for AEM, add styles to hide 'miniaccount' component on header in tablet and mobile view(<1024px), hide 'miniaccount' component in navigation side panel on desktop, change title of 'miniaccount' component to correct one
Create the structure for the account information pages.
The root of the structure is the "Account" page which should contain the account information (implemented in a future PR).
The Address Book page is a child of the "Account" page and only contains the address book management component.
Rename "Account" page to "My Account" and add the `hideInNav` property
… to this project

* Add previously added styles again to 'header.scss' and '_navigation.scss' as we changed the paths of these two files in other PR(#17) that has been merged to 'main' branch already
Add the "Address Book" proxy component
Move the "Address Book" component in the right place within the container
Remove configurations that we don't need.
Exclude the `dist` folder from the babel-loader. This makes it possible for the `@adobe/aem-core-cif-react-components` to be linked via `npm link`.
* Create a `fedProd` profile in POM (active by default) which produces a production build
* Update the existing `fedDev` profile to run all the commands using the `exec-maven-plugin` instead of the `frontend-plugin`. This way all the build commands - `npm link`, `npm run dev` is executed in the context of the existing node installation.

Update README to document the above changes.
* This will allow us to render component based on current URL path
* Add related configuration for address book component
* Now react app can render address book based on the configured URL path
* Please note at the moment the URL path is hard coded due to the base URL is suppose to be exposed by server, this will be handled later
Conflicts:
	ui.frontend/src/main/components/App/App.js
	ui.frontend/src/main/components/App/config.js
@nettree nettree requested review from dplaton and herzog31 July 29, 2020 09:23
@codecov
Copy link

codecov bot commented Jul 29, 2020

Codecov Report

Merging #23 into main will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff            @@
##               main      #23   +/-   ##
=========================================
  Coverage     79.16%   79.16%           
  Complexity       13       13           
=========================================
  Files             1        1           
  Lines            24       24           
  Branches          4        4           
=========================================
  Hits             19       19           
  Misses            3        3           
  Partials          2        2           
Flag Coverage Δ Complexity Δ
#unittests 79.16% <ø> (ø) 13.00 <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.


Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 572ff30...4cdbf27. Read the comment docs.

@herzog31 herzog31 merged commit 026ec55 into main Aug 3, 2020
@herzog31 herzog31 deleted the CIF-1398 branch August 3, 2020 12:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants