Skip to content

Commit

Permalink
Analytics (#228)
Browse files Browse the repository at this point in the history
* metricts-sentry

* fixes

* refactor

* mixpanel integration

* improvements

* improvements

* fixes

* changeset

* fixes

* fixes

* Update .changeset/few-scissors-sleep.md

Co-authored-by: Jordi Sala Morales <[email protected]>

* Update manifest.json

Co-authored-by: Jordi Sala Morales <[email protected]>

* Update vite.config.ts

Co-authored-by: Jordi Sala Morales <[email protected]>

* fixes

* fixes

* fixes

* lint

---------

Co-authored-by: Jordi Sala Morales <[email protected]>
  • Loading branch information
Cenadros and jordisala1991 authored Oct 28, 2024
1 parent d7426e6 commit a079f16
Show file tree
Hide file tree
Showing 20 changed files with 1,253 additions and 823 deletions.
5 changes: 5 additions & 0 deletions .changeset/few-scissors-sleep.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'penpot-exporter': minor
---

Added basic analytics and error tracking using MixPanel and Sentry
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,6 @@
node_modules
dist
ui-src/.env

# Sentry Config File
.env.sentry-build-plugin
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
<a href="https://penpot.app/"><b>Penpot Website</b></a> •
<a href="https://community.penpot.app/t/figma-to-penpot-export-plugin/5554"><b>Export Figma to Penpot (Penpot community)</b></a> •
<a href="https://community.penpot.app/"><b>Penpot Community</b></a> •
<a href="https://www.figma.com/community/plugin/1219369440655168734/penpot-exporter"><b>Plugin in Figma community</b></a>
<a href="https://www.figma.com/community/plugin/1219369440655168734/penpot-exporter"><b>Plugin in Figma community</b></a>
</p>

<p align="center">
Expand Down Expand Up @@ -96,6 +96,10 @@ then selecting "Download ZIP". Extract the ZIP file to a location on your comput
3. Once you are in the correct folder, you can run the `npm install` command to install the
dependencies, and then the `npm run build` command to build the plugin.

#### Building for production:

Follow the same steps as above, but instead of running `npm run build`, run `npm run build:prod`.

### Add to Figma

`Figma menu` > `Plugins` > `Development` > `Import plugin from manifest…` To add the plugin to
Expand Down
9 changes: 8 additions & 1 deletion manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,13 @@
"main": "dist/code.js",
"ui": "dist/index.html",
"editorType": ["figma"],
"networkAccess": { "allowedDomains": ["none"] },
"networkAccess": {
"allowedDomains": [
"https://o4508183201316864.ingest.de.sentry.io",
"https://api-js.mixpanel.com"
],
"reasoning": "We use Sentry and Mixpanel to monitor the performance of the plugin and get information about errors to continue improving the experience."
},
"permissions": ["currentuser"],
"documentAccess": "dynamic-page"
}
Loading

0 comments on commit a079f16

Please sign in to comment.