Skip to content
This repository was archived by the owner on Jul 12, 2023. It is now read-only.

More consistent UI and project structure #533

Merged
merged 6 commits into from
Sep 11, 2020
Merged

Conversation

sethvargo
Copy link
Member

Been trying to clean this up for awhile. I went through all our HTML pages and made their styles consistent with light background, card bodies with shadow, form spacing, etc.

Release Note

Refreshed various UI elements

@google-oss-robot
Copy link

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: sethvargo

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@googlebot googlebot added the cla: yes Auto: added by CLA bot when all committers have signed a CLA. label Sep 11, 2020
@sethvargo
Copy link
Member Author

</div>
<div class="list-group-item">
<h5 class="mb-1">Expiry</h5>
<span id="code-expires-at" class="sm text-danger">&nbsp;</span>
Copy link
Member Author

Choose a reason for hiding this comment

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

Empty elements have no height, so this created a weird FOUT on page load. Giving it a space solves that problem.

@@ -0,0 +1,75 @@
{{define "login/select-realm"}}
Copy link
Member Author

Choose a reason for hiding this comment

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

Sigh. I don't know why git mv never works for me 😦

Copy link
Member Author

Choose a reason for hiding this comment

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

Anyway, this is pretty much a straight move into the login folder.

"github.com/google/exposure-notifications-verification-server/pkg/database"
)

func (c *Controller) HandleSelectRealm() http.Handler {
Copy link
Member Author

Choose a reason for hiding this comment

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

Moved this into login package and made it a single function that renders the form or processes the selection based on the request method like we do elsewhere.

@sethvargo
Copy link
Member Author

/assign @whaught

Copy link
Contributor

@whaught whaught left a comment

Choose a reason for hiding this comment

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

/lgtm

I'm playing with this locally - if I see any nits we can just follow up, but hard to review directly

@google-oss-robot google-oss-robot merged commit f13ac85 into main Sep 11, 2020
@google-oss-robot google-oss-robot deleted the sethvargo/structure branch September 11, 2020 23:37
@google google locked and limited conversation to collaborators Oct 6, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
cla: yes Auto: added by CLA bot when all committers have signed a CLA.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants