feat: redesign project sharing & initial registration
redesigned the project sharing popup to be a multi select dropdown that populates the options by using the input as a fuzzy search filter on the current users & invited users. users can now also be directly invited by email from the project share window. if invited this way, then the user will receive an email that sends them to a registration page, then a confirmation page. the initial registration was always redone so that it uses a similar system to the above in that it now will accept the first registered user if there are no other accounts (besides 'system').
This commit is contained in:
6
migrations/0056_add-user_account_invited-table.up.sql
Normal file
6
migrations/0056_add-user_account_invited-table.up.sql
Normal file
@ -0,0 +1,6 @@
|
||||
CREATE TABLE user_account_invited (
|
||||
user_account_invited_id uuid PRIMARY KEY DEFAULT uuid_generate_v4(),
|
||||
email text NOT NULL UNIQUE,
|
||||
invited_on timestamptz NOT NULL DEFAULT NOW(),
|
||||
has_joined boolean NOT NULL DEFAULT false
|
||||
);
|
7
migrations/0057_add-project_member_invited-table.up.sql
Normal file
7
migrations/0057_add-project_member_invited-table.up.sql
Normal file
@ -0,0 +1,7 @@
|
||||
CREATE TABLE project_member_invited (
|
||||
project_member_invited_id uuid PRIMARY KEY DEFAULT uuid_generate_v4(),
|
||||
project_id uuid NOT NULL
|
||||
REFERENCES project(project_id) ON DELETE CASCADE,
|
||||
user_account_invited_id uuid NOT NULL
|
||||
REFERENCES user_account_invited(user_account_invited_id) ON DELETE CASCADE
|
||||
);
|
2
migrations/0058_add-active-column-to-user_account.up.sql
Normal file
2
migrations/0058_add-active-column-to-user_account.up.sql
Normal file
@ -0,0 +1,2 @@
|
||||
ALTER TABLE user_account ADD COLUMN active boolean NOT NULL DEFAULT false;
|
||||
UPDATE user_account SET active = true;
|
4
migrations/0059_add-confirm_token_table.up.sql
Normal file
4
migrations/0059_add-confirm_token_table.up.sql
Normal file
@ -0,0 +1,4 @@
|
||||
CREATE TABLE user_account_confirm_token (
|
||||
confirm_token_id uuid PRIMARY KEY DEFAULT uuid_generate_v4(),
|
||||
email text NOT NULL UNIQUE
|
||||
);
|
Reference in New Issue
Block a user