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

General: Decrease footer height #9733

Merged
merged 1 commit into from
Nov 13, 2024

Conversation

rabeatwork
Copy link
Contributor

@rabeatwork rabeatwork commented Nov 11, 2024

Checklist

General

Motivation and Context

Align the spacing between the module and footer to match the spacing used elsewhere.

Description

Changed Variable $sidebar-footer-height-prod from 96px to 88px.

Steps for Testing

Testserver States

Note

These badges show the state of the test servers.
Green = Currently available, Red = Currently locked
Click on the badges to get to the test servers.







Review Progress

Code Review

  • Code Review 1
  • Code Review 2

Screenshots

Before:
Screenshot 2024-11-11 at 10 36 24
After:
Screenshot 2024-11-11 at 10 36 13

Summary by CodeRabbit

  • New Features

    • Enhanced dark theme with improved color definitions for UI elements.
    • Adjusted sidebar footer height for a better layout experience.
  • Bug Fixes

    • Corrected footer height in both dark and default themes to ensure consistency in production environments.

@rabeatwork rabeatwork requested a review from a team as a code owner November 11, 2024 09:41
@github-actions github-actions bot added the client Pull requests that update TypeScript code. (Added Automatically!) label Nov 11, 2024
Copy link

coderabbitai bot commented Nov 11, 2024

Walkthrough

The changes in this pull request involve modifications to SCSS variable definitions in two files: _dark-variables.scss and _default-variables.scss. The primary adjustment is the reduction of the $sidebar-footer-height-prod variable from 96px to 88px, impacting the layout of the sidebar in production environments. Additionally, various color variables related to the dark theme have been refined, enhancing the visual consistency of UI elements. Overall, the changes are focused on fine-tuning the visual aspects of the application without introducing new variables or altering existing logic.

Changes

File Path Change Summary
src/main/webapp/content/scss/themes/_dark-variables.scss Updated $sidebar-footer-height-prod from 96px to 88px; refined color variables for dark theme.
src/main/webapp/content/scss/themes/_default-variables.scss Updated $sidebar-footer-height-prod from 96px to 88px.

Possibly related PRs

Suggested labels

client, ready for review, small, user interface

Suggested reviewers

  • edkaya
  • krusche
  • Malekos74
  • florian-glombik

📜 Recent review details

Configuration used: .coderabbit.yaml
Review profile: CHILL

📥 Commits

Reviewing files that changed from the base of the PR and between d5e3b70 and 5ab1d78.

📒 Files selected for processing (2)
  • src/main/webapp/content/scss/themes/_dark-variables.scss (1 hunks)
  • src/main/webapp/content/scss/themes/_default-variables.scss (1 hunks)
🔇 Additional comments (2)
src/main/webapp/content/scss/themes/_default-variables.scss (1)

57-57: LGTM! Please verify the layout in different viewports.

The reduction of $sidebar-footer-height-prod from 96px to 88px aligns with the PR objective of ensuring consistent spacing between the module and footer.

✅ Verification successful

Based on the results from our verification scripts, I can now generate the final response:

LGTM! The variable change is safe and properly synchronized.

The change to $sidebar-footer-height-prod from 96px to 88px is synchronized in both theme files (_default-variables.scss and _dark-variables.scss), and there are no direct usages of the old value (96px) that would need updating. The variable is properly scoped within the theme system and the change is consistent across themes.

🏁 Scripts executed

The following scripts were executed for the analysis:

Script:

#!/bin/bash
# Description: Find all SCSS/CSS files that might be using the sidebar-footer-height-prod variable
# to help verify the impact of this change.

echo "Files potentially affected by the sidebar-footer-height-prod change:"
rg -l '\$sidebar-footer-height-prod' --type scss

Length of output: 226


Script:

#!/bin/bash
# Let's try with ripgrep without file type filtering and check for any files using this variable
echo "Files using sidebar-footer-height-prod:"
rg -l '\$sidebar-footer-height-prod'

# Also search for files with .scss extension to understand the structure
echo -e "\nSCSS files in the repository:"
fd '.*\.scss$'

Length of output: 34944


Script:

#!/bin/bash
# Let's check the usage of this variable in both files to understand its impact
echo "Content of _default-variables.scss:"
rg -A 5 -B 5 '\$sidebar-footer-height-prod' src/main/webapp/content/scss/themes/_default-variables.scss

echo -e "\nContent of _dark-variables.scss:"
rg -A 5 -B 5 '\$sidebar-footer-height-prod' src/main/webapp/content/scss/themes/_dark-variables.scss

# Let's also check where this variable is actually used in the SCSS files
echo -e "\nUsage of sidebar-footer-height-prod in SCSS files:"
rg '\$sidebar-footer-height-prod' --type scss -C 3

Length of output: 1032


Script:

#!/bin/bash
# Let's find where this variable is actually used without file type filtering
echo "Usage of sidebar-footer-height-prod across all files:"
rg '\$sidebar-footer-height-prod' -C 3

# Also check if there are any direct uses of the value 88px or the old value 96px
# that might need to be updated
echo -e "\nDirect usage of 88px or 96px in SCSS-like contexts:"
rg '(88|96)px' --type-add 'scss:*.scss' --type scss -C 2

Length of output: 2642


Script:

#!/bin/bash
# Let's check where this variable is actually used in the application's SCSS files
echo "Files using the sidebar-footer-height-prod variable:"
rg -l '\$sidebar-footer-height-prod' src/main/webapp/app/

# Also check for any imports of these theme files to understand the scope
echo -e "\nImports of theme variable files:"
rg -l '(_default-variables|_dark-variables)' src/main/webapp/content/scss/

Length of output: 332

src/main/webapp/content/scss/themes/_dark-variables.scss (1)

136-136: LGTM! Verify the UI spacing.

The reduction of $sidebar-footer-height-prod from 96px to 88px aligns with the PR objective to ensure consistent spacing between the module and footer.


Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?

❤️ Share
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Generate unit testing code for this file.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai generate unit testing code for this file.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and generate unit testing code.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai or @coderabbitai title anywhere in the PR title to generate the title automatically.

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

Copy link
Contributor

@florian-glombik florian-glombik left a comment

Choose a reason for hiding this comment

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

Approve code

Copy link

⚠️ Unable to deploy to test servers ⚠️

Testserver "artemis-test5.artemis.cit.tum.de" is already in use by PR #9737.

@github-actions github-actions bot added the deployment-error Added by deployment workflows if an error occured label Nov 13, 2024
@github-actions github-actions bot removed the deployment-error Added by deployment workflows if an error occured label Nov 13, 2024
@HawKhiem HawKhiem temporarily deployed to artemis-test4.artemis.cit.tum.de November 13, 2024 22:33 — with GitHub Actions Inactive
Copy link

@HawKhiem HawKhiem left a comment

Choose a reason for hiding this comment

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

Love the change!

@krusche krusche changed the title General: Update module height for production General: Decrease footer height Nov 13, 2024
@krusche krusche added this to the 7.7.1 milestone Nov 13, 2024
@krusche krusche merged commit a88c73d into develop Nov 13, 2024
54 of 59 checks passed
@krusche krusche deleted the chore/general/update-module-height-for-prod branch November 13, 2024 22:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
client Pull requests that update TypeScript code. (Added Automatically!) ready to merge
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

5 participants