Skip to content

Conversation

@jwrosewell
Copy link
Collaborator

  • Controller for the audit UI component now supports the AuditHandler interface.
  • Audit viewer is now added to the advert div element via the AuditHandler interface in the demo. Note the demo has been amended to "fake" an auditable response to demonstrate the UI. More work is needed on system integration to align the different components of the project. See issue Prebid "bidWon" event does not contain PAF object #181.
  • Identity information when provided adds an email icon with a pre-populated email and a link to the privacy policy.
  • All class for identity data are performed asynchronously.
  • Common elements of the CMP concerning localisation have been moved to the core.
  • This PR along with Adding initial version of audit log v2 html pattern library #180 are dependencies for the update to the V2 UI.

jwrosewell added 16 commits June 8, 2022 09:03
…d with the transmission.

Enabled the contact DPO, and privacy policy URL icons when identity information is returned.
Handled the situation where identity information can not be returned.
Modified the data model and fields to support promise resolution to update the UI.
Moved the tick and cross icons into the component HTML.
…t-log-async

# Conflicts:
#	paf-mvp-audit/src/controller.ts
…be shared across the CMP and the Audit modules.
…e rather than a folder.

Uses the shared core loader and locale features.
…at the audit handler can extract them if the users wants to check the log.
@jwrosewell jwrosewell requested a review from a team as a code owner June 15, 2022 16:21
Copy link
Contributor

@OlivierChirouze OlivierChirouze left a comment

Choose a reason for hiding this comment

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

I'm fine with this PR, but would like to have @RomainLofaso to check the integration with seeds paf-lib.ts

* and the other identity information over multiple requests to the same endpoint.
* @returns promise that when resolved will provide the identity associated with the transmission result or an error.
*/
public getIdentity() {
Copy link
Contributor

Choose a reason for hiding this comment

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

NIT: return type

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Thanks. There are quite a few changes coming in the next PR. I'm considering changing this one to draft and then adding the next set of changes to it. Could @RomainLofaso hold off reviewing until we've updated?

Copy link
Contributor

Choose a reason for hiding this comment

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

Would you mind keeping it separate instead?
This way it would be easier to review: in the current review I think there are only a couple of files that "need" to be reviewed by Romain, the rest is mostly about translation, identity and pattern library.
I'm wondering if adding "quite a few changes" to this review would not make it complicated to review.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

The async model had to change a lot when the V2 UI layer was finally complete and the two combined. I'm reviewing this today. Therefore some of the elements of this PR are no longer present and it would merely waste review time. I don't think there's a way to get away from the additional features of the V2 layer being a large addition (not change) to the project. Perhaps the review could include a virtual F2F to go through the approach if the concern is about the size of the PR?

@jwrosewell jwrosewell marked this pull request as draft June 23, 2022 15:40
… into feature/audit-log-v2-complete

# Conflicts:
#	paf-mvp-demo-express/public/assets/.gitignore
#	paf-mvp-demo-express/src/views/publisher/index.hbs
#	tsconfig.test.json
@jwrosewell
Copy link
Collaborator Author

There were a number of issues related to the integration of the V2 changes which make this PR unavoidably large. I suggest the following approach to review.

  1. There have been changes to the core to support the need for promises to be returned to support browser crypto features. It is these areas where the risk of breaking changes to existing functionality exists. These are grouped in this commit.
  2. There are minor changes to the CMP to support the Marketing class becoming a core component as it is shared across audit and CMP. These are contained in this commit.
  3. The audit log V2 is in this commit. As this is new functionality and won’t break existing features this could be given a light touch review to expedite getting this PR into the demo. There are a few changes to be added including progress spinners for fields that have not resolved verification, and the modal form to capture “pause this ad” reasons.

The other commits after these are minor and relate to fixing missing NPM packages or the demo code.

Note that the workflow tests needed to change to include getting the submodule as a dependency. At the time of writing this these tests are queued but not complete.

@jwrosewell jwrosewell marked this pull request as ready for review July 1, 2022 12:05
@jwrosewell
Copy link
Collaborator Author

@OlivierChirouze This is now ready for review. I know it is a large PR but the main areas to review are the core changes related to making crypto async. See this commit.

@jwrosewell
Copy link
Collaborator Author

Mobile
Tablet
Desktop

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.

3 participants