-
Notifications
You must be signed in to change notification settings - Fork 314
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
adds minimally functional page for assistant instructions #45
Conversation
43e4ec2
to
8770dd6
Compare
@@ -19,6 +19,9 @@ | |||
<%= content_for :head %> | |||
</head> | |||
<body> | |||
<% if notice.present? %> | |||
<p class="py-2 px-3 bg-green-50 mb-5 text-green-500 font-medium rounded-lg inline-block" id="notice"><%= notice %></p> | |||
<% end %> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I moved this flash notice up to the layout because messages were getting swallowed. It looks terrible, but I'm vaguely aware that @krschacht is working on styles? I'm happy to spruce it up if needed.
Anyway, with the notices getting swallowed, I wasn't able to write a helper method #login_user for the system integration tests and know that the login succeeded.
I'm happy to leave this as-is (minimally working) or to finish the refactor and make the notifications work system wide.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This seems like a fine place for now
@@ -3,7 +3,7 @@ | |||
<h2 class='text-3xl font-semibold text-black/90'>Welcome back</h2> | |||
<%= form_with(url: login_path, method: :post, class: "flex flex-col space-y-4 w-80") do |f| %> | |||
<%= f.email_field :email, id: "email", autofocus: true, placeholder: "Email address", class: "border border-gray-400 rounded text-black p-3"%> | |||
<%= f.password_field :password, id: "email", autofocus: true, placeholder: "Password", class: "border border-gray-400 rounded text-black p-3"%> | |||
<%= f.password_field :password, id: "password", autofocus: true, placeholder: "Password", class: "border border-gray-400 rounded text-black p-3"%> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Lil bug prevented me from writing the system login_user method.
@@ -33,5 +33,3 @@ | |||
|
|||
# Allow puma to be restarted by `bin/rails restart` command. | |||
plugin :tmp_restart | |||
|
|||
plugin :solid_queue |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixes #48
8770dd6
to
938f2b5
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good
fixes #37
fixes #48