Skip to content
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

Staging #148

Merged
merged 12 commits into from
Oct 3, 2024
Merged
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { Metadata, Viewport } from "next";

import Link from "next/link";

import { Hydrate, dehydrate } from "@tanstack/react-query";
Expand Down
6 changes: 4 additions & 2 deletions client/src/containers/welcome-message/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ import { useGetWelcomeMessage } from "@/types/generated/welcome-message";

import { Button } from "@/components/ui/button";
import { Dialog, DialogContent } from "@/components/ui/dialog";
import isEmpty from "lodash-es/isEmpty";

export default function WelcomeMessage() {
const videoRef = useRef<ReactPlayer>(null);
Expand All @@ -35,13 +36,14 @@ export default function WelcomeMessage() {
const handlePlay = () => {
if (!videoRefContainer.current) return;
setPlaying((prev) => !prev);
screenfull?.request(videoRefContainer?.current);
screenfull?.request(videoRefContainer.current);

};

const handleFullscreen = () => {
setFullscreen(screenfull?.isFullscreen);
};

useEffect(() => {
if (screenfull.isEnabled) {
screenfull.on("change", handleFullscreen);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,9 @@
},
"review_decision_details": {
"type": "text"
},
"reviewed_by": {
"type": "string"
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,10 @@
},
"type": {
"type": "enumeration",
"enum": ["donor", "collaborator"],
"enum": [
"donor",
"collaborator"
],
"required": true
},
"collaborator_edit_suggestions": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,9 @@
},
"review_decision_details": {
"type": "text"
},
"reviewed_by": {
"type": "string"
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,9 @@
},
"review_decision_details": {
"type": "text"
},
"reviewed_by": {
"type": "string"
}
}
}
3 changes: 3 additions & 0 deletions cms/types/generated/contentTypes.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -788,6 +788,7 @@ export interface ApiCollaboratorEditSuggestionCollaboratorEditSuggestion
>;
image: Attribute.Media;
review_decision_details: Attribute.Text;
reviewed_by: Attribute.String;
createdAt: Attribute.DateTime;
updatedAt: Attribute.DateTime;
publishedAt: Attribute.DateTime;
Expand Down Expand Up @@ -950,6 +951,7 @@ export interface ApiDatasetEditSuggestionDatasetEditSuggestion
>;
colors: Attribute.JSON;
review_decision_details: Attribute.Text;
reviewed_by: Attribute.String;
createdAt: Attribute.DateTime;
updatedAt: Attribute.DateTime;
publishedAt: Attribute.DateTime;
Expand Down Expand Up @@ -1407,6 +1409,7 @@ export interface ApiProjectEditSuggestionProjectEditSuggestion
'api::project.project'
>;
review_decision_details: Attribute.Text;
reviewed_by: Attribute.String;
createdAt: Attribute.DateTime;
updatedAt: Attribute.DateTime;
publishedAt: Attribute.DateTime;
Expand Down
Loading