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

📝 Up^date doc #348

Merged
merged 3 commits into from
Apr 9, 2024
Merged

📝 Up^date doc #348

merged 3 commits into from
Apr 9, 2024

Conversation

naelob
Copy link
Contributor

@naelob naelob commented Apr 9, 2024

No description provided.

Copy link

changeset-bot bot commented Apr 9, 2024

⚠️ No Changeset found

Latest commit: efa5651

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

@naelob naelob requested a review from rflihxyz April 9, 2024 05:10
@CLAassistant
Copy link

CLAassistant commented Apr 9, 2024

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you all sign our Contributor License Agreement before we can accept your contribution.
1 out of 2 committers have signed the CLA.

✅ rflihxyz
❌ naelob
You have signed the CLA already but the status is still pending? Let us recheck it.

Copy link

vercel bot commented Apr 9, 2024

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

Name Status Preview Comments Updated (UTC)
panora-client-ts ❌ Failed (Inspect) Apr 9, 2024 2:42pm

Copy link
Contributor

coderabbitai bot commented Apr 9, 2024

Walkthrough

The recent updates encompass various aspects of the project, including configuration, documentation, and code enhancements. These changes refine setup processes, enforce schema requirements, and adjust component parameters to better align with project objectives. Collectively, they streamline development workflows, ensure data integrity, and enhance UI components, reflecting a purposeful evolution of the project.

Changes

Files Summary
.npmrc Introduced node-linker set to hoisted and package-import-method set to clone-or-copy.
.docs/open-source/contributors.mdx
.docs/open-source/glossary.mdx
Refactored code snippets, adjusted spacing, and made minor text modifications in contributors documentation; Introduced detailed glossary for providersConfig and authentication strategies.
.packages/api/prisma/schema.prisma
.packages/shared/package.json
Updated Prisma schema to make vertical field required; Adjusted package.json by removing type: "module", axios, and adding dotenv.
.packages/api/scripts/oauthConnector.js Modified functions related to environment variables for cloud client ID and client secret.
.packages/api/tsconfig.json Updated with "moduleResolution": "node" setting and other adjustments.

🐰✨

Changes here, changes there,
Our project grows with flair.
Required fields, and settings new,
For a future bright and true.

Through the code, our dreams we weave,
With every line, in what we believe.
🌟📚


Recent Review Status

Configuration used: CodeRabbit UI

Commits Files that changed from the base of the PR and between 78bd12e and efa5651.
Files selected for processing (1)
  • docs/open-source/contributors.mdx (6 hunks)

Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?

Share

Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>.
    • Generate unit testing code for this file.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai generate unit testing code for this file.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai generate interesting stats about this repository and render them as a table.
    • @coderabbitai show all the console.log statements in this repository.
    • @coderabbitai read src/utils.ts and generate unit testing code.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (invoked as PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger a review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai help to get help.

Additionally, you can add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.

CodeRabbit Configration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

Copy link

socket-security bot commented Apr 9, 2024

New and removed dependencies detected. Learn more about Socket for GitHub ↗︎

Package New capabilities Transitives Size Publisher
npm/@types/[email protected] None +3 38.6 kB types
npm/@types/[email protected] None 0 6.74 kB types
npm/@typescript-eslint/[email protected] Transitive: environment, filesystem +29 6.63 MB jameshenry
npm/@typescript-eslint/[email protected] Transitive: environment, filesystem +25 6.44 MB jameshenry
npm/@typescript-eslint/[email protected] Transitive: environment, filesystem +18 1.79 MB jameshenry
npm/@vitejs/[email protected] Transitive: environment, filesystem, unsafe +48 10.5 MB vitebot
npm/[email protected] environment +18 64.9 MB chenshuai2144
npm/[email protected] environment Transitive: filesystem +4 2.59 MB ai
npm/[email protected] network Transitive: filesystem +5 1.96 MB jasonsaayman
npm/[email protected] Transitive: environment, filesystem, network, shell +5 407 kB amitosh
npm/[email protected] filesystem, shell Transitive: environment, network +7 1.14 MB manast
npm/[email protected] None 0 776 kB typestack-release-bot
npm/[email protected] None +1 5.2 MB typestack-release-bot
npm/[email protected] None +2 34.1 kB dougwilson
npm/[email protected] None 0 20 kB dougwilson
npm/[email protected] None 0 778 B ehsalazar
npm/[email protected] environment, filesystem 0 76 kB motdotla
npm/[email protected] None 0 19.9 kB lydell
npm/[email protected] None 0 58.3 kB jounqin
npm/[email protected] None 0 13.5 kB arnaud-barre
npm/[email protected] environment, filesystem Transitive: eval, shell, unsafe +45 8.98 MB eslintbot
npm/[email protected] Transitive: environment, eval, filesystem, shell +37 2.74 MB carloscuesta
npm/[email protected] environment, filesystem, shell 0 6.44 kB typicode
npm/[email protected] None 0 30.5 kB benjamn
npm/[email protected] Transitive: environment, eval, filesystem, network, shell, unsafe +165 15.4 MB simenb

🚮 Removed packages: npm/@stytch/[email protected], npm/@tanstack/[email protected], npm/@tanstack/[email protected], npm/@tanstack/[email protected], npm/@tanstack/[email protected], npm/@types/[email protected], npm/@types/[email protected], npm/@types/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected], npm/[email protected]

View full report↗︎

Copy link

socket-security bot commented Apr 9, 2024

🚨 Potential security issues detected. Learn more about Socket for GitHub ↗︎

To accept the risk, merge this PR and you will not be notified again.

Alert Package NoteSource
Install scripts npm/[email protected]
Install scripts npm/[email protected]
  • Install script: install
  • Source: node-pre-gyp install --fallback-to-build
Install scripts npm/[email protected]

View full report↗︎

Next steps

What is an install script?

Install scripts are run when the package is installed. The majority of malware in npm is hidden in install scripts.

Packages should not be running non-essential scripts during install and there are often solutions to problems people solve with install scripts that can be run at publish time instead.

Take a deeper look at the dependency

Take a moment to review the security alert above. Review the linked package source code to understand the potential risk. Ensure the package is not malicious before proceeding. If you're unsure how to proceed, reach out to your security team or ask the Socket team for help at support [AT] socket [DOT] dev.

Remove the package

If you happen to install a dependency that Socket reports as Known Malware you should immediately remove it and select a different dependency. For other alert types, you may may wish to investigate alternative packages or consider if there are other ways to mitigate the specific risk posed by the dependency.

Mark a package as acceptable risk

To ignore an alert, reply with a comment starting with @SocketSecurity ignore followed by a space separated list of ecosystem/package-name@version specifiers. e.g. @SocketSecurity ignore npm/[email protected] or ignore all packages with @SocketSecurity ignore-all

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 0

Actionable comments outside the diff hunks (1)
packages/shared/package.json (1)

Line range hint 1-1: Verify compatibility with CommonJS module system.

Removing type: "module" switches the module system back to CommonJS. Ensure all imports/exports are compatible with CommonJS syntax.

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 9

Actionable comments outside the diff hunks (3)
docs/open-source/contributors.mdx (3)

Line range hint 9-9: Correct the spelling of "environment" and use "set up" as a verb phrase.

- ### Setup your environnement
+ ### Set up your environment

Line range hint 48-48: Remove unnecessary spaces before punctuation marks.

- Make sure you are inside `packages/api/src` where the server lives !
+ Make sure you are inside `packages/api/src` where the server lives!

Line range hint 50-50: Remove unnecessary spaces before punctuation marks.

- # You want to add a new 3rd Party not yet supported ? 🧑‍🎤
+ # You want to add a new 3rd Party not yet supported? 🧑‍🎤


### The source of truth

The `/packages/shared/src/utils.ts` file contains the most important object of the project which is `providersConfig`.
Copy link
Contributor

Choose a reason for hiding this comment

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

Consider correcting the spelling mistake in "object of the project which is providersConfig".

- The `/packages/shared/src/utils.ts` file contains the most important object of the project which is `providersConfig`.
+ The `/packages/shared/src/utils.ts` file contains the most important object of the project, which is `providersConfig`.

Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation.

Suggested change
The `/packages/shared/src/utils.ts` file contains the most important object of the project which is `providersConfig`.
The `/packages/shared/src/utils.ts` file contains the most important object of the project, which is `providersConfig`.

....
}
```

Copy link
Contributor

Choose a reason for hiding this comment

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

Start sentences with an uppercase letter for consistency.

- where
+ Where

Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation.

Suggested change


## IT IS VERY IMPORTANT TO MAKE SURE THE FORMAT CONVENTION IS AS FOLLOWS IN UPPERCASE:

`{PROVIDERNAME}_{VERTICALNAME}_{SOFTWAREMODE}_{AUTHMODE}` where
Copy link
Contributor

Choose a reason for hiding this comment

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

Start sentences with an uppercase letter for consistency.

- `{PROVIDERNAME}_{VERTICALNAME}_{SOFTWAREMODE}_{AUTHMODE}` where
+ `{PROVIDERNAME}_{VERTICALNAME}_{SOFTWAREMODE}_{AUTHMODE}` Where

Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation.

Suggested change
`{PROVIDERNAME}_{VERTICALNAME}_{SOFTWAREMODE}_{AUTHMODE}` where
`{PROVIDERNAME}_{VERTICALNAME}_{SOFTWAREMODE}_{AUTHMODE}` Where

`PROVIDERNAME` is the name of the provider
`VERTICALNAME` is the vertical the provider belongs to
`SOFTWAREMODE` is the software mode the client wants to run the provider on (onpremise, cloud). By default, set it to `CLOUD`.
`AUTHMODE` is the authentication strategy of the provider (For now we have => OAUTH, API, BASIC)
Copy link
Contributor

Choose a reason for hiding this comment

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

Consider inserting an arrow for clarity in the enumeration.

- `AUTHMODE` is the authentication strategy of the provider (For now we have => OAUTH, API, BASIC)
+ `AUTHMODE` is the authentication strategy of the provider (For now we have: OAUTH, API, BASIC)

Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation.

Suggested change
`AUTHMODE` is the authentication strategy of the provider (For now we have => OAUTH, API, BASIC)
`AUTHMODE` is the authentication strategy of the provider (For now we have: OAUTH, API, BASIC)

Comment on lines +86 to +87
// i.e HUBSPOT_CRM_CLOUD_OAUTH
// i.e ZENDESK_TICKETING_CLOUD_OAUTH
Copy link
Contributor

Choose a reason for hiding this comment

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

Use periods in abbreviations consistently.

- // i.e HUBSPOT_CRM_CLOUD_OAUTH
- // i.e ZENDESK_TICKETING_CLOUD_OAUTH
+ // i.e. HUBSPOT_CRM_CLOUD_OAUTH
+ // i.e. ZENDESK_TICKETING_CLOUD_OAUTH

Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation.

Suggested change
// i.e HUBSPOT_CRM_CLOUD_OAUTH
// i.e ZENDESK_TICKETING_CLOUD_OAUTH
// i.e. HUBSPOT_CRM_CLOUD_OAUTH
// i.e. ZENDESK_TICKETING_CLOUD_OAUTH

# 2. Update the construction of the authentication url (used in the frontend)

Modify the `/packages/shared/src/authUrl.ts` file.

Copy link
Contributor

Choose a reason for hiding this comment

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

Consider adding a comma after introductory phrases for clarity.

- Right now we only coded the oAuth2 side so we'll focus on it here.
+ Right now, we only coded the oAuth2 side so we'll focus on it here.

Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation.

Suggested change

cp .env.example .env
```
</Step>
{" "}
Copy link
Contributor

Choose a reason for hiding this comment

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

Remove unpaired symbols that may cause formatting issues.

- {" "}
+ 

Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation.

Suggested change
{" "}

./apps/frontend_snippet/node_modules ```
</Step>

{" "}
Copy link
Contributor

Choose a reason for hiding this comment

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

Remove unpaired symbols that may cause formatting issues.

- {" "}
+ 

Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation.

Suggested change
{" "}

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 2

Actionable comments outside the diff hunks (3)
docs/open-source/contributors.mdx (3)

Line range hint 9-9: Correct the spelling of "environment" and use "set up" as two words when used as a verb.

- ### Setup your environnement
+ ### Set up your environment

Line range hint 44-44: Remove the space before the exclamation mark.

- Make sure you are inside `packages/api/src` where the server lives !
+ Make sure you are inside `packages/api/src` where the server lives!

Line range hint 46-46: Remove the space before the question mark.

- # You want to add a new 3rd Party not yet supported ? 🧑‍🎤
+ # You want to add a new 3rd Party not yet supported? 🧑‍🎤

})
export class CrmConnectionModule {}
```
## 2. Build your provider service

# You want to map a common object to your new 3rd Party ? 👩‍🎤
Copy link
Contributor

Choose a reason for hiding this comment

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

Remove the space before the question mark.

- # You want to map a common object to your new 3rd Party ? 👩‍🎤
+ # You want to map a common object to your new 3rd Party? 👩‍🎤

Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation.

Suggested change
# You want to map a common object to your new 3rd Party ? 👩‍🎤
# You want to map a common object to your new 3rd Party? 👩‍🎤

})
export class ContactModule {}
```
The script will automatically scan the `/crm/contact/services` folder and detect any new service folder so all dependencies and imports are updated across the codebase.

### Congrats Hero ! 🦸‍♀️
Copy link
Contributor

Choose a reason for hiding this comment

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

Remove the space before the exclamation mark.

- ### Congrats Hero ! 🦸‍♀️
+ ### Congrats Hero! 🦸‍♀️

Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation.

Suggested change
### Congrats Hero ! 🦸‍♀️
### Congrats Hero! 🦸‍♀️

@naelob naelob merged commit 064cbce into main Apr 9, 2024
9 of 14 checks passed
@rflihxyz rflihxyz deleted the feat/update-docs-contributors branch May 4, 2024 19:20
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