Commit Graph

2346 Commits (8d8cd21764a9d63f12bb9ebe0d6678759aee09bb)
 

Author SHA1 Message Date
Adam Rutkowski 8d8cd21764 Use one typespec for two clauses 3 years ago
Adam Rutkowski 00b68779ed Remove XXX marker 3 years ago
Adam Rutkowski fba7bb86c5 Handle `nil` from `Plausible.Geo.database_type()` 3 years ago
Adam Rutkowski e058ade722 Remove future hardcodes 3 years ago
Adam Rutkowski cba0744e6e Fix typespec 3 years ago
Adam Rutkowski c50ca79efb Test is-dbip=false presence 3 years ago
Adam Rutkowski 63c3472d8f Get Marko's patch de58a18a85 3 years ago
Adam Rutkowski 204320d6c0 Implement bypassing FirstLaunchPlug without insertions 3 years ago
Adam Rutkowski 06fe9cbc4d Use `small_build?()` where applicable 3 years ago
Adam Rutkowski cffb747b73 GeoIP is not, for full build 3 years ago
Adam Rutkowski 8adcfa8804 Credo + format 3 years ago
Adam Rutkowski 976178a7f3 Remove unused module 3 years ago
Adam Rutkowski dfafb0953f Fix dialyzer warning 3 years ago
Adam Rutkowski daba811b46 Update typespecs 3 years ago
Adam Rutkowski eacb5f6ce4 Rest of the fsckn owl 3 years ago
Adam Rutkowski 667fe1d2bb Stop relying on app env 3 years ago
Adam Rutkowski b381a4c637 Fixup 3 years ago
Adam Rutkowski 235663a90a Trial fixup 3 years ago
Adam Rutkowski b78fa4b76c Adjusts auth controller tests for small build 3 years ago
Adam Rutkowski 97d87acb4d Update templates relying on app env 3 years ago
Adam Rutkowski aedd1ecf33 Apply on_trial? check only on full build 3 years ago
Adam Rutkowski 727de127a6 Stop relying on app env for pass reset success 3 years ago
Adam Rutkowski dde84df609 Stop relying on app env for self hosted registration 3 years ago
Adam Rutkowski a45891441d Quota fixup 3 years ago
Adam Rutkowski f7f86c2e7a Remove is_selfhosted from layout view 3 years ago
Adam Rutkowski 4f77d837fe Remove custom domains - including migration 3 years ago
Adam Rutkowski 6893886d0a Stop relying on app env to get trial expiry 3 years ago
Adam Rutkowski 340682d5e6 Set site limit unlimited on small build 3 years ago
Adam Rutkowski 7e589deaf5 Convert waiting_first_pageview to heex and stop relying on env vars 3 years ago
Adam Rutkowski 21aaa7e290 Move sampling outside of small build 3 years ago
Adam Rutkowski 62790de74b Mute a test writing to stdout 3 years ago
Adam Rutkowski a8590d971a Disable super-admin checks on small build 3 years ago
Marko Saric be48ca2826
Update SECURITY.md 3 years ago
Marko Saric de58a18a85
Keeping footers consistent 3 years ago
Marko Saric 276461e4ea
Comparison updated to keep it consistent with the site 3 years ago
hq1 0f577a998c
Update credo config + extras (#3547)
* Disable CyclomaticComplexity checks

* Move AuhtorizeSitesAPI plug under extra
3 years ago
hq1 88e1d9dc28
Small build updates (#3546)
* Sites API

* Extract Revenue react api helpers

* !fixup

* Extract JS Money module to /extra

* Extract Revenue full build extras (tests pass for full)

* Update MIX_ENV=small mix test

* Remove dead code

* Add moduledocs

* Add credo config

* Trick dialyzer

* DRY revenue metrics

* Use more concise version of on_full_build macro

* Disable credo check
3 years ago
Vinicius Brasil af0b97e68a
Move Mix.Task.DumpPlans to Plausible.Release (#3544)
This commit moves the dump_plans Mix task to the Plausible.Release
module so it can run in production.

Usage: `./bin/plausible eval Plausible.Release.dump_plans`
3 years ago
dependabot[bot] f01b76cc41
Bump eslint from 8.53.0 to 8.54.0 in /tracker (#3533)
Bumps [eslint](https://github.com/eslint/eslint) from 8.53.0 to 8.54.0.
- [Release notes](https://github.com/eslint/eslint/releases)
- [Changelog](https://github.com/eslint/eslint/blob/main/CHANGELOG.md)
- [Commits](https://github.com/eslint/eslint/compare/v8.53.0...v8.54.0)

---
updated-dependencies:
- dependency-name: eslint
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
3 years ago
Vinicius Brasil b35096bbc8
Dump plan information to PostgreSQL (#3543)
* Use Ecto.Schema for casting plans from JSON files

* Dump plans to internal database table
3 years ago
Adrian Gruntkowski 65cc8980e0
Implement core logic for TOTP support (#3525)
* Add `nimble_totp`, `cloak` and `cloak_ecto` to project dependencies

* Setup Cloak-based secrets vault and create a dedicated Ecto type

* Add `totp_enabled|secret|last_used_at` fields to `User` schema

* Implement schema and stateless logic for TOTP recovery codes

* Implement core logic of TOTP auth

* Fix typos and improve style of doc comments

Co-authored-by: hq1 <hq@mtod.org>

* Fix moduledoc alignment

* Use more compact conditional expression

Co-authored-by: hq1 <hq@mtod.org>

* Disambiguate `I` as `7` when generating recovery codes (h/t @hq1)

* Fix a typo in runtime config error message

---------

Co-authored-by: hq1 <hq@mtod.org>
3 years ago
hq1 819449f19a
Include extra in docker image (#3537) 3 years ago
hq1 b9ec38038c
Add small build option (#3536)
* Update applications

* Clone community config

* Move modules to experimental dir

* Update runtime config

* Apply first set of compile-time conditionals

* Move funnel schemas to experimental

* Make funnel schema-less build compile

* Use experimental/lib for elixir code

* Move JS funnels to experimental

* Clean up conditional rendering

* Tidy up the pipeline

* Make two builds pass tests without warnings

* Reuse existing dotenvs

* Do a bunch of renames

* Clean up naming

* Run secondary CI

* Update router

* Remove RewriteFunnelDupes migration

Tests were disabled already and it was a one-off shot

* Fixup quota mixins

* Add moduledoc

* Change MIX_ENV for seconary test run

* Skip crm on small

* !fixup

* Exclude flags pipeline

* Update lib/plausible_web/controllers/stats_controller.ex

Co-authored-by: Adrian Gruntkowski <adrian.gruntkowski@gmail.com>

---------

Co-authored-by: Adrian Gruntkowski <adrian.gruntkowski@gmail.com>
3 years ago
Adrian Gruntkowski 2512f3cbe2
Create migration adding TOTP fields to `users` and recovery codes table (#3535) 3 years ago
Adrian Gruntkowski 9b0a6e6e7d
Improve LiveView flash messages (#3523)
* Cancel existing flash timer before setting a new one

* Abstract flash logic across live views

* Render flash messages one after another
3 years ago
ruslandoga 4586e091a5
Update PromEx to fix a memory leak in benchmarks (#3532) 3 years ago
RobertJoonas 02a1271ee4
Bugfix site transfers (#3531)
* Bugfix: allow ownership transfers when premium features enabled but not used

Fields like `props_enabled` and `funnels_enabled` are true by default,
and these fields do not indicate whether the user/site is actually using
these features or not.

* allow site transfers if they will be at limit after transfer

* small refactor
3 years ago
Vinicius Brasil 0175158e81
List only premium features on the CRM (#3530) 3 years ago
Cenk Kücük f4d7ba70e8
drop IPs classified as datacenter (#3522)
* drop IPs classified as datacenter

* process event and increment counter instead of dropping
3 years ago
dependabot[bot] a2c9ba191e
Bump @playwright/test from 1.39.0 to 1.40.0 in /tracker (#3528)
Bumps [@playwright/test](https://github.com/microsoft/playwright) from 1.39.0 to 1.40.0.
- [Release notes](https://github.com/microsoft/playwright/releases)
- [Commits](https://github.com/microsoft/playwright/compare/v1.39.0...v1.40.0)

---
updated-dependencies:
- dependency-name: "@playwright/test"
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
3 years ago