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: group page design #3428

Open
wants to merge 1 commit into
base: andrea/add-new-dashboard-layout
Choose a base branch
from

Conversation

andre-code
Copy link
Contributor

@andre-code andre-code commented Dec 5, 2024

PR to apply redesign to group page

/deploy renku=andrea/update-dashboard-layout renku-data-services=andrea/fix-total-groups-in-all-group

@andre-code andre-code changed the base branch from main to andrea/add-new-dashboard-layout December 5, 2024 11:50
@RenkuBot
Copy link
Contributor

RenkuBot commented Dec 5, 2024

You can access the deployment of this PR at https://renku-ci-ui-3428.dev.renku.ch

@andre-code andre-code force-pushed the andrea/add-new-dashboard-layout branch from 8492b99 to a88b823 Compare December 9, 2024 09:35
@andre-code andre-code marked this pull request as ready for review December 9, 2024 11:05
@andre-code andre-code requested a review from a team as a code owner December 9, 2024 11:05
Comment on lines +27 to +32
const watermarkStyles: CSSProperties = {
right: "0",
fontSize: "150px",
lineHeight: "0",
color: "rgba(0, 0, 0, 0.1)",
};
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please use bootstrap classnames and SCSS modules.

  • right: "0" -> end-0 from bootstrap
  • others can go in a SCSS module

const type = `${storage?.configuration?.type?.toString() ?? ""} ${
storage?.configuration?.provider?.toString() ?? ""
}`;
const readOnly = storage?.readonly ? (
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This will prevent the element from being computed when extendedPreview is false.

Suggested change
const readOnly = storage?.readonly ? (
const readOnly = extendedPreview && (storage?.readonly ? (

<span className="fw-bold" data-cy="data-connector-name">
{name}
</span>
<div
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This seems to take too much vertical space:
image

"align-items-center"
)}
>
<UserAvatar username={namespace} size={UserAvatarSize.small} />
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nitpick: the initials go green when hovering.

errors={errors}
name="slug"

<PermissionsGuard
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this should be "delete" permission, to be checked.

};
return (
<ContainerWrap className="position-relative">
<EntityWatermark type="group" />
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is broken at smaller viewports:
image

How to fix it:

<ContainerWrap> // remove "relative"
  <EntityWatermark type="group" />

With EntityWatermark being:

<div className="position-relative">
  <div className="position-absolute top-0 end-0">
     ...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants