Skip to content

feat: CMD-56 form footer "Powered by: [tapis]" — 2nd try - #62

Open
wesleyboar wants to merge 15 commits into
tapis-project:devfrom
wesleyboar:enhance/TUP-603-powered-by-tapis-in-footer--second-try
Open

feat: CMD-56 form footer "Powered by: [tapis]" — 2nd try#62
wesleyboar wants to merge 15 commits into
tapis-project:devfrom
wesleyboar:enhance/TUP-603-powered-by-tapis-in-footer--second-try

Conversation

@wesleyboar

@wesleyboar wesleyboar commented Oct 4, 2023

Copy link
Copy Markdown
Contributor

Overview

For TUP client1:

  1. Add "Powered by: [tapis]" to form footer.
  2. Do not show big Tapis logo above form.

Related

Changes

  • added footer template
  • added footer to forms that had none
  • added "Powered by: [tapis]" to forms
  • added figure template
  • for TUP client1, hid the big Tapis logo above form

Testing

For TUP client1:

  1. Forms should have footer with:
    • "Security" and "Policy" (left-aligned)
    • "Powered by: [Tapis]" (right-aligned)
  2. Header logo next to TACC logo should not show, for TUP client.
  3. Hover over "Powered by:" should only underline that text;
    • not any space before nor after
    • not the image

UI

page the TUP client
"TACC User Portal"
non-TUP client
developer (dev)
non-TUP client
generic (apcd)
login login_tup_dev login_nontup_dev login_nontup
authorize authorize_tup_dev authorize_nontup_dev authorize_nontup
mfa mfa_tup_dev mfa_nontup_dev mfa_nontup

Warning

Only non-TUP client developer (dev) are genuine live screenshots; the rest of login/authorize/mfa are rendered with mock context, since my dev environment has no working LDAP to complete a real login flow (because #37).

"Powered by:" link on hover
_hover
tenant
generic
idp
developer (dev)
tenant idp

Footnotes

  1. To reduce testing surface area to TUP client which has expedited request. Long-term, all clients get this. 2 3

…owered-by-tapis-in-footer

enhance: WP-308 form footer "Powered by: [tapis]"
Comment thread service/templates/content_footer.html Outdated
@wesleyboar

wesleyboar commented Aug 5, 2024

Copy link
Copy Markdown
Contributor Author

Note

This PR is still relevant. I track it in CMD-56.

@wesleyboar wesleyboar changed the title ⚠️ enhance: WP-308 form footer "Powered by: [tapis]" — 2nd try ⚠️ enhance: CMD-56 form footer "Powered by: [tapis]" — 2nd try Jun 24, 2026
…ride

content_footer.html overrode the head_extra block with {{ super() }} while
being pulled in via {% include %}, which Jinja doesn't support outside an
extends chain, causing "UndefinedError: there is no parent block called
'head_extra'" on every page using it. Style now lives inline in this
partial, scoped to what it styles.

Relates-to tapis-project#61, tapis-project#62
@wesleyboar wesleyboar changed the title ⚠️ enhance: CMD-56 form footer "Powered by: [tapis]" — 2nd try feat: CMD-56 form footer "Powered by: [tapis]" — 2nd try Sep 2, 2026
@wesleyboar
wesleyboar marked this pull request as ready for review September 2, 2026 21:09
tenant.html was missing the shared content_footer include that every
other redesigned form already has.
Security/Policies links stay on every form, but "Powered by: [tapis]"
now only renders when the client's display_name matches the TACC User
Portal (currently misconfigured as "TUP.…", eventually "TACC User
Portal"), case-insensitive.
Comment thread service/templates/content_footer.html Outdated
Replace the case-insensitive "tup"/"tacc user portal" substring check
with an exact, case-sensitive match against "TACC User Portal".
<a href="https://tacc.utexas.edu/use-tacc/user-policies/">
Policies
</a>
{% if client_display_name == "TACC User Portal" %}

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Note

This is a temporary solution to reduce testing surface area of this change to just TUP, who has expedited request for this.

* fix: hide generic Tapis logo next to TACC logo for the TACC User Portal client

Reuses the footer's client_display_name check (matching "TUP" or
"TACC User Portal", case-insensitive) so the header figure doesn't
show the placeholder Tapis logo alongside the hardcoded TACC logo
when the client is the TACC User Portal.

* fix: match client_display_name exactly for Tapis-logo suppression

Replace the case-insensitive "tup"/"tacc user portal" substring check
with an exact, case-sensitive match against "TACC User Portal",
matching the same fix applied to the footer's condition.

* refactor: extract repeated header figure into content_figure.html

Every form template duplicated the same tenant + hardcoded-tacc
branding.html double-include inside its <figure>. Extract it into a
shared partial, same pattern as content_footer.html.

* refactor: move TACC User Portal check from branding.html to content_figure.html

branding.html is restored to unmodified upstream content. content_figure.html
now decides whether to render the tenant-specific logo at all for a
TACC User Portal client, instead of branding.html only suppressing its
own generic Tapis-logo fallback. This also resolves the duplicate
TACC-logo case for a TUP client on the tacc tenant.

* fix: indentation
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.

4 participants