Commit Graph

20 Commits

Author SHA1 Message Date
Prateek Shourya
ad09cbff11 [WEB-2108] chore: 12 users restriction for cloud users. (#1330)
* [WEB-2108] chore: 12 users restriction for cloud users.

* chore: update total_seats count.
2024-10-04 19:59:08 +05:30
Prateek Shourya
9ef5b73c81 [WEB-2524] feat: license sync and deactivation (#1245)
* feat: added manual sync handler for license refetch

* chore: add workspace license refresh endpoint

* chore: license sync request endpoint

* feat: added delink route inside monitor

* feat: added license delink route for delinking license

* chore: license delink endpoint

* feat: added delink route

* chore: license deactivation

* chore: license sync and deactivation for self managed users.

* chore: license sync and deactivation changes

* feat: handle case for free workspace

* chore: UI and UX updates.

* style: minor UI improvement.

---------

Co-authored-by: Henit Chobisa <chobisa.henit@gmail.com>
Co-authored-by: pablohashescobar <nikhilschacko@gmail.com>
2024-10-03 17:28:18 +05:30
Henit Chobisa
8786675b3c feat: added prices and plans endpoint inside monitor, and prime ecosystem (#1146)
* feat: added endpoint for retrieving plans

* feat: added routes for retrieving and generating payment link

* chore: self-hosted upgrade.

* chore: self-hosted one upgrade.

* chore: product and payment link generation

* chore: count workspace members

* chore: activation modal.

* chore: self managed instance workspace upgrade modal.

* chore: billable members.

* chore: remove changelogs redirection from workspace pages header.

* chore: update seat count logic

* fix: exit process if monitor fails to decrypt feature flags

* chore: added docker compose rule to restart the monitor container for only 5 attempts

---------

Co-authored-by: Prateek Shourya <prateekshourya29@gmail.com>
Co-authored-by: pablohashescobar <nikhilschacko@gmail.com>
2024-09-17 13:03:54 +05:30
Prateek Shourya
57542cdada [WEB-2112 | WEB-2113 | WEB-2395] dev: billing and product updates. (#1130)
* chore: add current period start date

* chore: is trial ended

* chore: Billing page and Product updates.

* fix: seat purchase

* chore: self-hosted `env` updates.

* fix: lint error.

* fix: bugfixes in types package

* fix: build errors.

* chore: update yarn.lock file.

---------

Co-authored-by: pablohashescobar <nikhilschacko@gmail.com>
Co-authored-by: sriram veeraghanta <veeraghanta.sriram@gmail.com>
2024-09-16 19:12:58 +05:30
guru_sainath
c59b6e4ba2 chore: free plan validation on workspace settings (#1061) 2024-09-06 19:09:01 +05:30
Prateek Shourya
c001e15edd [WEB-2376 | WEB-2396 | WEB-2387] dev: plane self hosted updates. (#1050)
* [WEB-2376] chore: workspace activation logic update.

* [WEB-2396] chore: fix upgrade button for self hosted users and update pro features upgrade CTA.

* [WEB-2396] chore: Plane selfhosted billing page.

* chore: update plane one changelog.

* [WEB-2387] chore: add seats validation.

* [WEB-2387] chore: member invitation validation for selfhosted pro plan.

* chore: update purchased seats.

* fix: member restriction

---------

Co-authored-by: pablohashescobar <nikhilschacko@gmail.com>
2024-09-06 14:19:52 +05:30
Prateek Shourya
437535a9a6 dev: merge payment endpoint. (#1023)
* fix: payment link endpoint

* fix: trial remaining days

* chore: merge payment endpoint and code cleanup.

---------

Co-authored-by: pablohashescobar <nikhilschacko@gmail.com>
2024-09-03 17:38:07 +05:30
Prateek Shourya
bf4aa53816 dev: current plan logic update (#1020)
* dev: update current plan apis

* fix: is_on_trial logic.

* chore: payment flow logic update.

* chore: workspace license refetch on process

---------

Co-authored-by: pablohashescobar <nikhilschacko@gmail.com>
2024-09-03 15:44:29 +05:30
Nikhil
ea5e249157 dev: primev2 (#962)
* dev: new license activation workflow for one and pro users  (#739)

* feat: added feature flag package for decrypting and refreshing the feature flags value

* feat: added feature flagging route for route handlers

* feat: added feature flag worker for managing and distributing feature flags

* feat: implemented feature flag api implementation inside ff handler

* feat: added exponential retry interval inside feature flagging

* fix: route pattern of feature flag endpoint from monitor

* feat: created endpoint to activate workspace from monitor

* feat: made changes to accomodate db and activate endpoint

* dev: update multi tenant environment settings

* dev: workspace license activation flow

* dev: update license activate endpoint

* dev: update workspace license activate endpoint

* feat: added feature flag user sync logic

* feat: added constants and sync logic with private key inside

* feat: added port as env variable

* feat: added modification for removing license key in healthcheck

* feat: example env pushed

* fix: update monitor endpoints and license activation function

* dev: initiate free workspace only for self hosted instances

* dev: self hosting license endpoint updates

* dev: remove monitor db

* dev: update handlers

* dev: self hosted license subscription web

* dev: removed computed in self hosted subscription

* fix: prime server url and delete old license while creating new license in sqlite

* chore: subscription activation alert after successfull activation.

* dev: update feature flag endpoints

* fix: handled several cases of feature flags

* fix: linting errors

* dev: update monitor to handle workspace activation

* dev: update decryption algorithm

* feat: separated activation payload with the sync payload

* dev: update feature flags endpoint

* dev: change type for workspace sync

* feat: added isActive flag for user activation

* feat: removed creation of free users in monitor

* feat: added method for workspace product

* dev: add user email in types

* feat: added method for workspace product

* fix: uer license feature flag fetch

* fix: handler fixed for feature key

* chore: self managed license activation

* chore: update validation license flow.

* chore: license activation success.

* dev: resync workspace license on activation

* chore: plane one success modal.

* feat: added constructs to inject private key build time

* feat: updated the docker file with private key build argument

* feat: added consumption od DEFAULT_PRIVATE_KEY when building monitor

* dev: update private key

---------

Co-authored-by: Henit Chobisa <chobisa.henit@gmail.com>
Co-authored-by: gurusainath <gurusainath007@gmail.com>
Co-authored-by: Prateek Shourya <prateekshourya29@gmail.com>
Co-authored-by: sriram veeraghanta <veeraghanta.sriram@gmail.com>

* fix: prime workflow fix for private key generation

* dev: remove license check and update release notes

* fix: build args for build ci (#916)

* fix: GitHub ci build for monitor (#919)

* fix: errors in github ci

* fix: added base 64 private key

* fix: instance register script

* fixed monitor for CGO startup failure (#923)

* chore: current plan api and server base urls

* fix: monitor startup failure

---------

Co-authored-by: pablohashescobar <nikhilschacko@gmail.com>

* fix: monitor feature flagging (#926)

* feat: added startup flag handler inside monitor (#927)

* feat: added logs for debugging (#929)

* fix: parsing of private key with base64 (#932)

* fix: private key parsing for monitor (#934)

* fix: throw error if private key is not parsable

* fix: printing private key

* fix: added print of private key in handler

* feat: optimized build for monitor

* feat: removed debug statements

* feat: added volume for compose

* fix: monitor build issues (#935)

* fix: success modal fix for self hosted users. (#928)

* feat: Added refresh worker job inside monitor for refreshing licenses (#937)

* dev: add instance validation endpoints

* feat: added startup refresh handler for getting new licenses

* feat: updated title

---------

Co-authored-by: pablohashescobar <nikhilschacko@gmail.com>

* chore: clear workspace license on restart (#939)

* fix: product check endpoint for license creation (#941)

* feat: added constraints for db models in monitor (#946)

* feat: added constraints for db models in monitor

* feat: updated constraints

* fix: model constraint for db (#948)

* fix: one users need to be active for sync (#950)

* fix: one users need to be active for sync

* fix: added isolation for files for handlers

* fix: workspace offline activation for syncing users

* fix: update license over syncing in monitor (#954)

---------

Co-authored-by: Henit Chobisa <chobisa.henit@gmail.com>
Co-authored-by: gurusainath <gurusainath007@gmail.com>
Co-authored-by: Prateek Shourya <prateekshourya29@gmail.com>
Co-authored-by: sriram veeraghanta <veeraghanta.sriram@gmail.com>
Co-authored-by: pushya22 <130810100+pushya22@users.noreply.github.com>
2024-08-27 19:22:27 +05:30
Nikhil
bb7dbc6900 fix: current plan api and return subscription id (#860)
* fix: workspace current plan endpoint

* dev: return workspace license

* dev: add subscription details in user workspace website endpoint

* chore: handled validation for subscription

---------

Co-authored-by: gurusainath <gurusainath007@gmail.com>
2024-08-19 10:37:31 +05:30
guru_sainath
6d8649fdbf chore: trial subscription endpoint update (#839)
* fix: updated trial subscription endpoint

* chore: trial subscription

---------

Co-authored-by: pablohashescobar <nikhilschacko@gmail.com>
2024-08-14 21:31:40 +05:30
Nikhil
89deba4591 Chore workspace license trial (#834)
* chore: workspace trial and payment method subscription

* dev: updated trial validation

* dev: payment button validation

* chore: updated typo

* chore: removed logs

---------

Co-authored-by: gurusainath <gurusainath007@gmail.com>
2024-08-14 19:29:05 +05:30
guru_sainath
6928724a0b chore: fetching feature flags and current plan parallel once the trial subscription is success (#824)
* chore: fetching feature flags once the trial subscription is success

* chore: Updated text and calculated pricing based on pricing
2024-08-14 12:39:51 +05:30
Nikhil
8241bf7c42 chore: free trial (#821)
* chore: free trail subscription

* fix: slug remove from the data and convert uuid to string for members_list

* chore: implemented free trail in subscription

* chore: handled error and success modal

* chore: pro plan loader and error handling

---------

Co-authored-by: gurusainath <gurusainath007@gmail.com>
2024-08-13 18:57:17 +05:30
Nikhil
cef277a9c9 chore: workspace license model and comment out the validation logic (#813)
* chore: workspace license model and comment out the validation logic

* dev: save free seats

* dev: remove prints
2024-08-12 23:08:32 +05:30
Prateek Shourya
f1e9ed96de [WEB-1960] chore: update upgrade to paid plans flow. (#671)
* dev: workspace price upgrade endpoint

* [WEB-1960] chore: update `upgrade to paid plans` flow.

* chore: delete workspace and cancel subscription UX copy updates.

---------

Co-authored-by: pablohashescobar <nikhilschacko@gmail.com>
Co-authored-by: sriram veeraghanta <veeraghanta.sriram@gmail.com>
2024-07-30 18:31:32 +05:30
Nikhil
4e8bfe0024 dev: feature flagging implementation (#443)
* dev: initialize feature flagging

* dev: feature flagging workspace active cycles

* dev: update feature flag implementation

* dev: add `FEATURE_FLAG_SERVER_AUTH_TOKEN` env

* dev: add feature flagging for backend apis

* dev: setup feature flags store and hooks. (#558)

* dev: setup feature flags store and hooks.

* minor improvements for swr key and flags enum.

* dev: workspace active cycles feature flag. (#562)

* dev: add task for cancelling the workspace subscription when the workspace is deleted

* dev: rename feaure flagging component

* dev: update feature flagging function for spaces

* dev: add feature flags for bulk ops, issue embeds and page publish. (#589)

* dev: add logging for member sync task

* dev: restrict workspace from deleting if the subscription is active

* dev: workspace delete check endpoint

* dev: subscription endpoint check

* dev: update subscriptions

* chore: plane pro billing and plans page updates.

* dev: update pro pill display logic.

* dev: fix feature flagging

* chore: minor improvement in cloud-badge to avoid API calls to `products` endpoint if user has PRO subscription.

---------

Co-authored-by: Prateek Shourya <prateekshourya29@gmail.com>
Co-authored-by: sriram veeraghanta <veeraghanta.sriram@gmail.com>
2024-07-11 15:14:18 +05:30
Prateek Shourya
62ce1fb321 style: add modal for plane pro early adopters. (#467) 2024-06-21 19:41:33 +05:30
sriram veeraghanta
acfea71772 fix: sperating out plane one and cloud badges 2024-06-19 20:26:14 +05:30
sriram veeraghanta
2b5288c838 fix: workspace subscription store added 2024-06-17 20:01:28 +05:30