-
Notifications
You must be signed in to change notification settings - Fork 1
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
UI template without links for Organisation Details #53
Conversation
ad32226
to
3063772
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.
A few translation things which aren't a big deal, but I definitely think the organisation needs to be the School
model, not the GiasSchool
.
I've tested it locally and it works as expected.
spec/features/personas/sign_in_as_a_claims_user_persona_spec.rb
Outdated
Show resolved
Hide resolved
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.
Good work. I'm a bit confused on the user flow we need here. Maybe you didn't pull the latest version of main. But I expected to have a organisations#show
controller and route here so we can redirect the user to the organisations details from here if he has multiple organisations or from here if he has only one organisation.
Happy to jump on a call for more detail.
84277e7
to
e488d09
Compare
spec/features/personas/sign_in_as_a_claims_user_persona_spec.rb
Outdated
Show resolved
Hide resolved
e488d09
to
9a26afd
Compare
Comments and suggestions only, don't want to be a blocker
9a26afd
to
86f1ebd
Compare
This has been changed to |
86f1ebd
to
a53d41b
Compare
328d802
to
8e90969
Compare
@@ -1,2 +1,5 @@ | |||
class Claims::PagesController < ApplicationController | |||
def index | |||
@user = User.first |
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've just realised. Is this the correct page?
The organisation details should be for the /schools/:school_id
page, right?
8e90969
to
1522e51
Compare
1522e51
to
c672260
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.
The user redirection flow will be
Sign In -> Organisations -> Organisation (if a user only has 1 Org)
This will also handle the case of when a user lands on the Organisations page and they will be redirected.
For now, we'll keep the root path in, but we can remove it once we know what we want to do for sure.
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.
Please remove this deletion from the set of changes.
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 also has not been addressed.
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 file also doesn't need to change
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 hasn't been addressed.
config/routes/claims.rb
Outdated
@@ -1,7 +1,7 @@ | |||
scope module: :claims, as: :claims, constraints: { host: ENV["CLAIMS_HOST"] } do | |||
root to: "pages#index" | |||
root to: "schools#show" |
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.
Please leave this as pages#index
. We will update the after_sign_in_path
in another PR.
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.
3d59381
to
b0060c9
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.
This hasn't been addressed.
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 also has not been addressed.
709e0d1
to
3ec8e22
Compare
<div class="govuk-grid-row"> | ||
<br><br> | ||
<div class="govuk-grid-column-two-thirds"> | ||
<h1 class="govuk-heading-l"><%= t("claims.pages.index.heading") %></h1> |
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.
Why is this page pointing to the index
controller action? 😅
spec/system/home_page_spec.rb
Outdated
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 think you can remove the added methods from this spec.
876c929
to
8e74878
Compare
config/locales/en.yml
Outdated
@@ -71,6 +71,15 @@ en: | |||
heading: Placements news and updates | |||
contents: Contents | |||
claims: | |||
schools: | |||
index: |
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.
index: | |
show: |
@@ -0,0 +1,54 @@ | |||
require "rails_helper" | |||
|
|||
RSpec.feature "School Page" do |
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.
RSpec.feature "School Page" do | |
RSpec.describe "School Page", type: :system do |
require "rails_helper" | ||
|
||
RSpec.feature "School Page" do | ||
after { Capybara.app_host = nil } |
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.
Once the above is added, this is already handled by the Rails Helper.
def given_i_am_on_the_claims_site | ||
Capybara.app_host = "http://#{ENV["CLAIMS_HOST"]}" | ||
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.
This is already handled by the services test helper that is included into System specs.
8e74878
to
224d5d3
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.
Thanks for going through each of the issues!
224d5d3
to
5a41526
Compare
model and template template model and spec rubocop fix test fix request changes lint request changes, add empty claim page, update test and routes request changes
model and template
template model and spec
Context
In this pr we are introduce the first part of organisation details we don't have data yet for Special educational needs and disabilities and additional details.
Our goal is to have the result looking the closest to the demo app
Changes proposed in this pull request
We created a component, we created a page and test related to the page.
Guidance to review
Check demo app and compare it to the screenshoot or local
Link to Trello card
Ticket
Things to check
Screenshots