Skip to content

Commit 9075ef6

Browse files
authored
Merge pull request #809 from complexdatacollective/fix/skiplogic-filter-validate
Fix/Skip logic Rule validation
2 parents 1288b0c + dcfb467 commit 9075ef6

File tree

8 files changed

+67866
-66578
lines changed

8 files changed

+67866
-66578
lines changed

.github/workflows/dist.yml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: Dist
22
on:
33
push:
44
branches:
5-
- 'release/**'
5+
- "release/**"
66

77
# Allows you to run this workflow manually from the Actions tab
88
workflow_dispatch:
@@ -14,25 +14,24 @@ jobs:
1414
- uses: actions/checkout@v3
1515
with:
1616
submodules: recursive
17-
# Set python version to 2.x due to node-gyp and sass
1817
- uses: actions/setup-python@v4
1918
with:
20-
python-version: '2.7.18'
19+
python-version: "3.10.12"
2120
# update apt cache
2221
- name: Update apt cache
2322
run: sudo apt-get update -y
2423
# Set node version
2524
- uses: actions/setup-node@v2
2625
with:
27-
node-version: '14.21.3'
26+
node-version: "14.21.3"
2827
- name: Set NPM 7
29-
run: npm install -g npm@8.3.2
28+
run: npm install -g npm@8.19.4
3029
# Cache node_modules
3130
- uses: actions/cache@v2
3231
env:
3332
cache-name: cache-node-modules
3433
with:
35-
path: '**/node_modules'
34+
path: "**/node_modules"
3635
key: ${{ runner.os }}-modules-${{ hashFiles('**/package-lock.json') }}
3736

3837
- name: Install MDNS build dependencies

.github/workflows/main.yml

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: CI
22
on:
33
push:
4-
branches: [ master ]
4+
branches: [master]
55
pull_request:
66

77
# Allows you to run this workflow manually from the Actions tab
@@ -14,25 +14,24 @@ jobs:
1414
- uses: actions/checkout@v3
1515
with:
1616
submodules: recursive
17-
# Set python version to 2.x due to node-gyp and sass
1817
- uses: actions/setup-python@v4
1918
with:
20-
python-version: '2.7.18'
19+
python-version: "3.10.12"
2120
# update apt cache
2221
- name: Update apt cache
2322
run: sudo apt-get update -y
2423
# Set node version
2524
- uses: actions/setup-node@v2
2625
with:
27-
node-version: '14.21.3'
26+
node-version: "14.21.3"
2827
- name: Set NPM 7
29-
run: npm install -g npm@8.3.2
28+
run: npm install -g npm@8.19.4
3029
# Cache node_modules
3130
- uses: actions/cache@v2
3231
env:
3332
cache-name: cache-node-modules
3433
with:
35-
path: '**/node_modules'
34+
path: "**/node_modules"
3635
key: ${{ runner.os }}-modules-${{ hashFiles('**/package-lock.json') }}
3736

3837
- name: Install MDNS build dependencies
@@ -54,25 +53,24 @@ jobs:
5453
- uses: actions/checkout@v3
5554
with:
5655
submodules: recursive
57-
# Set python version to 2.x due to node-gyp and sass
5856
- uses: actions/setup-python@v4
5957
with:
60-
python-version: '2.7.18'
58+
python-version: "3.10.12"
6159
# update apt cache
6260
- name: Update apt cache
6361
run: sudo apt-get update -y
6462
# Set node version
6563
- uses: actions/setup-node@v2
6664
with:
67-
node-version: '14.21.3'
65+
node-version: "14.21.3"
6866
- name: Set NPM 7
69-
run: npm install -g npm@8.3.2
67+
run: npm install -g npm@8.19.4
7068
# Cache node_modules
7169
- uses: actions/cache@v2
7270
env:
7371
cache-name: cache-node-modules
7472
with:
75-
path: '**/node_modules'
73+
path: "**/node_modules"
7674
key: ${{ runner.os }}-modules-${{ hashFiles('**/package-lock.json') }}
7775

7876
- name: Install MDNS build dependencies

README.md

Lines changed: 38 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -1,38 +1,52 @@
11
# Architect [![Build Status](https://travis-ci.org/complexdatacollective/Architect.svg?branch=master)](https://travis-ci.org/complexdatacollective/Architect)
2-
[![FOSSA Status](https://app.fossa.io/api/projects/git%2Bgithub.com%2Fcomplexdatacollective%2FArchitect.svg?type=shield)](https://app.fossa.io/projects/git%2Bgithub.com%2Fcomplexdatacollective%2FArchitect?ref=badge_shield)
3-
4-
Technologies used:
5-
ES6 (via Babel)
6-
React
7-
Redux
8-
Electron
9-
Cordova
10-
SCSS
11-
Jest (Testing suite)
12-
React Scripts
132

14-
# Operation
3+
Network Canvas Architect is a survey design tool for the [Network Canvas](https://networkcanvas.com) suite of applications. It is built on [Electron](https://electronjs.org/) and [React](https://reactjs.org/).
4+
5+
**This tool is in maintainance mode.** We are not actively developing new features, but will continue to fix bugs and accept pull requests. Community contributions are very welcome!
6+
7+
See the [Network Canvas](https://networkcanvas.com) website for more information.
8+
9+
For questions and support, please visit the [Network Canvas User Community](https://community.networkcanvas.com/).
10+
11+
## Setting up a development environment
12+
13+
### Prerequisites
14+
15+
- [Node.js](https://nodejs.org/en/) (v14.21.3)
16+
- [npm](https://www.npmjs.com/) (v8.19.4)
17+
- [Git](https://git-scm.com/)
18+
- [Python](https://www.python.org/) (v3.10.12)
19+
20+
### Installation
21+
22+
1. Clone the repository
23+
24+
```sh
25+
git clone https://github.com/complexdatacollective/Architect.git
26+
```
27+
28+
2. Fetch submodules
1529

16-
## Node/NPM Version
30+
```sh
31+
git submodule update --init --recursive -f
32+
```
1733

18-
This project currently requires version `14.21.3` of node, and version `8.3.2` of npm. These are the only supported versions for this project.
34+
3. Install NPM packages
1935

20-
As a convenience, the repository contains a `.node-version` file that enables convinient use of a node environment manager.
36+
```sh
37+
npm install
38+
```
2139

22-
## Installation
23-
This repository assumes that `npm` is installed. If you don't have it installed, here are [installation instructions](https://docs.npmjs.com/getting-started/installing-node).
40+
Note: for Apple Silicon users, you need to install the `electron` package manually:
2441

25-
0. Install the correct node and npm versions
26-
1. Clone this repository.
27-
2. Fetch submodules by typing `git submodule update --init --recursive -f`.
28-
3. Enter the directory where the repository is cloned, and install the project dependencies by typing `npm install`.
29-
4. Refer to the development tasks section below to learn how to test and build the app.
42+
```sh
43+
npm install electron --arch=x86
44+
```
3045

31-
### Available commands:
46+
# Operation
3247

3348
|`npm run <script>`|Description|
3449
|------------------|-----------|
35-
|`start`|Serves your app at `localhost:3000`.|
3650
|`start:architect:electron`|Serves your app for consumption by electron.|
3751
|`start:network-canvas:electron`|Serves network canvas for consumption by previewer.|
3852
|`electron:dev`|Runs electron window with contents of `start:architect:electron` and `start:network-canvas:electron`(must be run concurrently)|
@@ -68,24 +82,6 @@ There are two additional tasks to enable development within an electron app nati
6882
1. Copies the electron source to `./electron-dev`
6983
2. Runs the electron app from there
7084

71-
#### Dev tools
72-
73-
Electron supports [extensions to Chrome devtools](https://electronjs.org/docs/tutorial/devtools-extension) such as Redux DevTools.
74-
75-
In the development environment, these will be loaded if you provide one or more paths to your extensions (semicolon-separated) in the `NC_DEVTOOLS_EXTENSION_PATH` environment variable. The electron docs describe how to find the filepath for an extension once installed.
76-
77-
Example: enabling Redux Devtools on macOS:
78-
```bash
79-
NC_DEVTOOLS_EXTENSION_PATH=~/Library/Application\ Support/Google/Chrome/Default/Extensions/lmhkpmbekcpmknklioeibfkpmmfibljd/2.15.2_0 npm run electron:dev
80-
```
81-
82-
#### Environment options
83-
84-
```bash
85-
AUTO_OPEN_BROWSER=false # Set to false to disable browser auto open on `npm run start`, Default: true
86-
WEBPACK_DEV_SERVER_PORT=3003 # Configure port for dev server. Default: 3003
87-
CSC_IDENTITY_AUTO_DISCOVERY=false # Set to false to disable signing builds (speeds up build process)
88-
```
8985

9086
## Application Structure
9187

@@ -104,7 +100,3 @@ CSC_IDENTITY_AUTO_DISCOVERY=false # Set to false to disable signing builds (spe
104100
│ ├── ducks # Middleware, modules (ducks-style with actions, reducers, and action creators), and store
105101
│ └── utils # Helpers and utils
106102
```
107-
108-
109-
## License
110-
[![FOSSA Status](https://app.fossa.io/api/projects/git%2Bgithub.com%2Fcodaco%2FArchitect.svg?type=large)](https://app.fossa.io/projects/git%2Bgithub.com%2Fcodaco%2FArchitect?ref=badge_large)

build-resources/scripts/afterSignHook.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ async function note(params) {
99
if (process.platform !== 'darwin') {
1010
return;
1111
}
12-
console.log('afterSign hook triggered', params);
1312

1413
const appPath = path.join(params.appOutDir, `${params.packager.appInfo.productFilename}.app`);
1514
if (!fs.existsSync(appPath)) {

network-canvas

0 commit comments

Comments
 (0)