Commit Graph

611 Commits (1df5f6594d21f2f82104e2ae334851a9322d8e29)

Author SHA1 Message Date
NaiJi ✨ 1df5f6594d feat: Implement distinction for connection errors on server type page
Now user gets notified when connection error occurs
2022-11-28 23:11:08 +04:00
NaiJi ✨ bd33b8d679 feat: Implement distinction for connection errors on initialing page
Now it's 'false' when api token is invalid and null response if couldn't connect at all, to show different kinds of errors to the user
2022-11-28 22:51:37 +04:00
NaiJi ✨ 58ce0f0f8b chore: Merge digital-ocean into master
Reviewed-on: kherel/selfprivacy.org.app#140
Reviewed-by: Inex Code <inex.code@selfprivacy.org>
2022-11-23 15:28:32 +02:00
NaiJi ✨ 8c6b56f61d fix: Make improvements by Code Review 2022-11-23 11:55:28 +04:00
NaiJi ✨ a70e793360 chore: Merge master into digital-ocean 2022-11-22 16:10:00 +04:00
Inex Code 32ca58537e Merge pull request 'feat: Add refresh indicator on Recovery Key page to support drag gestures' (#148) from recovery-keys into master
Reviewed-on: kherel/selfprivacy.org.app#148
Reviewed-by: Inex Code <inex.code@selfprivacy.org>
2022-11-22 14:07:24 +02:00
NaiJi ✨ 3ba2c6f731 feat: Add refresh indicator on Recovery Key page to support drag gestures 2022-11-21 17:17:27 +04:00
NaiJi ✨ 479efac6e9 chore: Fix an awkward commentary typo... 2022-11-20 18:35:44 +04:00
NaiJi ✨ 93b28d981e chore: Remove testing flag before merging into master 2022-11-20 18:34:20 +04:00
NaiJi ✨ 58c9e00ce0 fix(recovery): Add reverse dns validation for digital ocean
In Digital Ocean reverse dns is not domain name but just name, like mydomainname instead of mydomainname.xyz, so we need additional condition
2022-11-20 18:31:31 +04:00
NaiJi ✨ b2a5d57a1d feat(initializing): Add description and back button to server type step 2022-11-20 14:48:08 +04:00
NaiJi ✨ b53bb6d4dd refactor: Remove 'unused' warnings 2022-11-18 11:33:28 +04:00
NaiJi ✨ b26e22cd4e fix: Check on null for server type identifier
It is not needed to finish installation so it's okat if it's empty
2022-11-18 11:30:50 +04:00
NaiJi ✨ da394e22ac feat(server-api): Implement bad certificates fallback for staging environment
Without it client application won't accept staging certificates from server
2022-11-18 10:59:47 +04:00
NaiJi ✨ 0c4da8eb9f refactor: Move all API factories into encapsulated static class
Because it's very hard to track all different provider factories created in different cubits, if users reset application config the previous factories stayed unchanged which would lead to unexpected behavior
2022-11-18 09:49:04 +04:00
NaiJi ✨ 268816385f fix(recovery): Fix custom api token on recovering provider type 2022-11-18 05:19:54 +04:00
NaiJi ✨ 611fe6bf45 feat(server-api): Implement support for staging acme certificates
Related to https://letsencrypt.org/docs/staging-environment/ to not get domain banned by constant renewal
2022-11-17 11:21:49 +04:00
NaiJi ✨ 51dc4c67b2 feat(recovery): Implement access recovery routing for server providers 2022-11-17 11:14:34 +04:00
NaiJi ✨ 0234278c2c refactor: Rename server.dart to server_api.dart
Because the class is called ServerApi, not just Server, it's totally not consistent with all other apis
2022-11-16 04:24:40 +04:00
NaiJi ✨ bde364dde1 fix(digital-ocean): Adjust charts rendering for digital ocean values 2022-11-16 04:12:49 +04:00
NaiJi ✨ 2a5fceae91 fix(hetzner): Fix endpoints urls
Incorrect dereferencing in strings
2022-11-16 00:49:41 +04:00
NaiJi ✨ 92b417a103 feat(digital-ocean): Implement metrics for Digital Ocean 2022-11-15 08:00:10 +04:00
NaiJi ✨ 7fdc546714 refactor(server-api): Make appearance provider name polymorphic and required for metadata 2022-11-14 09:48:36 +04:00
NaiJi ✨ e20063a9ad chore: Remove unneeded metrics fields
PPS metrics aren't used in our charts
2022-11-12 22:44:15 +04:00
NaiJi ✨ a7cbde663e refactor(server-api): Generalize and encapsulate server metrics endpoints 2022-11-12 22:11:14 +04:00
NaiJi ✨ e66b24d869 refactor: Remove obsolete initializing steps enum type 2022-11-11 15:29:17 +04:00
NaiJi ✨ 10bdd4c800 refactor(server-api): Make general server info polymorphic
Removing Hetzner type hardcode from server page and replacing it with generic String-based metadata container
2022-11-11 07:32:01 +04:00
NaiJi ✨ b3395915da fix(digital-ocean): Add correct linuxDevice path to volume objects
linuxDevice consists of supposedly hardcoded 'scsi-0DO_Volume_' plus given volume name
2022-11-10 21:03:16 +04:00
NaiJi ✨ cdc47ecdb3 refactor(ui): Move all pop up dialogs into general utils function
To not import get_it everywhere and encapsulate all the related dirt into utils.
2022-11-09 22:43:05 +04:00
Inex Code 6eb49fa8f1 fix(digital-ocean): Change the cloud-config payload
Now the server builds!
2022-11-08 04:25:04 +03:00
NaiJi ✨ 59d186a8af fix(volume): Change raw int to DiskSize object in volume endpoints
We already have an abstraction for size, there is no need to pass size value as raw numeric variables
2022-11-04 16:19:39 +04:00
NaiJi ✨ aa1c04fdb8 fix(digital-ocean): Fix response code checking on volume actions
We can't compare with 'compelted' because Digital Ocean responses with 'in progress' right away or something, so it's better to check if it's just not 'error'
2022-11-04 16:05:40 +04:00
NaiJi ✨ edc171efd7 fix(digital-ocean): Fix emoji picking for Digital ocean locations 2022-11-04 15:59:38 +04:00
NaiJi ✨ ff32ae96a5 chore: Merge master into digital-ocean 2022-11-04 15:58:15 +04:00
Inex Code 0639ee4d57 Merge pull request 'docs: Add brief list of critical packages for Linux build' (#146) from readme into master
Reviewed-on: kherel/selfprivacy.org.app#146
Reviewed-by: Inex Code <inex.code@selfprivacy.org>
2022-11-02 23:09:31 +02:00
NaiJi ✨ 6d548ce197 docs: Add brief list of critical packages for Linux build
Since I always forget what implicit dependencies this application has, maybe we need better documentation structure
2022-11-03 00:55:09 +04:00
NaiJi ✨ dc4ba7bce5 fix(digital-ocean): Modify cloud-init, add write_files sections
Provide host.nix to infect with 0644 permissions
2022-11-02 18:59:41 +04:00
NaiJi ✨ 8c053f50b0 chore: Merge master into digital-ocean 2022-11-02 18:45:36 +04:00
NaiJi ✨ 667c59e93e chore: Merge deprecated into master
Reviewed-on: kherel/selfprivacy.org.app#145
Reviewed-by: Inex Code <inex.code@selfprivacy.org>
2022-11-01 14:57:08 +02:00
NaiJi ✨ 86b80156fd refactor: Generalize DKIM usage into DnsRecords
- Replace raw DKIM String object with a general DnsRecord structure
- Implement network utils for common operations with networking concepts and structures
- Implement initializing page pop up to re-try server deployment in case of a random networking error
2022-10-30 18:23:47 +04:00
NaiJi ✨ 57d82d0f7a refactor(server-api): Move provider name from hardcode string to a polymorphic variable
- Rename 'digital-ocean' to 'digitalocean'
2022-10-29 12:03:43 +04:00
NaiJi ✨ 68811efc1e refactor(server-api): Generalize and unify api response objects
- Separate response success from  business logic operation success
- Remove ApiResponse, replace with GenericResult
- Make GenericMutationResult inherit GenericResult
- Add generic error message for when a response couldn't be sent or received
2022-10-28 12:20:09 +04:00
NaiJi ✨ 0dc0ba215a fix(digital-ocean): Adjust droplet data preparations according to API notation 2022-10-27 20:01:22 +04:00
NaiJi ✨ cb94248df0 fix: Generate hive build runner model for server details 2022-10-27 17:08:59 +04:00
NaiJi ✨ 4aa6caed65 chore: Merge master into digital-ocean 2022-10-27 17:05:41 +04:00
NaiJi ✨ 25362665a4 chore: Merge build-runner into master
Reviewed-on: kherel/selfprivacy.org.app#144
Reviewed-by: Inex Code <inex.code@selfprivacy.org>
2022-10-27 16:04:42 +03:00
NaiJi ✨ 7c61d9a787 chore: Generate build runner models 2022-10-27 16:15:35 +04:00
NaiJi ✨ ed37775510 chore: Merge master into digital-ocean 2022-10-26 21:27:22 +04:00
NaiJi ✨ 7daa87f6c4 chore: Merge graphql into master
Reviewed-on: kherel/selfprivacy.org.app#141
Reviewed-by: Inex Code <inex.code@selfprivacy.org>
2022-10-26 20:25:23 +03:00
Inex Code 88bcdcff39 chore(server-api): Deprecate getDkim
Server API now aware of all required DNS records. More general approach to handle DNS records is required in the future.
2022-10-26 20:24:00 +03:00