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

Moved impersonate message to top of the page, put it in a red box #5802

Merged
merged 3 commits into from
Jun 12, 2024

Conversation

freestylebit
Copy link
Collaborator

What github issue is this PR for, if any?

Resolves #5758

What changed, and why?

Moved the impersonate banner from the sidebar to the top of the page
Put it inside a red box, make it more prominent.

How is this tested? (please write tests!) 💖💪

Note: if you see a flake in your test build in github actions, please post in slack #casa "Flaky test: " :) 💪
Note: We love capybara tests! If you are writing both haml/js and ruby, please try to test your work with tests at every level including system tests like https://github.com/rubyforgood/casa/tree/main/spec/system

Screenshots please :)

Run your local server and take a screenshot of your work! Try to include the URL of the page as well as the contents of the page.
Screenshot 2024-06-01 at 11 06 19

Feelings gif (optional)

What gif best describes your feeling working on this issue? https://giphy.com/
How to embed:

![alt text](https://media.giphy.com/media/1nP7ThJFes5pgXKUNf/giphy.gif)

@github-actions github-actions bot added ruby Pull requests that update Ruby code Tests! 🎉💖👏 erb labels Jun 1, 2024
@freestylebit freestylebit force-pushed the pc-impersonate branch 2 times, most recently from 7ac2da3 to 609d264 Compare June 1, 2024 18:06
@elasticspoon
Copy link
Collaborator

elasticspoon commented Jun 1, 2024

rspec ./spec/views/layouts/sidebar.html.erb_spec.rb:153 # layout/sidebar impersonation renders a stop impersonating link when impersonating

is failing since the message was moved out of the sidebar

other stuff is unrelated as you figured out

@freestylebit
Copy link
Collaborator Author

rspec ./spec/views/layouts/sidebar.html.erb_spec.rb:153 # layout/sidebar impersonation renders a stop impersonating link when impersonating

is failing since the message was moved out of the sidebar

other stuff is unrelated as you figured out

Ahh yes, I missed a spot. This should no longer be here since the stuff has been moved.

@elasticspoon
Copy link
Collaborator

I think this just needs a rebased on main now.

Copy link
Collaborator

@elasticspoon elasticspoon left a comment

Choose a reason for hiding this comment

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

Small request with test.

edit: Honestly we can adjust styling later if they don't like it

spec/views/layouts/sidebar.html.erb_spec.rb Show resolved Hide resolved
@freestylebit freestylebit merged commit 73ffd95 into main Jun 12, 2024
20 checks passed
@freestylebit freestylebit deleted the pc-impersonate branch June 12, 2024 02:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
erb ruby Pull requests that update Ruby code Tests! 🎉💖👏
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Make the "Impersonate" banner more prominent
3 participants