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

Make left side bar move in/out #150 #166

Open
wants to merge 3 commits into
base: development
Choose a base branch
from

Conversation

odkhang
Copy link
Collaborator

@odkhang odkhang commented Jul 23, 2024

Fixes #150 Make left side bar move in/out

Short description of what this resolves:

Make left side bar move in/out

Checklist

  • I have read the Contribution & Best practices Guide.
  • My branch is up-to-date with the Upstream development branch.
  • The acceptance, integration, unit tests and linter pass locally with my changes
  • I have added tests that prove my fix is effective or that my feature works
  • I have added necessary documentation (if appropriate)

Summary by Sourcery

This pull request adds the ability to toggle the visibility of the left sidebar. It includes updates to multiple components and views to ensure the layout adjusts correctly when the sidebar is shown or hidden.

  • New Features:
    • Introduced functionality to toggle the visibility of the left sidebar.
  • Enhancements:
    • Updated various components and views to adjust layout when the sidebar is toggled.

@odkhang odkhang marked this pull request as ready for review July 23, 2024 09:53
Copy link

sourcery-ai bot commented Jul 23, 2024

Reviewer's Guide by Sourcery

This pull request implements the functionality to make the left sidebar move in and out based on user interaction and screen size. The changes involve updating the Vue components and styles to handle the sidebar's visibility and positioning dynamically.

File-Level Changes

Files Changes
webapp/src/views/admin/rooms/index.vue
webapp/src/views/rooms/item.vue
webapp/src/views/admin/announcements/index.vue
webapp/src/views/admin/announcements/item.vue
webapp/src/views/admin/config/index.vue
webapp/src/views/admin/index.vue
webapp/src/views/admin/kiosks/index.vue
webapp/src/views/admin/kiosks/item.vue
webapp/src/views/admin/kiosks/new.vue
webapp/src/views/admin/rooms/new.vue
webapp/src/views/admin/users.vue
webapp/src/views/contact-requests.vue
webapp/src/views/exhibitor-manager/exhibitor.vue
webapp/src/views/exhibitor-manager/index.vue
webapp/src/views/preferences/index.vue
webapp/src/views/rooms/EditRoomSchedule.vue
webapp/src/views/rooms/manage.vue
webapp/src/views/schedule/index.vue
webapp/src/views/schedule/speakers/index.vue
webapp/src/views/schedule/speakers/item.vue
webapp/src/views/schedule/talks/item.vue
webapp/src/views/admin/rooms/EditForm.vue
webapp/src/views/admin/user.vue
webapp/src/views/rooms/RoomHeader.vue
Updated styles to adjust the layout when the sidebar is closed.

Tips
  • Trigger a new Sourcery review by commenting @sourcery-ai review on the pull request.
  • Continue your discussion with Sourcery by replying directly to review comments.
  • You can change your review settings at any time by accessing your dashboard:
    • Enable or disable the Sourcery-generated pull request summary or reviewer's guide;
    • Change the review language;
  • You can always contact us if you have any questions or feedback.

Copy link

@sourcery-ai sourcery-ai bot left a comment

Choose a reason for hiding this comment

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

Hey @odkhang - I've reviewed your changes - here's some feedback:

Overall Comments:

  • Consider reducing code duplication in CSS changes across multiple files. A global CSS class or mixin could be used to handle layout adjustments when the sidebar is closed.
  • Review the changes to sidebar behavior, especially in relation to route changes. Ensure that the sidebar state is managed correctly across different scenarios.
Here's what I looked at during the review
  • 🟢 General issues: all looks good
  • 🟢 Security: all looks good
  • 🟢 Testing: all looks good
  • 🟢 Complexity: all looks good
  • 🟢 Documentation: all looks good

Sourcery is free for open source - if you like our reviews please consider sharing them ✨
Help me be more useful! Please click 👍 or 👎 on each comment to tell me if it was helpful.

@mariobehling
Copy link
Member

Please add screenshots.

@mariobehling
Copy link
Member

The goal of this issue is to regain the feature of the last eventyay version. There should be an icon to move the top bar in and out. This PR creates a top bar which is not desired.

Compare:

Screenshot from 2024-07-23 16-14-15
Screenshot from 2024-07-23 16-13-59

@mariobehling
Copy link
Member

Given the existing design it seems like the functionality of a "Sidenav push (off-canvas)" would be suitable. Compare here: https://www.w3schools.com/howto/howto_js_sidenav.asp

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.

Make left side bar move in/out
2 participants