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

Margins management & cleanup #103

Closed
srenault-meeds opened this issue Nov 2, 2023 · 9 comments
Closed

Margins management & cleanup #103

srenault-meeds opened this issue Nov 2, 2023 · 9 comments

Comments

@srenault-meeds
Copy link
Collaborator

srenault-meeds commented Nov 2, 2023

Rationale

Currently, there are differencies between containers depending on which one we use:

  • height is often set to be auto depending on the app's content
  • height is sometimes "forced" so it is consistent between different columns for example
  • width is ok as the app takes the whole width of the container (100%)

BUT depending on the app added in the container, a margin-bottom is sometimes added or not.
That makes the layout not ok for example:

  • Add links portlet above the stream app, in the same container
  • result: you will see no margin between apps
image

OR:

  • check margin of the space menu portlet in the space activity stream page (AKA space banner)
  • a margin-bottom is applied to the app while it must be added to the container
image

OR contributions container in overview page gets a padding that is extra to the usual margin we'd like to apply

Expected: we must remove extra margins added to the apps AND we must make sure margins-bottom are added to all containers that contains apps.

1. Functional Requirements

Top User Stories

App Margins cleanup
Browse any pages and remove extra margin added to apps (any margin), i.e:

  • profile-stats-portlet
  • OnlinePortlet
  • SuggestionsPeopleAndSpace
  • rulesOverview
  • ActivityStream
  • Image portlet
  • ProjectListToolbar
  • popularSpacesApplication
  • SpacesOverview
  • usersLeaderboard
  • spaceHeader
  • connectorsadministration
  • UserSettingLanguage
  • UserSettingNotifications
  • UserSettingSecurity
  • walletSettingsApp
  • connectorUserSettings

Container padding /margin cleanup

  • Containers in overview must not have the padding applied currently
  • analyticsPagerow

Container margins management
Any container must follow this pattern:

  • Width: The App width takes 100% of the container width
  • Height: auto depending on the apps' contents

With capabilities to manage exception if needed to fix a height

  • Margins:
  1. Parent container has a minimum of margin of 20px then depending on the width of the screen, from 1280px, the margin for left and right is dynamic to keep a max width
  2. children containers provides margin-bottom of 20px between apps and containers
  3. If no app, neither container, below the last children, then no margin-bottom

Impacts

Gamification

NA

Notifications

NA

Analytics

NA

Unified Search

NA

2. Technical Requirements

Existing Features

No DOM structure change should happen on existing applications to remove margins.

Feature Flags

No feature flag

4. Software Architecture

Access

We will have to delete max-width, min-width, width, margin and padding definitions from all Vue applications parent containers. The content of applications has to remain flexible in term of width using flex box.

To add margins for all applications being part of the page, we will have to add this class in platform-ui:

.UIPage .PORTLET-FRAGMENT {
  margin-bottom: @applicationMarginBottom;
}

With the definition of the less & CSS variables:

@applicationMarginBottomDefault: 20px;
@applicationMarginBottom: var(--allPagesApplicationMarginBottom, @applicationMarginBottomDefault);

By using CSS variables inside less variables, this will allow to change the value using branding UI.

@srenault-meeds
Copy link
Collaborator Author

@margondicco @rdenarie @boubaker as discussed
AND I have checked every pages in meeds, any container, any apps so I have added the detailed list of work to do in the MIP

@margondicco
Copy link

Go fonc

@srenault-meeds
Copy link
Collaborator Author

Thanks. @boubaker ready for tech spec

@boubaker
Copy link
Member

boubaker commented Nov 7, 2023

Ready for review by DAO members ( eXo: @rdenarie )

@rdenarie
Copy link
Member

rdenarie commented Nov 8, 2023

GO tech

SaraBoutej added a commit to Meeds-io/platform-ui that referenced this issue Nov 14, 2023
SaraBoutej added a commit to Meeds-io/gamification that referenced this issue Nov 14, 2023
SaraBoutej added a commit to Meeds-io/gatein-portal that referenced this issue Nov 14, 2023
SaraBoutej added a commit to Meeds-io/social that referenced this issue Nov 14, 2023
…s#103 (#3180)

All Vue applications parents no longer have margins due to these changes.
The margin will be added as a CSS variable inside the less variables, so we can change this variable using the branding UI.
SaraBoutej added a commit to Meeds-io/analytics that referenced this issue Nov 14, 2023
…s#103 (#157)

This change allows tp remove all margins from analytics Vue applications Parent.
The margin will be added as a CSS variable inside the less variables, so we can change this variable using the branding UI.
SaraBoutej added a commit to Meeds-io/wallet that referenced this issue Nov 14, 2023
…s#103

This change allows tp remove all margins from Wallet Vue applications Parent.
The margin will be added as a CSS variable inside the less variables, so we can change this variable using the branding UI.
SaraBoutej added a commit to Meeds-io/gamification that referenced this issue Nov 14, 2023
…s#103 (#1331)

This change allows tp remove all margins from gamification Vue applications Parent.
The margin will be added as a CSS variable inside the less variables, so we can change this variable using the branding UI.
SaraBoutej added a commit to Meeds-io/meeds that referenced this issue Nov 14, 2023
…s#103 (#1283)

This change allows tp remove all paddings from the overview page portlet container.
The margin will be added as a CSS variable inside the less variables, so we can change this variable using the branding UI.
SaraBoutej added a commit to Meeds-io/platform-ui that referenced this issue Nov 14, 2023
…s#103 (#708)

This change allows to remove all magrins added for Vue applications parents.
The margin will be added as a CSS variable inside the less variables, so we can change this variable using the branding UI.
exo-swf pushed a commit to Meeds-io/wallet that referenced this issue Nov 22, 2023
hbenali pushed a commit to Meeds-io/meeds that referenced this issue Nov 22, 2023
…s#103 (#1283)

This change allows tp remove all paddings from the overview page portlet container.
The margin will be added as a CSS variable inside the less variables, so we can change this variable using the branding UI.

(cherry picked from commit e5452d5)
(cherry picked from commit bbe71d1)
hbenali pushed a commit to Meeds-io/meeds that referenced this issue Nov 22, 2023
hbenali pushed a commit to Meeds-io/meeds that referenced this issue Nov 22, 2023
)

Remove extra padding top and bottom from col container

(cherry picked from commit c0eda9d)
(cherry picked from commit 4254cdc)
@rdenarie
Copy link
Member

all pr approved.

Can you ping me when they are all merged ?

SaraBoutej added a commit to Meeds-io/social that referenced this issue Nov 22, 2023
SaraBoutej added a commit to Meeds-io/gamification that referenced this issue Nov 22, 2023
SaraBoutej added a commit to Meeds-io/meeds that referenced this issue Nov 22, 2023
SaraBoutej added a commit to Meeds-io/analytics that referenced this issue Nov 22, 2023
@boubaker
Copy link
Member

all pr approved.

Thanks. All PRs merged

exo-swf pushed a commit to Meeds-io/social that referenced this issue Nov 22, 2023
…s#103 (#3180)

All Vue applications parents no longer have margins due to these changes.
The margin will be added as a CSS variable inside the less variables, so we can change this variable using the branding UI.

(cherry picked from commit e140c79)
exo-swf pushed a commit to Meeds-io/social that referenced this issue Nov 22, 2023
)

Add padding bottom to stickyBlockDesktop in the right sidebar.

(cherry picked from commit 7834dc3)
exo-swf pushed a commit to Meeds-io/social that referenced this issue Nov 22, 2023
…o/MIPs#103 (#3191)

Prior to this change when application is hidden, an extra padding bottom is visible
This change allows to hide the app portlet parent when it is hidden.

(cherry picked from commit 5e68077)
exo-swf pushed a commit to Meeds-io/social that referenced this issue Nov 22, 2023
 (#3195)

This change allow to add a new data attribute to check if all steps in the gattingStarted portlet are done so we add hidden class to the app parent.

(cherry picked from commit e24b613)
exo-swf pushed a commit to Meeds-io/social that referenced this issue Nov 22, 2023
…ED-2953-Meeds-io/MIPs#103 (#3205)

Prior to this change, When we toggle between show/hide of the preview mode in the public page, an extra margin in displayed when the app is hidden. 
This change allows to remove extra margin when app is hidden.
exo-swf pushed a commit to Meeds-io/analytics that referenced this issue Nov 22, 2023
…s#103 (#157)

This change allows tp remove all margins from analytics Vue applications Parent.
The margin will be added as a CSS variable inside the less variables, so we can change this variable using the branding UI.

(cherry picked from commit c9f6494)
(cherry picked from commit ff87a27)
exo-swf pushed a commit to Meeds-io/analytics that referenced this issue Nov 22, 2023
exo-swf pushed a commit to Meeds-io/gamification that referenced this issue Nov 22, 2023
…s#103 (#1331)

This change allows tp remove all margins from gamification Vue applications Parent.
The margin will be added as a CSS variable inside the less variables, so we can change this variable using the branding UI.

(cherry picked from commit b483640)
(cherry picked from commit a4eba14)
exo-swf pushed a commit to Meeds-io/gamification that referenced this issue Nov 22, 2023
…o/MIPs#103 (#1349)

Prior to this change when application is hidden, an extra padding bottom is visible This change allows to hide the app portlet parent when it is hidden.

(cherry picked from commit f675c89)
rdenarie pushed a commit to Meeds-io/meeds that referenced this issue Nov 22, 2023
…s#103 (#1283)

This change allows tp remove all paddings from the overview page portlet container.
The margin will be added as a CSS variable inside the less variables, so we can change this variable using the branding UI.

(cherry picked from commit e5452d5)
(cherry picked from commit bbe71d1)
rdenarie pushed a commit to Meeds-io/meeds that referenced this issue Nov 22, 2023
rdenarie pushed a commit to Meeds-io/meeds that referenced this issue Nov 22, 2023
)

Remove extra padding top and bottom from col container

(cherry picked from commit c0eda9d)
(cherry picked from commit 4254cdc)
exo-swf pushed a commit to Meeds-io/social that referenced this issue Nov 22, 2023
rdenarie pushed a commit to Meeds-io/notes that referenced this issue Nov 22, 2023
…ED-2953-Meeds-io/MIPs#103 (#852)

Prior to this change, When we toggle between show/hide of the preview mode in the public page, an extra margin in displayed when the app is hidden.
This change allows to remove extra margin when app is hidden.

(cherry picked from commit 74cb82e)
exo-swf pushed a commit to Meeds-io/social that referenced this issue Nov 22, 2023
exo-swf pushed a commit to Meeds-io/social that referenced this issue Nov 22, 2023
SaraBoutej added a commit to Meeds-io/social that referenced this issue Nov 23, 2023
… (#3210)

(cherry picked from commit 10b35ee)
(cherry picked from commit 4ae7c35)
@boubaker boubaker added this to the 1.5.0-M18 milestone Nov 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Completed
Development

No branches or pull requests

5 participants