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

⚠️ DO NOT APPROVE: AUT-3665: Demonstrate independent pages approach. #2032

Closed
wants to merge 5 commits into from

Conversation

gtvj
Copy link
Collaborator

@gtvj gtvj commented Sep 9, 2024

What

Demonstrates how we might implement the independent pages approach set out in the ADR. See Jira ticket for more information.

This is achieved by:

  • Introducing a helper function that will translate a web template path to use its mobile counterpart where the context is mobile (See commit feb7dff for more detail)
  • Introducing a mobile specific layout that will be used by all mobile templates (See commit f1e331f for more detail)
  • Introducing a separate locale block to be used for all mobile templates (See commit 1d326f2 for more detail)
  • Adds and forces the render of a mobile landing page template (See commit 9673732)
  • Adds a commit also breaks the tests to prevent this change from making it to production (See commit b6f7528)

@gtvj gtvj requested review from a team as code owners September 9, 2024 13:42
@gtvj gtvj force-pushed the AUT/3665/demonstrate-approach-1-independent-pages branch from 48254a3 to 9673732 Compare September 9, 2024 13:48
@gtvj gtvj changed the title DO NOT APPROVE: AUT-3665: Demonstrate independent pages approach. ⚠️ DO NOT APPROVE: AUT-3665: Demonstrate independent pages approach. Sep 9, 2024
This helper is intended to provide a single mechanism that can be
added to controllers as required. The helper receives the web template
and a boolean reflecting context as arguments. It will returning the
path to the mobile equivalent template where the context is mobile.

The intention is for the helper to reinforce a consistent approach to
introducing mobile templates.
@gtvj gtvj force-pushed the AUT/3665/demonstrate-approach-1-independent-pages branch 2 times, most recently from 0a32c06 to 32ec081 Compare September 9, 2024 14:06
This layout will be used by templates that are intended
for presentation within a mobile app. It differs from the
web template because:

- It does not have the header as a link
- It does not have a footer (reflecting the designs for the
  landing page which are included in the Jira ticket).
These blocks are intended to keep the content that is included in
templates intended for the mobile context separate to those for the
web context. While this may result in a degree of content redundancy
over the long-term, I have opted for this approach because it:

- Makes it clear to future developers in which context a given piece of
  content is intended to appear
- Reduces complexity when it is necessary to update a page in only the
  mobile or web context, without it being necessary to seek approval from
  the other team
- Allows us to have a clear relationship between the template contexts and
  content blocks. For example, any page within a '/mobile-templates' directory
  should only contain locale referencs to the 'mobilePages' content block.
This commint adds the mobile template and updates the controller to
force it being rendered. This is to demonstrate the condition where
the user session indicates the mobile context (we do not have this
ability yet).
Introduces a typographically incorrect quote into a locale file to
prevent this branch from progressing through CI to production (in
the event that the PR is accidentally approved and merged).
@gtvj gtvj force-pushed the AUT/3665/demonstrate-approach-1-independent-pages branch from 32ec081 to a1906b6 Compare September 9, 2024 14:09
@gtvj gtvj closed this Sep 10, 2024
@gtvj gtvj deleted the AUT/3665/demonstrate-approach-1-independent-pages branch September 23, 2024 14:51
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.

1 participant