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

adds minimally functional page for assistant instructions #45

Merged
merged 3 commits into from
Jan 11, 2024

Conversation

robacarp
Copy link
Contributor

@robacarp robacarp commented Jan 9, 2024

fixes #37
fixes #48

  • feature is implemented
  • controller tests
  • system tests

@robacarp robacarp force-pushed the assistant_instructions branch 2 times, most recently from 43e4ec2 to 8770dd6 Compare January 10, 2024 23:08
@@ -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 %>
Copy link
Contributor Author

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.

Copy link
Contributor

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"%>
Copy link
Contributor Author

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
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixes #48

@robacarp robacarp requested a review from krschacht January 10, 2024 23:12
@robacarp robacarp force-pushed the assistant_instructions branch from 8770dd6 to 938f2b5 Compare January 11, 2024 17:20
Copy link
Contributor

@krschacht krschacht left a comment

Choose a reason for hiding this comment

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

Looks good

@robacarp robacarp merged commit f750820 into main Jan 11, 2024
2 checks passed
@robacarp robacarp deleted the assistant_instructions branch January 11, 2024 22:52
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.

Configure SolidQueue to run in worker thread not web thread Support custom instructions
2 participants