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: ui for field mapping #242

Merged
merged 25 commits into from
Sep 27, 2023
Merged

Conversation

hvinder
Copy link
Collaborator

@hvinder hvinder commented Sep 15, 2023

Description

Please include a summary of the changes and the related issue. Please also include relevant motivation and context. List any dependencies that are required for this change.

Fixes # (issue)

Type of change

Please delete options that are not relevant.

  • 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 not work as expected)
  • This change requires a documentation update

How Has This Been Tested?

Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test setup

  • Test A
  • Test B

Checklist:

  • My code follows the style guidelines of this project
  • I have performed a self-review of my code
  • I have commented my code, particularly in hard-to-understand areas
  • I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • Any dependent changes have been merged and published in downstream modules

@vercel
Copy link

vercel bot commented Sep 15, 2023

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
revert-client ❌ Failed (Inspect) Sep 26, 2023 3:24pm

@@ -0,0 +1,8 @@
import { createClient } from 'redis';
import config from '../config';

Copy link
Contributor

Choose a reason for hiding this comment

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

@hvinder lets move this out to its own folder? Perhaps backend/redis/client/index.ts

@@ -0,0 +1,30 @@
import { createClient } from 'redis';
import config from '../config';
Copy link
Contributor

Choose a reason for hiding this comment

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

@hvinder This could be in the same redis folder

@@ -4,7 +4,7 @@ import logError from './logError';

const revertAuthMiddleware = () => async (req: Request, res: Response, next: () => any) => {
const nonSecurePaths = ['/oauth-callback', '/oauth/refresh'];
if (nonSecurePaths.includes(req.path)) return next();
if (nonSecurePaths.includes(req.path) || req.path.includes('/integration-status')) return next();
Copy link
Contributor

Choose a reason for hiding this comment

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

@hvinder Lets move the /integration-status into the array nonSecurePaths to keep it cleaner

}
});

crmRouter.get('/field-mapping', revertTenantMiddleware(), async (_req, res) => {
Copy link
Contributor

Choose a reason for hiding this comment

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

@harvinder can we have the below endpoints via fern? or is it already?

@@ -1,9 +1,13 @@
import { Request, Response } from 'express';
import { xprisma } from '../prisma/client';
// import prisma from '../prisma/client';
Copy link
Contributor

Choose a reason for hiding this comment

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

@hvinder Lets remove this if not being used

const data = JSON.parse(event.data);
const parsedData = JSON.parse(data);
console.log(parsedData);
// if (parsedData.status === 'FAILED') {
Copy link
Contributor

Choose a reason for hiding this comment

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

@hvinder Lets remove commented code unless its necessary & conveys a point.

});
signInElement.appendChild(button);
// let poweredByBanner = createPoweredByBanner(this);
// let poweredByBanner = createPoweredByBanner(this, true);
Copy link
Contributor

Choose a reason for hiding this comment

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

@hvinder Same here

@hvinder hvinder merged commit fae50c4 into feat/field-mapping Sep 27, 2023
1 of 2 checks passed
jatinsandilya pushed a commit that referenced this pull request Oct 2, 2023
* feat: processing ui

* feat: immplememt sse and redis pubsub

* feat: read sse data to render failed ui

* minor changes

* feat: api to fetch mappable details and crm object properties

* feat: api to create connection field mapping

* feat: add custom field mapped to connection schema

* feat: reallly basic ui for std field mapping

* feat: reallly basic ui for custom field mapping

* feat: add styling

* fix: fix add btn order

* feat: check for t_id in sse msg; send private token for calling further apis

* feat: save mappings on click

* feat: fix ui

* feat: show done screen

* feat: mark form dirty if empty fields

* feat: show done stage if config doesnt exist

* chore: fix pr comments

* chore: use temp tenant token for auth; ui fixes

* chore: fix dropdown caret; redis timeout

* chore: pubsub fix

* chore: cleanup

* chore: cleanup

* chore: resolve conflicts
jatinsandilya added a commit that referenced this pull request Oct 2, 2023
* prisma migration to add field mapping schemas

* seed hs note model (unverified)

* seed hs note model (verified)

* seed hs note model

* transform note acc to schema mapping

* (approach 2) transform note acc to schema field mapping

* (approach 2) seed all note fields and fix single note structure

* minor fix

* common func to transform field mapping to model

* disunify using field mapping

* allow connections to override field mapping

* support custom objects in schema; show custom fields as additional

* add winston and morgan logger

* Field mapping for contact; support custom field mapping to custom crm field

* add field mapping config

* common unify and disunify methods

* seed contact field mapping

* use lodash get to transform nested mappings

* unify and disunify for contact

* disunify based on account config

* unify and disunify for company

* unify and disunify for deal

* unify and disunify for event

* unify and disunify for lead

* unify and disunify for task

* unify and disunify for user

* minor refactor

* handle 2 level nesting and fix mapping

* make target field optional; multi level nesting

* fix

* fix

* fix obj merge

* fix pipedrive get format

* preprocess

* preprocess unify and disunify

* disunify postprocess

* flatten before disunify

* pipedrive fix contact create

* minor fixes

* fix pipedrive lead disunify

* chore: add account id to morgan logs

* chore: cleanup

* chore: cleanup

* chore: cleanup

* feat: ui for field mapping (#242)

* feat: processing ui

* feat: immplememt sse and redis pubsub

* feat: read sse data to render failed ui

* minor changes

* feat: api to fetch mappable details and crm object properties

* feat: api to create connection field mapping

* feat: add custom field mapped to connection schema

* feat: reallly basic ui for std field mapping

* feat: reallly basic ui for custom field mapping

* feat: add styling

* fix: fix add btn order

* feat: check for t_id in sse msg; send private token for calling further apis

* feat: save mappings on click

* feat: fix ui

* feat: show done screen

* feat: mark form dirty if empty fields

* feat: show done stage if config doesnt exist

* chore: fix pr comments

* chore: use temp tenant token for auth; ui fixes

* chore: fix dropdown caret; redis timeout

* chore: pubsub fix

* chore: cleanup

* chore: cleanup

* chore: resolve conflicts

* feat: add remove mapping btn and divider

* fix: fix logger

* chore: cleanup

* chore: move endpoints to fern

* update yarn.lock

* fix issues

* add hubspot create custom properties api

---------

Co-authored-by: jatin <sandilya.jatin@gmail.com>
hrutik7 pushed a commit to hrutik7/revert that referenced this pull request Nov 9, 2023
* prisma migration to add field mapping schemas

* seed hs note model (unverified)

* seed hs note model (verified)

* seed hs note model

* transform note acc to schema mapping

* (approach 2) transform note acc to schema field mapping

* (approach 2) seed all note fields and fix single note structure

* minor fix

* common func to transform field mapping to model

* disunify using field mapping

* allow connections to override field mapping

* support custom objects in schema; show custom fields as additional

* add winston and morgan logger

* Field mapping for contact; support custom field mapping to custom crm field

* add field mapping config

* common unify and disunify methods

* seed contact field mapping

* use lodash get to transform nested mappings

* unify and disunify for contact

* disunify based on account config

* unify and disunify for company

* unify and disunify for deal

* unify and disunify for event

* unify and disunify for lead

* unify and disunify for task

* unify and disunify for user

* minor refactor

* handle 2 level nesting and fix mapping

* make target field optional; multi level nesting

* fix

* fix

* fix obj merge

* fix pipedrive get format

* preprocess

* preprocess unify and disunify

* disunify postprocess

* flatten before disunify

* pipedrive fix contact create

* minor fixes

* fix pipedrive lead disunify

* chore: add account id to morgan logs

* chore: cleanup

* chore: cleanup

* chore: cleanup

* feat: ui for field mapping (revertinc#242)

* feat: processing ui

* feat: immplememt sse and redis pubsub

* feat: read sse data to render failed ui

* minor changes

* feat: api to fetch mappable details and crm object properties

* feat: api to create connection field mapping

* feat: add custom field mapped to connection schema

* feat: reallly basic ui for std field mapping

* feat: reallly basic ui for custom field mapping

* feat: add styling

* fix: fix add btn order

* feat: check for t_id in sse msg; send private token for calling further apis

* feat: save mappings on click

* feat: fix ui

* feat: show done screen

* feat: mark form dirty if empty fields

* feat: show done stage if config doesnt exist

* chore: fix pr comments

* chore: use temp tenant token for auth; ui fixes

* chore: fix dropdown caret; redis timeout

* chore: pubsub fix

* chore: cleanup

* chore: cleanup

* chore: resolve conflicts

* feat: add remove mapping btn and divider

* fix: fix logger

* chore: cleanup

* chore: move endpoints to fern

* update yarn.lock

* fix issues

* add hubspot create custom properties api

---------

Co-authored-by: jatin <sandilya.jatin@gmail.com>
hrutik7 pushed a commit to hrutik7/revert that referenced this pull request Nov 15, 2023
* prisma migration to add field mapping schemas

* seed hs note model (unverified)

* seed hs note model (verified)

* seed hs note model

* transform note acc to schema mapping

* (approach 2) transform note acc to schema field mapping

* (approach 2) seed all note fields and fix single note structure

* minor fix

* common func to transform field mapping to model

* disunify using field mapping

* allow connections to override field mapping

* support custom objects in schema; show custom fields as additional

* add winston and morgan logger

* Field mapping for contact; support custom field mapping to custom crm field

* add field mapping config

* common unify and disunify methods

* seed contact field mapping

* use lodash get to transform nested mappings

* unify and disunify for contact

* disunify based on account config

* unify and disunify for company

* unify and disunify for deal

* unify and disunify for event

* unify and disunify for lead

* unify and disunify for task

* unify and disunify for user

* minor refactor

* handle 2 level nesting and fix mapping

* make target field optional; multi level nesting

* fix

* fix

* fix obj merge

* fix pipedrive get format

* preprocess

* preprocess unify and disunify

* disunify postprocess

* flatten before disunify

* pipedrive fix contact create

* minor fixes

* fix pipedrive lead disunify

* chore: add account id to morgan logs

* chore: cleanup

* chore: cleanup

* chore: cleanup

* feat: ui for field mapping (revertinc#242)

* feat: processing ui

* feat: immplememt sse and redis pubsub

* feat: read sse data to render failed ui

* minor changes

* feat: api to fetch mappable details and crm object properties

* feat: api to create connection field mapping

* feat: add custom field mapped to connection schema

* feat: reallly basic ui for std field mapping

* feat: reallly basic ui for custom field mapping

* feat: add styling

* fix: fix add btn order

* feat: check for t_id in sse msg; send private token for calling further apis

* feat: save mappings on click

* feat: fix ui

* feat: show done screen

* feat: mark form dirty if empty fields

* feat: show done stage if config doesnt exist

* chore: fix pr comments

* chore: use temp tenant token for auth; ui fixes

* chore: fix dropdown caret; redis timeout

* chore: pubsub fix

* chore: cleanup

* chore: cleanup

* chore: resolve conflicts

* feat: add remove mapping btn and divider

* fix: fix logger

* chore: cleanup

* chore: move endpoints to fern

* update yarn.lock

* fix issues

* add hubspot create custom properties api

---------

Co-authored-by: jatin <sandilya.jatin@gmail.com>
hrutik7 pushed a commit to hrutik7/revert that referenced this pull request Nov 16, 2023
* prisma migration to add field mapping schemas

* seed hs note model (unverified)

* seed hs note model (verified)

* seed hs note model

* transform note acc to schema mapping

* (approach 2) transform note acc to schema field mapping

* (approach 2) seed all note fields and fix single note structure

* minor fix

* common func to transform field mapping to model

* disunify using field mapping

* allow connections to override field mapping

* support custom objects in schema; show custom fields as additional

* add winston and morgan logger

* Field mapping for contact; support custom field mapping to custom crm field

* add field mapping config

* common unify and disunify methods

* seed contact field mapping

* use lodash get to transform nested mappings

* unify and disunify for contact

* disunify based on account config

* unify and disunify for company

* unify and disunify for deal

* unify and disunify for event

* unify and disunify for lead

* unify and disunify for task

* unify and disunify for user

* minor refactor

* handle 2 level nesting and fix mapping

* make target field optional; multi level nesting

* fix

* fix

* fix obj merge

* fix pipedrive get format

* preprocess

* preprocess unify and disunify

* disunify postprocess

* flatten before disunify

* pipedrive fix contact create

* minor fixes

* fix pipedrive lead disunify

* chore: add account id to morgan logs

* chore: cleanup

* chore: cleanup

* chore: cleanup

* feat: ui for field mapping (revertinc#242)

* feat: processing ui

* feat: immplememt sse and redis pubsub

* feat: read sse data to render failed ui

* minor changes

* feat: api to fetch mappable details and crm object properties

* feat: api to create connection field mapping

* feat: add custom field mapped to connection schema

* feat: reallly basic ui for std field mapping

* feat: reallly basic ui for custom field mapping

* feat: add styling

* fix: fix add btn order

* feat: check for t_id in sse msg; send private token for calling further apis

* feat: save mappings on click

* feat: fix ui

* feat: show done screen

* feat: mark form dirty if empty fields

* feat: show done stage if config doesnt exist

* chore: fix pr comments

* chore: use temp tenant token for auth; ui fixes

* chore: fix dropdown caret; redis timeout

* chore: pubsub fix

* chore: cleanup

* chore: cleanup

* chore: resolve conflicts

* feat: add remove mapping btn and divider

* fix: fix logger

* chore: cleanup

* chore: move endpoints to fern

* update yarn.lock

* fix issues

* add hubspot create custom properties api

---------

Co-authored-by: jatin <sandilya.jatin@gmail.com>
hrutik7 pushed a commit to hrutik7/revert that referenced this pull request Nov 16, 2023
* prisma migration to add field mapping schemas

* seed hs note model (unverified)

* seed hs note model (verified)

* seed hs note model

* transform note acc to schema mapping

* (approach 2) transform note acc to schema field mapping

* (approach 2) seed all note fields and fix single note structure

* minor fix

* common func to transform field mapping to model

* disunify using field mapping

* allow connections to override field mapping

* support custom objects in schema; show custom fields as additional

* add winston and morgan logger

* Field mapping for contact; support custom field mapping to custom crm field

* add field mapping config

* common unify and disunify methods

* seed contact field mapping

* use lodash get to transform nested mappings

* unify and disunify for contact

* disunify based on account config

* unify and disunify for company

* unify and disunify for deal

* unify and disunify for event

* unify and disunify for lead

* unify and disunify for task

* unify and disunify for user

* minor refactor

* handle 2 level nesting and fix mapping

* make target field optional; multi level nesting

* fix

* fix

* fix obj merge

* fix pipedrive get format

* preprocess

* preprocess unify and disunify

* disunify postprocess

* flatten before disunify

* pipedrive fix contact create

* minor fixes

* fix pipedrive lead disunify

* chore: add account id to morgan logs

* chore: cleanup

* chore: cleanup

* chore: cleanup

* feat: ui for field mapping (revertinc#242)

* feat: processing ui

* feat: immplememt sse and redis pubsub

* feat: read sse data to render failed ui

* minor changes

* feat: api to fetch mappable details and crm object properties

* feat: api to create connection field mapping

* feat: add custom field mapped to connection schema

* feat: reallly basic ui for std field mapping

* feat: reallly basic ui for custom field mapping

* feat: add styling

* fix: fix add btn order

* feat: check for t_id in sse msg; send private token for calling further apis

* feat: save mappings on click

* feat: fix ui

* feat: show done screen

* feat: mark form dirty if empty fields

* feat: show done stage if config doesnt exist

* chore: fix pr comments

* chore: use temp tenant token for auth; ui fixes

* chore: fix dropdown caret; redis timeout

* chore: pubsub fix

* chore: cleanup

* chore: cleanup

* chore: resolve conflicts

* feat: add remove mapping btn and divider

* fix: fix logger

* chore: cleanup

* chore: move endpoints to fern

* update yarn.lock

* fix issues

* add hubspot create custom properties api

---------

Co-authored-by: jatin <sandilya.jatin@gmail.com>
hrutik7 pushed a commit to hrutik7/revert that referenced this pull request Jan 8, 2024
* prisma migration to add field mapping schemas

* seed hs note model (unverified)

* seed hs note model (verified)

* seed hs note model

* transform note acc to schema mapping

* (approach 2) transform note acc to schema field mapping

* (approach 2) seed all note fields and fix single note structure

* minor fix

* common func to transform field mapping to model

* disunify using field mapping

* allow connections to override field mapping

* support custom objects in schema; show custom fields as additional

* add winston and morgan logger

* Field mapping for contact; support custom field mapping to custom crm field

* add field mapping config

* common unify and disunify methods

* seed contact field mapping

* use lodash get to transform nested mappings

* unify and disunify for contact

* disunify based on account config

* unify and disunify for company

* unify and disunify for deal

* unify and disunify for event

* unify and disunify for lead

* unify and disunify for task

* unify and disunify for user

* minor refactor

* handle 2 level nesting and fix mapping

* make target field optional; multi level nesting

* fix

* fix

* fix obj merge

* fix pipedrive get format

* preprocess

* preprocess unify and disunify

* disunify postprocess

* flatten before disunify

* pipedrive fix contact create

* minor fixes

* fix pipedrive lead disunify

* chore: add account id to morgan logs

* chore: cleanup

* chore: cleanup

* chore: cleanup

* feat: ui for field mapping (revertinc#242)

* feat: processing ui

* feat: immplememt sse and redis pubsub

* feat: read sse data to render failed ui

* minor changes

* feat: api to fetch mappable details and crm object properties

* feat: api to create connection field mapping

* feat: add custom field mapped to connection schema

* feat: reallly basic ui for std field mapping

* feat: reallly basic ui for custom field mapping

* feat: add styling

* fix: fix add btn order

* feat: check for t_id in sse msg; send private token for calling further apis

* feat: save mappings on click

* feat: fix ui

* feat: show done screen

* feat: mark form dirty if empty fields

* feat: show done stage if config doesnt exist

* chore: fix pr comments

* chore: use temp tenant token for auth; ui fixes

* chore: fix dropdown caret; redis timeout

* chore: pubsub fix

* chore: cleanup

* chore: cleanup

* chore: resolve conflicts

* feat: add remove mapping btn and divider

* fix: fix logger

* chore: cleanup

* chore: move endpoints to fern

* update yarn.lock

* fix issues

* add hubspot create custom properties api

---------

Co-authored-by: jatin <sandilya.jatin@gmail.com>
hrutik7 pushed a commit to hrutik7/revert that referenced this pull request Jan 8, 2024
* prisma migration to add field mapping schemas

* seed hs note model (unverified)

* seed hs note model (verified)

* seed hs note model

* transform note acc to schema mapping

* (approach 2) transform note acc to schema field mapping

* (approach 2) seed all note fields and fix single note structure

* minor fix

* common func to transform field mapping to model

* disunify using field mapping

* allow connections to override field mapping

* support custom objects in schema; show custom fields as additional

* add winston and morgan logger

* Field mapping for contact; support custom field mapping to custom crm field

* add field mapping config

* common unify and disunify methods

* seed contact field mapping

* use lodash get to transform nested mappings

* unify and disunify for contact

* disunify based on account config

* unify and disunify for company

* unify and disunify for deal

* unify and disunify for event

* unify and disunify for lead

* unify and disunify for task

* unify and disunify for user

* minor refactor

* handle 2 level nesting and fix mapping

* make target field optional; multi level nesting

* fix

* fix

* fix obj merge

* fix pipedrive get format

* preprocess

* preprocess unify and disunify

* disunify postprocess

* flatten before disunify

* pipedrive fix contact create

* minor fixes

* fix pipedrive lead disunify

* chore: add account id to morgan logs

* chore: cleanup

* chore: cleanup

* chore: cleanup

* feat: ui for field mapping (revertinc#242)

* feat: processing ui

* feat: immplememt sse and redis pubsub

* feat: read sse data to render failed ui

* minor changes

* feat: api to fetch mappable details and crm object properties

* feat: api to create connection field mapping

* feat: add custom field mapped to connection schema

* feat: reallly basic ui for std field mapping

* feat: reallly basic ui for custom field mapping

* feat: add styling

* fix: fix add btn order

* feat: check for t_id in sse msg; send private token for calling further apis

* feat: save mappings on click

* feat: fix ui

* feat: show done screen

* feat: mark form dirty if empty fields

* feat: show done stage if config doesnt exist

* chore: fix pr comments

* chore: use temp tenant token for auth; ui fixes

* chore: fix dropdown caret; redis timeout

* chore: pubsub fix

* chore: cleanup

* chore: cleanup

* chore: resolve conflicts

* feat: add remove mapping btn and divider

* fix: fix logger

* chore: cleanup

* chore: move endpoints to fern

* update yarn.lock

* fix issues

* add hubspot create custom properties api

---------

Co-authored-by: jatin <sandilya.jatin@gmail.com>
@jatinsandilya jatinsandilya deleted the feat/ui-for-field=mapping branch March 26, 2024 16:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants