Skip to content

Commit 315954d

Browse files
authored
Codebase restructure (#197)
* add initial interfaces, init turborepo * migrate first batch of flow services, add example in-memory index implementation * move most of flow services to core package * move more services to modules * refactor processor service * remove emulator re-indexing logic from indexer service * fix various type issues * setup build, remove backend, run demo app successfully * use axios instead of node http module * fix non-managed emulator processing * move electron app into apps folder (first pass) * initialize electron boierplate * move reusable components to shared ui lib, setup build config (first pass) * refactor hook apis * fix type issues * remove usages of legacy services, fix build issues by not using the transpiled build lib files * restructured services, fix more type issues * more migration to new electron app * remove obsolete package folders, fix mismatched react versions * remove demo app, add sample communication with ipc * fix duplicate react-router-dom versions * remove api hooks context * fix svg component loading * add missing electron app * add workspace management logic * fix monotonic address processing * fix asset import type errors, setup fonts * rename project related files * enable consent dialog * improve ipc file structure * handle interaction parsing * implement flow services * fix interaction templates retrieval * update electron config, package go executables in electron * move electron builder config to yaml file * fix binary files path in development * consolidate fcl interactions (first pass) * fix initial indexing * sort resources by created date by default * remove unnecessary toasts * start/stop emulator on workspace lifecycle events, fix index syncing * cleanup snapshots service, fix workspace lifecycle management * migrate snapshots * remove obsolete service * tie processing scheduler to workspace lifecycle * list emulator logs * fix old type usages * fix account re-indexing * fix svg loading * fix help message * fix body overflow * make side navigation responsive for smaller windows * handle emulator API errors * fix side nav height * improve FlowEvent types for core events * store keys in separate index, handle key event updates, fix managed account creation * fix details tab scroll interference, fix block details bug * improve help message * again start generating account tags * fix lifecycle timestamp management * resolve some todos * graceful process shutdown * handle temporary workspaces * handle transaction not found after rollback * stop storing managed private keys within index * fix automatic persistence * synchronize snapshot index * setup & run prettier * fix initial outcome * fix resource loading handling * fix managed key retrieval by account * fix slow polling when executing transaction * add comment, concurrently execute independent calls * simplify some code * handle contract events, simplify indexing code * update electron builder config * pass logs to browser window * handle event listener errors * fix $PATH * resolve todos * fix fix-path to work with esm modules * configure gateway port * bring back dependency errors * cleanup erb files * synchronize snapshot index after configuring * update electron builder config * update github actions * setup go env in action * remove unneeded action * temp update action trigger settings * fix publish action * fix app ID * update secret reference * fix electron formatting * set teamId * different approach for checking emulator api statuses * remove gateway config for now * try building without notarization * resolve remaining todos * revert temp changes in publish action
1 parent 81bf858 commit 315954d

File tree

603 files changed

+38657
-68198
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

603 files changed

+38657
-68198
lines changed

.github/config.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
requiredHeaders:
2+
- Prerequisites
3+
- Expected Behavior
4+
- Current Behavior
5+
- Possible Solution
6+
- Your Environment

.github/stale.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Number of days of inactivity before an issue becomes stale
2+
daysUntilStale: 60
3+
# Number of days of inactivity before a stale issue is closed
4+
daysUntilClose: 7
5+
# Issues with these labels will never be considered stale
6+
exemptLabels:
7+
- discussion
8+
- security
9+
# Label to use when marking an issue as stale
10+
staleLabel: wontfix
11+
# Comment to post when marking an issue as stale. Set to `false` to disable
12+
markComment: >
13+
This issue has been automatically marked as stale because it has not had
14+
recent activity. It will be closed if no further activity occurs. Thank you
15+
for your contributions.
16+
# Comment to post when closing a stale issue. Set to `false` to disable
17+
closeComment: false

.github/workflows/publish.yml

Lines changed: 49 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
name: Publish
2+
3+
on:
4+
release:
5+
types:
6+
- created
7+
8+
jobs:
9+
publish:
10+
runs-on: ${{ matrix.os }}
11+
12+
strategy:
13+
matrix:
14+
os: [ macos-latest ]
15+
16+
steps:
17+
- name: Checkout git repo
18+
uses: actions/checkout@v3
19+
20+
- name: Install Node and NPM
21+
uses: actions/setup-node@v3
22+
with:
23+
node-version: 18
24+
cache: npm
25+
26+
- name: Run install
27+
uses: borales/actions-yarn@v4
28+
with:
29+
cmd: install
30+
31+
- name: Setup Go environment
32+
uses: actions/[email protected]
33+
34+
- name: Build
35+
run: |
36+
yarn run build
37+
38+
- name: Publish releases
39+
env:
40+
# These values are used for auto updates signing
41+
APPLE_ID: ${{ secrets.APPLE_ID }}
42+
APPLE_APP_SPECIFIC_PASSWORD: ${{ secrets.APPLE_APP_SPECIFIC_PASSWORD }}
43+
CSC_LINK: ${{ secrets.CSC_LINK }}
44+
CSC_KEY_PASSWORD: ${{ secrets.CSC_KEY_PASSWORD }}
45+
# This is used for uploading release assets to github
46+
GH_TOKEN: ${{ secrets.GH_TOKEN }}
47+
run: |
48+
npm exec electron-builder -- --publish always --win --mac --linux
49+
working-directory: ./apps/electron

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,6 @@ flow.json
99
.envrc
1010
server/certbot
1111
.envrc
12+
dist
13+
.turbo
14+
*.tsbuildinfo

.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
16.15.0
1+
18

app/.gitignore

Lines changed: 0 additions & 3 deletions
This file was deleted.

app/README.md

Lines changed: 0 additions & 42 deletions
This file was deleted.

app/electron-builder.json

Lines changed: 0 additions & 104 deletions
This file was deleted.

app/scripts/build.sh

Lines changed: 0 additions & 32 deletions
This file was deleted.

app/scripts/notarize.js

Lines changed: 0 additions & 36 deletions
This file was deleted.

0 commit comments

Comments
 (0)