38 Commits

Author SHA1 Message Date
Mário Nunes
9cbcd55c74 chore: vite migration 2024-05-31 07:45:14 +01:00
Luke Watts
4b95f4daf3 fix: remove duplicate comments (#3427) 2024-04-06 12:35:12 +02:00
Luke Watts
17d97e0551 chore: move theme definitions out to standalone package 2023-03-26 21:48:34 +02:00
chrismclarke
ece7106dc9 chore: remove legacy app-engine code 2022-06-06 12:47:54 -07:00
Chris
9fb658ebbf chore: add build script for oa-shared 2022-04-11 12:34:27 +01:00
Luke Watts
d22d06d44c feat: remove styled-components
As part of our work to support SSR flows we are migrating
towards Emotion which offers better support for this feature.
2022-03-29 07:15:35 +02:00
Luke Watts
c38786a1a1 chore(ci): run yarn link to prep 2022-03-07 22:03:44 +01:00
Luke Watts
72dc4fa67a feat: extract components out to standalone package
The Problem:
At the moment our components are stored
within the root of the yarn workspace. This
works well for the existing usage but limits
the portability of our UI components. Whilst
researching server side rendering I attempted
to load a component into a serverless function
I encountered numerous issues tied to the
combination of TypeScript and Yarn workspace.

Proposed Solution:

Extract all core and reusable components into
a new `oa-components` workspace located under
the packages directory.

This package could then be consumed by the primary
application AND additional applications, for example
a standalone serverless function to generate
server side rendered documents.

The external interface for this package would be:

1. Components imported via `import {Button} from 'oa-components'`
2. A storybook build published for external reference.

Advantages:

1. Simplify the project configuration and better align
with established patterns of Yarn Workspaces & Typescript.
2. Support additional usecases for UI components
3. Lower barrier to entry for designers/contributors looking
to make improvements and fix bugs in UI components.
4. Encourage a separation between the data layer and UI components,
   which could also simplify the testing of components.
5. Move our storybook configuration closer to the components which it
   aims to provide documentation for.
6. Allow us to apply more structured coding standards for components.

Disadvantages:

1. Complicates contribution for folks working across backend logic,
   which would remain in the project root, whilst other changes would be
required to made in `oa-components`. Similar to the division between the
primary application and our serverless functions.
2. We would need to define a criteria of what constitutes a reusable
   component vs those stateful singletons which only many sense within
the root application.
2022-03-07 21:48:47 +01:00
Luke Watts
a58cb330ad chore(deps): fix typescript configuration 2022-02-02 08:06:41 +01:00
Luke Watts
0759fce652 chore(deps): upgrade typescript to latest 2022-01-30 22:02:59 +01:00
Luke Watts
1450bd7f2f fix: type definitions for tests
The recently introduced `.toBeInTheDocument` assertation from `@testing-library` caused the type check as part of the functions precompilation to break.

There are few interesting things here;

* That typecheck includes tests files, there aren't many of them yet, but they shouldn't be scanned as part of this flow.
* This broken change was mergeable into `master` because we do no validation on the functions before we try to deploy them. There is [a PR](https://github.com/ONEARMY/community-platform/pull/1252), which introduces a Circle CI job to validate their correctness. I would need to do some investigation to see if this would have caught the issue.
2021-12-20 13:22:05 +01:00
chrismclarke
4122fe5f2e update styled components 2021-06-02 12:23:30 -07:00
chrismclarke
3e75a3c6a1 refactor tests 2021-05-28 08:45:28 -07:00
chrismclarke
40b7930ab9 remove tsconfig paths (react scripts) 2021-05-27 11:57:14 -07:00
Chris\Laptop
4b749f81a4 fix functions build issue 2021-05-26 16:57:39 -04:00
Chris
aba647f6e0 upgrade deps and yarn v2 2021-05-03 10:21:20 +01:00
Benjamin Gammaire
8c0707981f revert commit a1439eb276 2020-08-25 12:11:08 +01:00
Philipp Hugenroth
a1439eb276 Revert "v1.2.1" 2020-08-24 15:02:01 +02:00
chrismclarke
0fa1d46811 remove old config files 2020-06-14 19:40:54 -07:00
chrismclarke
adc3e4b04d Merge branch 'master' of https://github.com/ONEARMY/community-platform into refactor/dependencies 2020-06-14 18:42:55 -07:00
chrismclarke
f714a5d380 fix tsconfig 2020-06-01 13:55:38 -07:00
chrismclarke
873221e0d2 fix functions build 2020-04-21 09:24:59 -07:00
chrismclarke
ffadd6468d uneject create-react-app, remove unused deps 2020-04-20 15:36:27 -07:00
chrismclarke
a5ef3fb220 tsconfig minor tweaks 2020-04-19 15:07:49 -07:00
Chris\Laptop
47fb76a0ae add feedback page and form 2019-04-24 13:40:13 +02:00
CHRIS-DESKTOP\Chris
fb80fbe298 fix react 18 upgrade 2019-02-12 17:11:41 +00:00
CHRIS-DESKTOP\Chris
16aafd2710 tslint - remove no explicit any and member-access rules 2018-12-22 15:46:39 +00:00
Chris\Laptop
c42076c633 support json imports 2018-12-07 16:42:44 +00:00
Chris\Laptop
88ee4c9d2c db backup function 2018-11-21 12:31:56 +01:00
Chris\Laptop
3a3106034f exclude functions from main tsconfig 2018-11-20 11:30:43 +01:00
Chris\Laptop
dca9e78c63 fix tsconfig rootDir warning 2018-11-08 20:28:19 +00:00
CHRIS-DESKTOP\Chris
172db5bfaf add mobx devtools support (closes #70) 2018-11-07 01:43:11 +00:00
Ben Naylor
7ef9cc6410 feat: mobx FTW 2018-10-31 17:54:59 +01:00
Ben Naylor
3063e967e5 refactor: re-organise root folders + implement mainLayout 2018-10-31 17:53:44 +01:00
Benjamin Gammaire
f1fecaa62c display tutorial page from firebase data 2018-10-16 16:54:56 +02:00
Chris\Laptop
7b5b6f6d5d Merge branch 'documentation' into dev
# Conflicts:
#	package.json
#	yarn.lock
2018-10-10 08:46:38 +02:00
Chris\Laptop
872a010380 add material ui and icons, enable custom theme 2018-10-08 16:19:09 +02:00
laptop\chris
bdc64570fc Initial commit 2018-09-27 15:03:33 +02:00