-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
✨ add notification section #567
Open
MailyLehoux
wants to merge
8
commits into
main
Choose a base branch
from
feat/notifications
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
b5bc947
:monocle_face: add notification table
MailyLehoux 1ffc064
Merge branch 'main' into feat/notifications
MailyLehoux 002e1f1
:card_file_box: add mutations and metadata new fields
MailyLehoux 3b385db
:recycle: add permissions and fix some nullable values
MailyLehoux 2d044bc
:lipstick: add checked ui/ux
MailyLehoux aa7fbf4
Merge branch 'main' into feat/notifications
MailyLehoux 6a3009b
:twisted_rightwards_arrows: resolve tables conflicts
MailyLehoux 362f4b2
:lipstick: add notification bullet in profile and side menu
MailyLehoux File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
hasura/migrations/1676386301089_create_table_public_UserNotifications/down.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
DROP TABLE "public"."UserNotifications"; |
1 change: 1 addition & 0 deletions
1
hasura/migrations/1676386301089_create_table_public_UserNotifications/up.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
CREATE TABLE "public"."UserNotifications" ("id" uuid NOT NULL, "checked" boolean NOT NULL, "user_email" text NOT NULL, PRIMARY KEY ("id") , UNIQUE ("id"));COMMENT ON TABLE "public"."UserNotifications" IS E'Skill verified - last skills'; |
4 changes: 4 additions & 0 deletions
4
...rations/1676386537092_alter_table_public_UserNotifications_add_column_created_at/down.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
-- Could not auto-generate a down migration. | ||
-- Please write an appropriate down migration for the SQL below: | ||
-- alter table "public"."UserNotifications" add column "created_at" date | ||
-- not null default now(); |
2 changes: 2 additions & 0 deletions
2
...igrations/1676386537092_alter_table_public_UserNotifications_add_column_created_at/up.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
alter table "public"."UserNotifications" add column "created_at" date | ||
not null default now(); |
4 changes: 4 additions & 0 deletions
4
...igrations/1676386757076_alter_table_public_UserNotifications_add_column_skill_id/down.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
-- Could not auto-generate a down migration. | ||
-- Please write an appropriate down migration for the SQL below: | ||
-- alter table "public"."UserNotifications" add column "skill_id" uuid | ||
-- not null; |
2 changes: 2 additions & 0 deletions
2
.../migrations/1676386757076_alter_table_public_UserNotifications_add_column_skill_id/up.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
alter table "public"."UserNotifications" add column "skill_id" uuid | ||
not null; |
4 changes: 4 additions & 0 deletions
4
.../1676386844964_alter_table_public_UserNotifications_add_column_notification_type/down.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
-- Could not auto-generate a down migration. | ||
-- Please write an appropriate down migration for the SQL below: | ||
-- alter table "public"."UserNotifications" add column "notification_type" text | ||
-- not null; |
2 changes: 2 additions & 0 deletions
2
...ns/1676386844964_alter_table_public_UserNotifications_add_column_notification_type/up.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
alter table "public"."UserNotifications" add column "notification_type" text | ||
not null; |
1 change: 1 addition & 0 deletions
1
hasura/migrations/1676387350118_alter_table_public_UserNotifications_update_comment/down.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
comment on table "public"."UserNotifications" is NULL; |
1 change: 1 addition & 0 deletions
1
hasura/migrations/1676387350118_alter_table_public_UserNotifications_update_comment/up.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
comment on table "public"."UserNotifications" is NULL; |
4 changes: 4 additions & 0 deletions
4
...ations/1676456093489_alter_table_public_UserNotifications_add_column_admin_email/down.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
-- Could not auto-generate a down migration. | ||
-- Please write an appropriate down migration for the SQL below: | ||
-- alter table "public"."UserNotifications" add column "admin_email" text | ||
-- not null; |
2 changes: 2 additions & 0 deletions
2
...grations/1676456093489_alter_table_public_UserNotifications_add_column_admin_email/up.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
alter table "public"."UserNotifications" add column "admin_email" text | ||
not null; |
4 changes: 4 additions & 0 deletions
4
hasura/migrations/1676468229753_alter_table_public_Skill_add_column_creator/down.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
-- Could not auto-generate a down migration. | ||
-- Please write an appropriate down migration for the SQL below: | ||
-- alter table "public"."Skill" add column "creator" text | ||
-- null; |
2 changes: 2 additions & 0 deletions
2
hasura/migrations/1676468229753_alter_table_public_Skill_add_column_creator/up.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
alter table "public"."Skill" add column "creator" text | ||
null; |
4 changes: 4 additions & 0 deletions
4
...ns/1676468549770_alter_table_public_UserNotifications_add_column_notification_id/down.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
-- Could not auto-generate a down migration. | ||
-- Please write an appropriate down migration for the SQL below: | ||
-- alter table "public"."UserNotifications" add column "notification_id" uuid | ||
-- not null; |
2 changes: 2 additions & 0 deletions
2
...ions/1676468549770_alter_table_public_UserNotifications_add_column_notification_id/up.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
alter table "public"."UserNotifications" add column "notification_id" uuid | ||
not null; |
1 change: 1 addition & 0 deletions
1
...ra/migrations/1676468692774_alter_table_public_UserNotifications_alter_column_id/down.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
ALTER TABLE "public"."UserNotifications" ALTER COLUMN "id" drop default; |
1 change: 1 addition & 0 deletions
1
hasura/migrations/1676468692774_alter_table_public_UserNotifications_alter_column_id/up.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
alter table "public"."UserNotifications" alter column "id" set default gen_random_uuid(); |
2 changes: 2 additions & 0 deletions
2
...1676468726804_alter_table_public_UserNotifications_drop_column_notification_type/down.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
alter table "public"."UserNotifications" alter column "notification_type" drop not null; | ||
alter table "public"."UserNotifications" add column "notification_type" text; |
1 change: 1 addition & 0 deletions
1
...s/1676468726804_alter_table_public_UserNotifications_drop_column_notification_type/up.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
alter table "public"."UserNotifications" drop column "notification_type" cascade; |
2 changes: 2 additions & 0 deletions
2
...s/1676468855008_alter_table_public_UserNotifications_drop_column_notification_id/down.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
alter table "public"."UserNotifications" alter column "notification_id" drop not null; | ||
alter table "public"."UserNotifications" add column "notification_id" uuid; |
1 change: 1 addition & 0 deletions
1
...ons/1676468855008_alter_table_public_UserNotifications_drop_column_notification_id/up.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
alter table "public"."UserNotifications" drop column "notification_id" cascade; |
4 changes: 4 additions & 0 deletions
4
...ns/1676468906231_alter_table_public_UserNotifications_add_column_notification_id/down.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
-- Could not auto-generate a down migration. | ||
-- Please write an appropriate down migration for the SQL below: | ||
-- alter table "public"."UserNotifications" add column "notification_id" integer | ||
-- not null; |
2 changes: 2 additions & 0 deletions
2
...ions/1676468906231_alter_table_public_UserNotifications_add_column_notification_id/up.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
alter table "public"."UserNotifications" add column "notification_id" integer | ||
not null; |
1 change: 1 addition & 0 deletions
1
hasura/migrations/1676469920879_rename_table_public_UserNotifications/down.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
alter table "public"."Notifications" rename to "UserNotifications"; |
1 change: 1 addition & 0 deletions
1
hasura/migrations/1676469920879_rename_table_public_UserNotifications/up.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
alter table "public"."UserNotifications" rename to "Notifications"; |
1 change: 1 addition & 0 deletions
1
hasura/migrations/1676470397300_rename_table_public_Notifications/down.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
alter table "public"."UserNotifications" rename to "Notifications"; |
1 change: 1 addition & 0 deletions
1
hasura/migrations/1676470397300_rename_table_public_Notifications/up.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
alter table "public"."Notifications" rename to "UserNotifications"; |
2 changes: 2 additions & 0 deletions
2
...s/1676470552127_alter_table_public_UserNotifications_drop_column_notification_id/down.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
alter table "public"."UserNotifications" alter column "notification_id" drop not null; | ||
alter table "public"."UserNotifications" add column "notification_id" int4; |
1 change: 1 addition & 0 deletions
1
...ons/1676470552127_alter_table_public_UserNotifications_drop_column_notification_id/up.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
alter table "public"."UserNotifications" drop column "notification_id" cascade; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -50,6 +50,7 @@ export default { | |
profile: "Profil", | ||
language: "Langue", | ||
darkMode: "Mode sombre", | ||
notifications: "Notifications", | ||
logout: "Se déconnecter", | ||
tutorial: "Mode tutoriel", | ||
botNotifications: "Notifications du bot Slack", | ||
|
@@ -122,6 +123,12 @@ export default { | |
}, | ||
}, | ||
}, | ||
notification: { | ||
notificationText: | ||
"L'administrateur adminMail a approuvé votre compétence skillName comme nouvelle compétence Skillz", | ||
new: "Nouveau", | ||
notificationTypeAccepted: "Une de tes compétence a été acceptée", | ||
}, | ||
Comment on lines
+126
to
+131
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It's weird to have the you "singular" and "plurial" on the same page. |
||
loading: { | ||
loadingText: "Chargement...", | ||
}, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
typo