Skip to content

Commit

Permalink
Revert "feat: merge branch 'arb-ltip' into deployments/arbitrum"
Browse files Browse the repository at this point in the history
This reverts commit c353850, reversing
changes made to adbf58a.
  • Loading branch information
acaldas committed Aug 11, 2024
1 parent c353850 commit 78222a4
Show file tree
Hide file tree
Showing 82 changed files with 8,167 additions and 8,142 deletions.
Binary file removed .github/app.png
Binary file not shown.
2 changes: 1 addition & 1 deletion .github/workflows/build-and-deploy-arbitrum-staging.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
--build-arg VITE_DISABLE_DELETE_CLOUD_DRIVES=true
--build-arg VITE_DISABLE_DELETE_LOCAL_DRIVES=true
--build-arg VITE_LOCAL_DRIVES_ENABLED=false
--build-arg VITE_DEFAULT_DRIVES_URL=https://apps.powerhouse.io/alpha/arbitrum/switchboard/d/arbitrum-ltipp-grantees,https://apps.powerhouse.io/alpha/arbitrum/switchboard/d/arbitrum-stip-grantees
--build-arg VITE_DEFAULT_DRIVES_URL=https://apps.powerhouse.io/alpha/arbitrum/switchboard/d/arbitrum-ltipp-grantees,https://apps.powerhouse.io/alpha/arbitrum/switchboard/d/arbitrum-stip
--build-arg VITE_RENOWN_CHAIN_ID=42161
--build-arg VITE_SENTRY_DSN=${{ secrets.SENTRY_DSN }}
--build-arg VITE_SENTRY_ENV=${{ secrets.SENTRY_ENV }}
Expand Down
5 changes: 4 additions & 1 deletion .releaserc
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,10 @@
}
],
[
"@semantic-release/github"
"@semantic-release/github",
{
"draftRelease": true
}
]
]
}
164 changes: 0 additions & 164 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,167 +1,3 @@
# [1.0.0-dev.64](https://github.com/powerhouse-inc/document-model-electron/compare/v1.0.0-dev.63...v1.0.0-dev.64) (2024-08-07)


### Features

* fixed sentry console capture ([2962d91](https://github.com/powerhouse-inc/document-model-electron/commit/2962d916c6335f9a6cdef864917bdacd0d967d78))

# [1.0.0-dev.63](https://github.com/powerhouse-inc/document-model-electron/compare/v1.0.0-dev.62...v1.0.0-dev.63) (2024-08-07)


### Features

* bump libs ([e0b08c3](https://github.com/powerhouse-inc/document-model-electron/commit/e0b08c3af686b9a4e1b2ea02342ae74e35445e7c))

# [1.0.0-dev.62](https://github.com/powerhouse-inc/document-model-electron/compare/v1.0.0-dev.61...v1.0.0-dev.62) (2024-08-05)


### Features

* only open document when we know node is file ([9669a74](https://github.com/powerhouse-inc/document-model-electron/commit/9669a74d923d2a5c3b88ab857530731239a3d3f7))

# [1.0.0-dev.61](https://github.com/powerhouse-inc/document-model-electron/compare/v1.0.0-dev.60...v1.0.0-dev.61) (2024-08-05)


### Features

* log catched errors to sentry ([8e5e9ba](https://github.com/powerhouse-inc/document-model-electron/commit/8e5e9baf3bbe47894b67f0ca9652dfb855996f30))

# [1.0.0-dev.60](https://github.com/powerhouse-inc/document-model-electron/compare/v1.0.0-dev.59...v1.0.0-dev.60) (2024-08-05)


### Features

* bump libs ([a62aaf3](https://github.com/powerhouse-inc/document-model-electron/commit/a62aaf3b350974f50245f424c072a1cfc86c2d87))

# [1.0.0-dev.59](https://github.com/powerhouse-inc/document-model-electron/compare/v1.0.0-dev.58...v1.0.0-dev.59) (2024-08-05)


### Features

* bump libs ([6729c7a](https://github.com/powerhouse-inc/document-model-electron/commit/6729c7a9ca6efc8971e455ff9ccddf4d78a7f4e1))

# [1.0.0-dev.58](https://github.com/powerhouse-inc/document-model-electron/compare/v1.0.0-dev.57...v1.0.0-dev.58) (2024-08-05)


### Features

* bump libs ([3ad26e8](https://github.com/powerhouse-inc/document-model-electron/commit/3ad26e8957aaf8ab982c24f42e473886d4ef164e))

# [1.0.0-dev.57](https://github.com/powerhouse-inc/document-model-electron/compare/v1.0.0-dev.56...v1.0.0-dev.57) (2024-08-05)


### Features

* remove to lower case from slug generation ([180e747](https://github.com/powerhouse-inc/document-model-electron/commit/180e74792b54b707c15d0192ed01909723ca39fc))

# [1.0.0-dev.56](https://github.com/powerhouse-inc/document-model-electron/compare/v1.0.0-dev.55...v1.0.0-dev.56) (2024-08-02)


### Features

* updated document model deps ([efc3814](https://github.com/powerhouse-inc/document-model-electron/commit/efc38147792002975a87e433d2cf7f4091534b5e))

# [1.0.0-dev.55](https://github.com/powerhouse-inc/document-model-electron/compare/v1.0.0-dev.54...v1.0.0-dev.55) (2024-08-02)


### Features

* bump libs ([67c43fe](https://github.com/powerhouse-inc/document-model-electron/commit/67c43fe7257f9bd5890f89105417ed193353491e))

# [1.0.0-dev.54](https://github.com/powerhouse-inc/document-model-electron/compare/v1.0.0-dev.53...v1.0.0-dev.54) (2024-08-01)


### Features

* outdated app check improvements ([800b4b2](https://github.com/powerhouse-inc/document-model-electron/commit/800b4b25952417f7ecfdd78ecf3db291776d14a9))

# [1.0.0-dev.53](https://github.com/powerhouse-inc/document-model-electron/compare/v1.0.0-dev.52...v1.0.0-dev.53) (2024-08-01)


### Features

* add animated loader for editors ([0ef0cc5](https://github.com/powerhouse-inc/document-model-electron/commit/0ef0cc587bb04d3fa65a4fd133c4c42f5998c92c))

# [1.0.0-dev.52](https://github.com/powerhouse-inc/document-model-electron/compare/v1.0.0-dev.51...v1.0.0-dev.52) (2024-08-01)


### Features

* add suspense for editor component ([62f78e7](https://github.com/powerhouse-inc/document-model-electron/commit/62f78e7b2288c4ce346c9bcfde638c9fc943145f))
* expect undefined document ([d10ef75](https://github.com/powerhouse-inc/document-model-electron/commit/d10ef751d363f56dce29626ec8fbcc7d38fe945a))
* handle async editor switching ([453939b](https://github.com/powerhouse-inc/document-model-electron/commit/453939bdb2f110dca48a61e91707aaee3eeb9b9d))
* remove old store tabs ([816406e](https://github.com/powerhouse-inc/document-model-electron/commit/816406e8a04a48ac3dc659a8274162693f4d735f))

# [1.0.0-dev.51](https://github.com/powerhouse-inc/document-model-electron/compare/v1.0.0-dev.50...v1.0.0-dev.51) (2024-07-31)


### Features

* remove copy icons script ([23a309a](https://github.com/powerhouse-inc/document-model-electron/commit/23a309a181711bc150c65ee931138f0ba822de0a))

# [1.0.0-dev.50](https://github.com/powerhouse-inc/document-model-electron/compare/v1.0.0-dev.49...v1.0.0-dev.50) (2024-07-31)


### Features

* bump document-model-libs ([9f5516c](https://github.com/powerhouse-inc/document-model-electron/commit/9f5516c502769a4056e36d92187595c0ea53ea33))
* include copy and move handlers ([3b1342f](https://github.com/powerhouse-inc/document-model-electron/commit/3b1342f4ceb9c07eb1e1175daeb4647fde1d8792))
* only copy icons post install ([9866258](https://github.com/powerhouse-inc/document-model-electron/commit/9866258f1da336e3161232e279b68bbaf7c901b0))
* remove old tabs ([8a7f62d](https://github.com/powerhouse-inc/document-model-electron/commit/8a7f62dd4e6f2145f0f86fd3652a63645624e5da))
* remove react aria drag and drop ([80e0353](https://github.com/powerhouse-inc/document-model-electron/commit/80e035328daa59c423cde9199887df11b54b0934))
* update node lifecycle scripts ([e959228](https://github.com/powerhouse-inc/document-model-electron/commit/e959228254441df256a4477812b941623c64feea))

# [1.0.0-dev.49](https://github.com/powerhouse-inc/document-model-electron/compare/v1.0.0-dev.48...v1.0.0-dev.49) (2024-07-30)


### Features

* regenerate lockfile ([b88daf9](https://github.com/powerhouse-inc/document-model-electron/commit/b88daf91e491729e7b25e4e490293be0fa57cd63))

# [1.0.0-dev.48](https://github.com/powerhouse-inc/document-model-electron/compare/v1.0.0-dev.47...v1.0.0-dev.48) (2024-07-30)


### Features

* bump design system ([5870d52](https://github.com/powerhouse-inc/document-model-electron/commit/5870d5285014f3ee721af522c042a06cc8b18d51))

# [1.0.0-dev.47](https://github.com/powerhouse-inc/document-model-electron/compare/v1.0.0-dev.46...v1.0.0-dev.47) (2024-07-29)


### Features

* add comments ([a5e81b2](https://github.com/powerhouse-inc/document-model-electron/commit/a5e81b22b1d634548a6323ef5b4a5efa2b0a87ec))
* add node slugs ([e6a538a](https://github.com/powerhouse-inc/document-model-electron/commit/e6a538a39d00ad7c5fa9873805ae8532ac009259))
* bump libs ([977b43f](https://github.com/powerhouse-inc/document-model-electron/commit/977b43ff4611b34de8591047393f5fc328e80029))
* handle delete ([d541580](https://github.com/powerhouse-inc/document-model-electron/commit/d5415807add427e013d71df4cd7754618c423e22))
* handle drive id change is history ([07c9aeb](https://github.com/powerhouse-inc/document-model-electron/commit/07c9aeb41d345ef4435044352b9d4f417f7e98ff))
* handle history stack ([c1fb104](https://github.com/powerhouse-inc/document-model-electron/commit/c1fb104bbbe4c8cde3277d62f27348b66b249123))
* handle modal opening ([9404452](https://github.com/powerhouse-inc/document-model-electron/commit/9404452521f66177c859ebcf3fdea1ef5ad8002a))
* handle url navigation ([fe18c02](https://github.com/powerhouse-inc/document-model-electron/commit/fe18c02cd3a3c795f87a0f7b90fb3ecb21b0ee4c))
* move modals out of components ([300d094](https://github.com/powerhouse-inc/document-model-electron/commit/300d0947f54eb1893601542c26bb780767356cde))
* readd drive error handler ([42b647b](https://github.com/powerhouse-inc/document-model-electron/commit/42b647bd570caf94f66bcff9fcaae4368ecc3f42))
* remove selected node check ([0803390](https://github.com/powerhouse-inc/document-model-electron/commit/0803390c9281bb7c30c9908fca8fffeb55bcb034))
* rename hook for clarity ([f48848e](https://github.com/powerhouse-inc/document-model-electron/commit/f48848e269c6a3c494b447097994d34e350d99c9))
* simplify passing of props ([c7c3779](https://github.com/powerhouse-inc/document-model-electron/commit/c7c377933fe83e2612c97194de3d8a22eb1e579c))
* split navigation functions out of hooks ([7be8044](https://github.com/powerhouse-inc/document-model-electron/commit/7be8044978c50f2691121b9e92df4110ef95e906))
* use function for slug ([f107e92](https://github.com/powerhouse-inc/document-model-electron/commit/f107e92cff8e8a302abfa8c3822c9385de79c4ac))
* use new ui nodes context ([fa5dba4](https://github.com/powerhouse-inc/document-model-electron/commit/fa5dba456879cca391f40fbf4d1a6aaa4e2bfeef))
* use src name in copy ([409cff0](https://github.com/powerhouse-inc/document-model-electron/commit/409cff0dd75cd827e3103acd8d22a4a6a117d66f))

# [1.0.0-dev.46](https://github.com/powerhouse-inc/document-model-electron/compare/v1.0.0-dev.45...v1.0.0-dev.46) (2024-07-26)


### Features

* fix merge conflict when adding a new pullResponder ([6941c0a](https://github.com/powerhouse-inc/document-model-electron/commit/6941c0a836cd43aca631b626f2312957a201ca50))

# [1.0.0-dev.45](https://github.com/powerhouse-inc/document-model-electron/compare/v1.0.0-dev.44...v1.0.0-dev.45) (2024-07-22)


### Features

* ignore AbortError when user cancels file picker ([9c3cf4d](https://github.com/powerhouse-inc/document-model-electron/commit/9c3cf4d47b1d28442b21c491e7443c48969b5140))

# [1.0.0-dev.44](https://github.com/powerhouse-inc/document-model-electron/compare/v1.0.0-dev.43...v1.0.0-dev.44) (2024-07-17)


Expand Down
4 changes: 1 addition & 3 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -68,11 +68,9 @@ FROM macbre/nginx-brotli:latest AS runner
ARG X_TAG
WORKDIR /opt/app
ENV NODE_ENV=production
ARG PORT=80
ENV PORT=${PORT}
ARG BASE_PATH="/alpha/powerhouse/connect"
ENV BASE_PATH=${BASE_PATH}
COPY --from=builder /opt/app/dist /usr/share/nginx/html

COPY nginx.conf /etc/nginx/conf.d/default.conf.template
CMD /bin/sh -c "envsubst '\$PORT,\$BASE_PATH' < /etc/nginx/conf.d/default.conf.template > /etc/nginx/conf.d/default.conf" && nginx -g 'daemon off;'
CMD /bin/sh -c "envsubst '\$PORT,\$BASE_PATH' < /etc/nginx/conf.d/default.conf.template > /etc/nginx/conf.d/default.conf" && nginx -g 'daemon off;'
69 changes: 42 additions & 27 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,49 +1,64 @@
# Powerhouse Connect
# Document Model Editor Demo

Open-source desktop and web application for document model management.
Interact, create, edit and manage documents with ease.
Demo Electron app to interact with Budget Statement documents.

- Connect functions as a private editor & contributor tool for contributors of open organisations. It allows teams to manage internal documents with full control over the data ownership. Connect is available as stand-alone desktop application or in the cloud.
- Connect offers a navigation menu for adding, synchronising and browsing document drives that are shared within an organisation or are private to the contributor.
- Connect allows contributors to edit and work on different 'document model types' selected or defined by the organisation.
## Quickstart

![app](./.github/app.png)
```
npm install
npm run dev:web
```

## Usage

Install dependencies:

```bash
$ yarn install
```

Start development mode:

```bash
$ yarn start
```

## Prerequisites
Run browser version only:

You can follow these instructions to setup a dev environment:
```bash
$ yarn start:web
```

- Install [**Node (LTS)**](https://nodejs.org/en/download/)
- Clone this repository
- Run `npm install` to install dependencies
Create package for the current platform:

```bash
$ yarn make
```

**Starting Connect**
Build for Mac OSX: (only works on Mac)

```bash
npm start # start desktop app
# OR
npm run dev:web # start web app
$ npm make:mac
```

After initialized, you can access the web app at `http://localhost:5173`.
Build for Linux (deb and dpkg): (works on Linux or Mac)

**Create a packaged version of the desktop app**
```bash
$ npm make:linux
```

Build for Windows: (only works on Windows)

```bash
npm run make # Create package for the current platform
npm run make:mac # Create package for Mac OSX
npm run make:linux # Create package for Linux
npm run make:windows # Create package for Windows
$ npm make:windows
```

## Troubleshooting

- For a complete list of *Electron Forge* options and requirements, visit the [official docs](https://github.com/electron-userland/electron-forge#usage).

- If you're experiencing troubles with node-gyp on Windows 11, follow [this guide](https://devkimchi.com/2021/11/26/troubleshooting-node-gyp-package-on-windows11/).

- If you're experiencing troubles with node-gyp on older versions, check out [this guide](https://spin.atomicobject.com/2019/03/27/node-gyp-windows/).
- If you're experiencing troubles with node-gyp on Windows 11, follow [this guide](https://devkimchi.com/2021/11/26/troubleshooting-node-gyp-package-on-windows11/).

- To use yarn via Windows PowerShell, check [this guide](https://bobbyhadz.com/blog/yarn-cannot-be-loaded-running-scripts-disabled)
- If you're experiencing troubles with node-gyp on older versions, check out [this guide](https://spin.atomicobject.com/2019/03/27/node-gyp-windows/).

- For any other issues, reach out to our discord server [`#ask-powerhouse-team`](https://discord.com/channels/815917281728659516/883285185595047937) channel for help.
- To use yarn via Windows PowerShell, check [this guide](https://bobbyhadz.com/blog/yarn-cannot-be-loaded-running-scripts-disabled)
8 changes: 3 additions & 5 deletions connect.config.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
import { CLOUD, LOCAL, PUBLIC } from '@powerhousedao/design-system';

const DISABLE_ADD_PUBLIC_DRIVES =
import.meta.env.VITE_DISABLE_ADD_PUBLIC_DRIVES || undefined;
const DISABLE_ADD_CLOUD_DRIVES =
Expand Down Expand Up @@ -43,17 +41,17 @@ export default {
},
drives: {
sections: {
[LOCAL]: {
local: {
enabled: LOCAL_DRIVES_ENABLED !== 'false',
allowAdd: DISABLE_ADD_LOCAL_DRIVES !== 'true',
allowDelete: DISABLE_DELETE_LOCAL_DRIVES !== 'true',
},
[CLOUD]: {
cloud: {
enabled: CLOUD_DRIVES_ENABLED !== 'false',
allowAdd: DISABLE_ADD_CLOUD_DRIVES !== 'true',
allowDelete: DISABLE_DELETE_CLOUD_DRIVES !== 'true',
},
[PUBLIC]: {
public: {
enabled: PUBLIC_DRIVES_ENABLED !== 'false',
allowAdd: DISABLE_ADD_PUBLIC_DRIVES !== 'true',
allowDelete: DISABLE_DELETE_PUBLIC_DRIVES !== 'true',
Expand Down
15 changes: 1 addition & 14 deletions nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -48,17 +48,4 @@ server {
expires -1;
add_header Cache-Control "no-store, no-cache, must-revalidate, proxy-revalidate, max-age=0";
}

# Health check endpoints
location /healthz {
access_log off;
return 200 'OK';
add_header Content-Type text/plain;
}

location /readiness {
access_log off;
return 200 'OK';
add_header Content-Type text/plain;
}
}
}
Loading

0 comments on commit 78222a4

Please sign in to comment.