Commit Graph

17 Commits

Author SHA1 Message Date
Roopesh Chander
c283610402 Signout when connlib calls onDisconnect (#2687)
Fixes #2304.

- If the tunnel disconnects because of connlib, or because the tunnel is
incorrectly configured (we don't expect that to happen), the user is
signed out.
- If the tunnel disconnects because the user disconnected it in
Settings, the user is not signed out, and no alert is shown
- If the tunnel disconnects because the OS brought it down for some
other reason (not sure what it could be), the user is not signed out,
and an alert is shown. Alert will be shown only if the app is running at
that time.
2023-11-25 11:08:51 +00:00
Andrew Dryga
1e6016e664 Fix codespell false positive 2023-10-31 19:08:08 -06:00
Pratik Velani
f4ff3eb571 feat(android): Resources Table UI view (#1954)
* Implements UI for resources received on `onUpdateResources` callback.
* Subsequent call to `onUpdateResources` calculates diff and updates the
updates rows only.

---------

Co-authored-by: Jamil Bou Kheir <jamilbk@users.noreply.github.com>
2023-08-28 12:27:18 +00:00
Jamil
3023c716c9 Add updates from master that we want in cloud (#1774)
Adds the changes we want to keep in cloud in prep for #1726:

- `website/`
- `.codespellrc` updates
- `README.md` updates
2023-07-13 02:54:44 +00:00
Roopesh Chander
c9c13e1e11 Bring in apple client into monorepo (#1737)
This PR brings in the apple client into the monorepo.

---------

Co-authored-by: Jamil <jamilbk@users.noreply.github.com>
2023-07-07 10:37:24 -07:00
Francesca Lovebloom
a4810986c7 connlib: Improve FFI bridges for Apple and Android (#1691)
This makes it possible to build the Apple/Android FFI bridges and
integrate them with their respective client apps.

---------

Signed-off-by: Francesca Lovebloom <franlovebloom@gmail.com>
Co-authored-by: Roopesh Chander <roop@roopc.net>
2023-06-28 11:29:59 -06:00
Jamil
c30f571d73 Fix minor bugs and tidy up existing work on new views (#1628)
Just fixing some bugs and inconsistencies I found while going through
the new views.
2023-05-23 09:10:28 -07:00
Andrew Dryga
c5615060b4 Remove fz_vpn, fz_wall, Omnibus and start restructuring apps 2023-03-31 09:51:40 -06:00
Andrew Dryga
c9adae866c Use correct case in codespell file 2023-03-30 10:18:24 -06:00
Andrew Dryga
34fd0d21f4 Make codespell happy about SSL value examples 2023-03-30 09:56:44 -06:00
Jamil
643330fcbe Merge blog site into docs, serve at subpaths (#1419)
- [x] Move all docs to be served under `/docs` prefix
- [x] Merge blog articles and serve under `/blog` prefix
- [x] Remove docs side bar for blog content
- [x] Remake marketing site pages in markdown/react
- [x] Serve marketing site under root path
- [x] Update all old links and paths to use new prefixes
2023-02-15 16:52:16 -08:00
Jamil
69335153ce Remove docs.firezone.dev CNAME (#1418)
This corresponds to step (1) of #1417
2023-02-09 15:19:19 -08:00
Andrew Dryga
6003ea7e26 Generate API docs from tests and Phoenix Controller docs (#1286)
1. The test data is taken from tests, you can override attributes by
adding keyword params to `doc` macro;
2. Additionally, you can add a section title using a `@moduledoc` in a
controller and a controller action title using `@doc` on a controller
function. (It will be added to all instances of its usage).
3. To make parameters nice a helper was added to build it using
`DocHelper`, you can find an example in UserController.

Overall, the code is messy, I'll need to revisit it, but was doing it in
a rush so hope it's good enough for v0.

Results you can see at https://firezone.docs.apiary.io/.

To generate it locally run `DOC=1 mix test
test/fz_http_web/controllers/json`.

Co-authored-by: Jamil Bou Kheir <jamilbk@users.noreply.github.com>
2023-01-12 22:40:21 -08:00
Jamil
1de24ff77e REST API (#1155)
### TODO

- [x] "/v0"
- [x] Double-check migration order; re-timestamp if necessary
- [x] Move `sites` fields to `configurations` so they can be updated
from API
- [x] #1240 -- it introduces possible race conditions for API requests
- [x] #1249 
- [ ] #1008 
- [ ] Final review

Signed-off-by: Jamil <jamilbk@users.noreply.github.com>
Co-authored-by: Andrew Dryga <andrew@dryga.com>
2022-12-31 12:58:11 -06:00
Jamil
f749ba2bb2 Change foreign key constraint to cascading delete (#1235)
Fixes #1234
2022-12-24 07:09:37 -06:00
Jamil
6d1010c21b Use complete Firezone URL for post_logout_uri (#1160) 2022-11-30 22:27:21 -08:00
Jamil
7e552ab06e Add codespell (#1142)
* Add codespell

* Try codespell like this

* Use codespell config, not pre-commit

* ignore vendor
2022-11-23 22:31:32 -08:00