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(web): implements projects functionalities #1055

Merged
merged 27 commits into from
Aug 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
27 commits
Select commit Hold shift + click to select a range
68b96e2
implement sort and favaoute
mkumbobeaty Jul 15, 2024
3351159
fix translation
mkumbobeaty Jul 15, 2024
0abf889
Merge branch 'main' of github.com:reearth/reearth into feat/improve-d…
mkumbobeaty Jul 15, 2024
94f4e91
Merge branch 'main' of github.com:reearth/reearth into feat/improve-d…
mkumbobeaty Jul 16, 2024
00352e6
added the publish status
mkumbobeaty Jul 16, 2024
4cafb90
fix(server): project name sort bug
kawasaki124529 Jul 24, 2024
4ec6190
Merge branch 'feat/improve-dashboard' of github.com:reearth/reearth-v…
mkumbobeaty Jul 25, 2024
da42ece
Merge branch 'feature/sort' of github.com:reearth/reearth-visualizer …
mkumbobeaty Jul 25, 2024
234de84
improve sort by name
mkumbobeaty Jul 25, 2024
883032f
Merge branch 'main' of github.com:reearth/reearth-visualizer into fea…
mkumbobeaty Jul 31, 2024
67632be
refactor stars fucntionality
mkumbobeaty Aug 2, 2024
b352a72
add search functionality
mkumbobeaty Aug 6, 2024
d6a041c
Merge branch 'main' of github.com:reearth/reearth-visualizer into fea…
mkumbobeaty Aug 6, 2024
f47aae6
fix sort
mkumbobeaty Aug 6, 2024
bf39d93
fix translation
mkumbobeaty Aug 6, 2024
0fd94ab
update sort parameter
mkumbobeaty Aug 6, 2024
0a362ff
Merge branch 'main' of github.com:reearth/reearth-visualizer into fea…
mkumbobeaty Aug 6, 2024
4deda76
update projects logics
mkumbobeaty Aug 6, 2024
772ff25
Merge branch 'main' of github.com:reearth/reearth-visualizer into fea…
mkumbobeaty Aug 7, 2024
3e5c8bc
improvement and translation fix
mkumbobeaty Aug 7, 2024
00b2de5
fix typo
mkumbobeaty Aug 7, 2024
0a2ea29
hide sort
mkumbobeaty Aug 8, 2024
8551905
Merge branch 'main' of github.com:reearth/reearth-visualizer into fea…
mkumbobeaty Aug 8, 2024
76dfaba
fix typo
mkumbobeaty Aug 8, 2024
017564a
fix button apperance
mkumbobeaty Aug 8, 2024
b3cb8ff
style: some style updates & remove select indicator
airslice Aug 8, 2024
ef62120
Merge branch 'main' into feat/improve-dashboard
airslice Aug 8, 2024
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

This file was deleted.

126 changes: 0 additions & 126 deletions web/src/beta/features/Dashboard/ContentsContainer/Assets/index.tsx

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,8 @@ import { ProjectProps } from "./types";
const ProjectGridViewItem: FC<ProjectProps> = ({
project,
selectedProjectId,
isStarred,
onProjectOpen,
onProjectSelect,
onProjectStarClick,
onProjectUpdate,
}) => {
const theme = useTheme();
Expand All @@ -22,10 +20,13 @@ const ProjectGridViewItem: FC<ProjectProps> = ({
popupMenu,
isEditing,
isHovered,
isStarred,
publishStatus,
handleProjectNameChange,
handleProjectNameBlur,
handleProjectHover,
handleProjectNameDoubleClick,
handleProjectStarClick,
} = useHooks({
project,
selectedProjectId,
Expand All @@ -50,13 +51,14 @@ const ProjectGridViewItem: FC<ProjectProps> = ({
<Button
iconButton
icon={isStarred ? "starFilled" : "star"}
onClick={e => onProjectStarClick?.(e, project.id)}
onClick={e => handleProjectStarClick?.(e)}
iconColor={isStarred ? theme.warning.main : theme.content.main}
appearance="simple"
/>
</StarButtonWrapper>
</CardImage>
<CardFooter>
{publishStatus && <PublishStatus />}
<CardTitleWrapper>
{!isEditing ? (
<CardTitle onDoubleClick={handleProjectNameDoubleClick}>{projectName}</CardTitle>
Expand Down Expand Up @@ -94,16 +96,14 @@ const CardImage = styled("div")<{
backgroundImage?: string | null;
isSelected: boolean;
isHovered: boolean;
}>(({ theme, backgroundImage, isSelected, isHovered }) => ({
}>(({ theme, backgroundImage, isHovered }) => ({
flex: 1,
position: "relative",
background: backgroundImage ? `url(${backgroundImage}) center/cover` : theme.bg[1],
borderRadius: theme.radius.normal,
boxSizing: "border-box",
cursor: "pointer",
border: `1px solid ${
isSelected ? theme.select.main : isHovered ? theme.outline.weak : "transparent"
}`,
border: `1px solid ${isHovered ? theme.outline.weak : "transparent"}`,
}));

const StarButtonWrapper = styled("div")<{
Expand All @@ -117,9 +117,18 @@ const StarButtonWrapper = styled("div")<{
opacity: isSelected || isStarred || isHovered ? 1 : 0,
}));

const CardFooter = styled("div")(() => ({
const CardFooter = styled("div")(({ theme }) => ({
display: "flex",
alignItems: "center",
gap: theme.spacing.smallest,
padding: `0 ${theme.spacing.smallest}`,
}));

const PublishStatus = styled("div")(({ theme }) => ({
height: "12px",
width: "12px",
borderRadius: "50%",
background: theme.publish.main,
}));

const CardTitleWrapper = styled("div")(() => ({
Expand Down
Loading
Loading