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

Re-design of playbooks #1652

Merged
merged 13 commits into from
Jan 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
43 changes: 43 additions & 0 deletions hasura/metadata/tables.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -707,6 +707,49 @@
filter:
id:
_eq: X-Hasura-User-Id
- table:
name: pinned_questchains
schema: public
insert_permissions:
- role: player
permission:
check:
player_id:
_eq: X-Hasura-User-Id
columns:
- player_id
- questchain_id
select_permissions:
- role: player
permission:
columns:
- id
- player_id
- questchain_id
filter: {}
- role: public
permission:
columns:
- id
- player_id
- questchain_id
filter: {}
update_permissions:
- role: player
permission:
columns:
- id
- questchain_id
filter:
player_id:
_eq: X-Hasura-User-Id
check: null
delete_permissions:
- role: player
permission:
filter:
player_id:
_eq: X-Hasura-User-Id
- table:
name: player
schema: public
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
DROP TABLE "public"."pinned_questchains";
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
CREATE TABLE "public"."pinned_questchains" ("player_id" uuid NOT NULL, "questchain_id" text NOT NULL, "id" uuid NOT NULL, PRIMARY KEY ("player_id","questchain_id") , FOREIGN KEY ("player_id") REFERENCES "public"."player"("id") ON UPDATE restrict ON DELETE restrict, UNIQUE ("id"));COMMENT ON TABLE "public"."pinned_questchains" IS E'questchains pinned to a specific user\'s profile';
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ALTER TABLE "public"."pinned_questchains" ALTER COLUMN "id" drop default;
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
alter table "public"."pinned_questchains" alter column "id" set default gen_random_uuid();
19 changes: 19 additions & 0 deletions packages/web/assets/custom-markdown-editor.scss
Original file line number Diff line number Diff line change
Expand Up @@ -64,3 +64,22 @@
}
}
}

.section-container {
background: #0d0320 !important;
color: white !important;
}

.rc-md-navigation {
background: #0d0320 !important;
border-top-left-radius: 0.375rem;
border-top-right-radius: 0.375rem;
color: white !important;
}

.rc-md-editor .rc-md-navigation .button-wrap .button {
color: white !important;
:hover {
color: var(--chakra-colors-pink-500) !important;
}
}
3 changes: 3 additions & 0 deletions packages/web/assets/pin.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions packages/web/assets/seed.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions packages/web/assets/share.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions packages/web/components/Container.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ export const PageContainer: React.FC<FlexProps> = ({ children, ...props }) => (
direction="column"
align="center"
pos="relative"
overflowY="scroll"
bgImage={''}
{...props}
>
Expand Down
2 changes: 1 addition & 1 deletion packages/web/components/Guild/Join/Requirements.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ export const Requirements: React.FC = () => (
bg="#E839B7"
borderRadius={0}
color="white"
href="/play/paths/engaged-octos-path"
href="/academy/engaged-octos-path"
minW="10rem"
mt={2}
px={6}
Expand Down
2 changes: 1 addition & 1 deletion packages/web/components/Landing/OnboardingGame/Chiev.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ export const Chiev = ({
If you don&apos;t already have a wallet or any gas, a good
place to start is the{' '}
<MetaLink
href="https://wiki.metagame.wtf/playbooks/how-to-install-wallet-get-gas"
href="https://wiki.metagame.wtf/academy/how-to-install-wallet-get-gas"
isExternal
>
Install MetaMask &amp; get Gas Playbook
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@
"49536087-b8cb-44b8-9f81-862a9e297a3d": {
"theme": "moss",
"title": null,
"content": "<p>There are a few ways to participate!</p><p>You can join as a player to explore or actively help us build MetaGame, you can join as a patron & help by buying Seeds, or as a guild, offering your products & services through MetaGame.</p><p>No matter which you choose, we recommend you complete the introductory questline first.</p><p><a target=\"_blank\" rel=\"noopener noreferrer nofollow\" href=\"https://metagame.wtf/play/paths/engaged-octos-path\">Join MetaGame</a></p>",
"content": "<p>There are a few ways to participate!</p><p>You can join as a player to explore or actively help us build MetaGame, you can join as a patron & help by buying Seeds, or as a guild, offering your products & services through MetaGame.</p><p>No matter which you choose, we recommend you complete the introductory questline first.</p><p><a target=\"_blank\" rel=\"noopener noreferrer nofollow\" href=\"https://metagame.wtf/academy/engaged-octos-path\">Join MetaGame</a></p>",
"outputs": [],
"autoHeight": false,
"components": []
Expand Down
11 changes: 8 additions & 3 deletions packages/web/components/MarkdownViewer/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@ const Viewer = dynamic(() => import('./MarkdownViewer'), {
ssr: false,
});

export const MarkdownViewer: React.FC<MarkdownViewerProps> = ({ children }) => (
<Viewer>{children ?? ''}</Viewer>
);
export const MarkdownViewer = React.forwardRef<
HTMLDivElement,
MarkdownViewerProps
>(({ children }, ref) => (
<div ref={ref}>
<Viewer>{children ?? ''}</Viewer>
</div>
));
52 changes: 0 additions & 52 deletions packages/web/components/QuestChain/Chain.tsx

This file was deleted.

Loading
Loading