Skip to content

Commit

Permalink
Codebase restructure (#197)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
bartolomej authored Nov 2, 2023
1 parent 81bf858 commit 315954d
Show file tree
Hide file tree
Showing 603 changed files with 38,657 additions and 68,198 deletions.
6 changes: 6 additions & 0 deletions .github/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
requiredHeaders:
- Prerequisites
- Expected Behavior
- Current Behavior
- Possible Solution
- Your Environment
17 changes: 17 additions & 0 deletions .github/stale.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Number of days of inactivity before an issue becomes stale
daysUntilStale: 60
# Number of days of inactivity before a stale issue is closed
daysUntilClose: 7
# Issues with these labels will never be considered stale
exemptLabels:
- discussion
- security
# Label to use when marking an issue as stale
staleLabel: wontfix
# Comment to post when marking an issue as stale. Set to `false` to disable
markComment: >
This issue has been automatically marked as stale because it has not had
recent activity. It will be closed if no further activity occurs. Thank you
for your contributions.
# Comment to post when closing a stale issue. Set to `false` to disable
closeComment: false
49 changes: 49 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: Publish

on:
release:
types:
- created

jobs:
publish:
runs-on: ${{ matrix.os }}

strategy:
matrix:
os: [ macos-latest ]

steps:
- name: Checkout git repo
uses: actions/checkout@v3

- name: Install Node and NPM
uses: actions/setup-node@v3
with:
node-version: 18
cache: npm

- name: Run install
uses: borales/actions-yarn@v4
with:
cmd: install

- name: Setup Go environment
uses: actions/[email protected]

- name: Build
run: |
yarn run build
- name: Publish releases
env:
# These values are used for auto updates signing
APPLE_ID: ${{ secrets.APPLE_ID }}
APPLE_APP_SPECIFIC_PASSWORD: ${{ secrets.APPLE_APP_SPECIFIC_PASSWORD }}
CSC_LINK: ${{ secrets.CSC_LINK }}
CSC_KEY_PASSWORD: ${{ secrets.CSC_KEY_PASSWORD }}
# This is used for uploading release assets to github
GH_TOKEN: ${{ secrets.GH_TOKEN }}
run: |
npm exec electron-builder -- --publish always --win --mac --linux
working-directory: ./apps/electron
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,6 @@ flow.json
.envrc
server/certbot
.envrc
dist
.turbo
*.tsbuildinfo
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
16.15.0
18
3 changes: 0 additions & 3 deletions app/.gitignore

This file was deleted.

42 changes: 0 additions & 42 deletions app/README.md

This file was deleted.

104 changes: 0 additions & 104 deletions app/electron-builder.json

This file was deleted.

32 changes: 0 additions & 32 deletions app/scripts/build.sh

This file was deleted.

36 changes: 0 additions & 36 deletions app/scripts/notarize.js

This file was deleted.

Loading

0 comments on commit 315954d

Please sign in to comment.