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

Feat/workspace setting page #284

Merged
merged 22 commits into from
Feb 4, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
22 commits
Select commit Hold shift + click to select a range
3c3da7b
feat: Add workspace menu tooltip to header
yawn-c111 Jan 30, 2025
4faca93
Merge branch 'main' into feature/workspace-setting-page
yawn-c111 Jan 30, 2025
1f3807a
feat: Implement workspace settings page UI
yawn-c111 Jan 30, 2025
7917ec9
update: margins in workspace setting page
yawn-c111 Jan 30, 2025
5b642ac
feat: resolve new creator or assignee address
yawn-c111 Feb 3, 2025
0394bca
refactor: Remove debug console logs in workspace settings page
yawn-c111 Feb 3, 2025
07af2ff
feat: fetch workspace's name and description
yawn-c111 Feb 3, 2025
a2a18fc
feat: Add image upload functionality to workspace settings
yawn-c111 Feb 3, 2025
532692d
feat: fetch authorities of the workspace
yawn-c111 Feb 3, 2025
5a4c265
feat: Implement workspace details and image update functionality
yawn-c111 Feb 3, 2025
3fec58b
feat: Add grant and revoke authority functionality for workspace sett…
yawn-c111 Feb 4, 2025
db7c3e0
tmp: button disabling based on input value
yawn-c111 Feb 4, 2025
8ceaedb
refactor: components in treeId/settings
yawn-c111 Feb 4, 2025
bb23880
feat: button disabling based on input eth address
yawn-c111 Feb 4, 2025
3b68a99
refactor: remove unnecessary NameStone fetching
yawn-c111 Feb 4, 2025
28ab0d3
feat: Add top hat owner transfer functionality and refetch authoritie…
yawn-c111 Feb 4, 2025
5cdc70a
fix: resolve ens including 0xName
yawn-c111 Feb 4, 2025
670fa0a
feat: Add resolved address display for authority input
yawn-c111 Feb 4, 2025
a01394f
fix: Filter authorities to show only authorized members
yawn-c111 Feb 4, 2025
2d82b54
fix: refetch authorities in treeId/settings
yawn-c111 Feb 4, 2025
dbea1cc
refactor: Remove unused commented code in settings route
yawn-c111 Feb 4, 2025
0636a72
add filter to graphql and fix biome check
yu23ki14 Feb 4, 2025
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
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"workspaces": ["pkgs/*"],
"scripts": {
"biome:format": "npx biome format --write .",
"biome:check": "npx biome check --apply .",
"biome:check": "npx biome check --write .",
"frontend": "yarn workspace frontend",
"contract": "yarn workspace contract",
"cli": "yarn workspace cli",
Expand Down
49 changes: 40 additions & 9 deletions pkgs/frontend/app/components/Header.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -98,15 +98,46 @@ export const Header = () => {
)}
{headerType === HeaderType.WorkspaceAndUserIcons && (
<>
<Link to="/workspace">
<WorkspaceIcon
workspaceImageUrl={ipfs2https(
treeInfo?.hats?.find((hat) => hat.levelAtLocalTree === 0)
?.imageUri,
)}
size="40px"
/>
</Link>
<MenuRoot>
<MenuTrigger asChild>
<button type="button" aria-label="Workspace menu">
<WorkspaceIcon
workspaceImageUrl={ipfs2https(
treeInfo?.hats?.find((hat) => hat.levelAtLocalTree === 0)
?.imageUri,
)}
size="40px"
/>
</button>
</MenuTrigger>
<MenuContent
mt={-6}
ml={5}
py={3}
px={1}
borderRadius={16}
minW={44}
>
<MenuItem
value="workspace-settings"
asChild
px={4}
py={2}
fontSize="sm"
>
<Link to={`/${treeId}/settings`}>ワークスペース設定</Link>
</MenuItem>
<MenuItem
value="workspace-list"
asChild
px={4}
py={2}
fontSize="sm"
>
<Link to="/workspace">ワークスペース一覧</Link>
</MenuItem>
</MenuContent>
</MenuRoot>
<Text fontSize="lg" fontWeight="bold" {...headerTextStyle} ml={4}>
{workspaceName}
</Text>
Expand Down
Loading
Loading