Office-of-Digital-Services / California-State-Web-Template-Website

The California State Template is an HTML template and sample website offered by the California Department of Technology to various other agencies and departments within the State of California. The template provides California Government entities with guidelines for how their websites should be created and developed, and allows for consistent branding and web standards for State websites. Please visit webtools.ca.gov for more information.
https://template.webstandards.ca.gov/
Other
42 stars 38 forks source link

Create Contact Us page #525

Closed ashleydraper closed 1 year ago

ashleydraper commented 2 years ago

Create a Contact Us page for the state template and track copy edits in this google doc.

Figma links: Contact us | Contact us error messages

extinah commented 2 years ago

Looks good to me. @artuoma

kkoryaka commented 2 years ago

@ashleydraper what roles option should we include in the select box? Screen Shot 2022-10-11 at 12 42 34 PM

kkoryaka commented 2 years ago

@carterm could you add azure post service to this one?

ashleydraper commented 2 years ago

@kkoryaka Let use this list:

yesenia-gtz commented 2 years ago

@carterm I have invited you to the OET research Airtable account for testing and configuration. Please let me know if you need further access or if you run into issues with your research.

https://airtable.com/appu01tGlmTTMm5uX/tblN7oCcLMOSPvbM6/viwBA9aiJfgaPQzga?blocks=hide

cc @artuoma @kkoryaka @ashleydraper

yesenia-gtz commented 2 years ago

@carterm See below for form setup in airtable. I added the field values to the table for you and a link to review Design System feedback form configuration here: https://airtable.com/app4B5KqaCTSHAdCS/tbliV5kSgz7jBnIyT/viwDkwTUo3wZOqYhF?blocks=hide

State Template contact form responses

Screen Shot 2022-10-20 at 8 01 33 AM

Screen Shot 2022-10-20 at 8 00 46 AM

Review Design System feedback form configuration

Screen Shot 2022-10-20 at 8 00 28 AM

cc @kkoryaka @artuoma @extinah

carterm commented 2 years ago

@yesenia-gtz The link above does not work for me.

Sorry, the page you were looking for was not found

yesenia-gtz commented 2 years ago

@carterm bummer, it is a link to the screenshot I attached for Review Design System feedback form configuration. just wanted to show you what was done in the Automations area of airtable.. you should be able to do that in our database.

yesenia-gtz commented 2 years ago

@extinah @sharon-rabang is there a design for the contact page ? are we using a generic form layout for this?

ashleydraper commented 2 years ago

@yesenia-gtz It existed on the last board, I just copied it to our new environment. Here's the contact us design from Courtney. Sharon may want to redesign.

sharon-rabang commented 2 years ago

@yesenia-gtz @ashleydraper @extinah @carterm Here is the redesigned form in Figma: Contact us | Contact us error messages Please let me know if we'll need to make any changes. Thanks!

yesenia-gtz commented 2 years ago

@hamiltonryan @artuoma @kkoryaka @extinah should we include a section for Department in the contact form? Would be great to know who is reaching out to keep track of interested persons.

kkoryaka commented 2 years ago

@yesenia-gtz Carter asked to move this item to production release date instead of Nov 4, because a lot of research involved.

yesenia-gtz commented 2 years ago

Moved to production release

extinah commented 2 years ago

Updated the word doc to include a section for department.... then saw this was moved to production release. Heads up.

https://docs.google.com/document/d/1pGl4gHz1IX8Kn94GQXWUzbHGInjf5f-c08TejsBlquc/edit

extinah commented 2 years ago

@hamiltonryan @artuoma @kkoryaka @extinah should we include a section for Department in the contact form? Would be great to know who is reaching out to keep track of interested persons.

I think we should do this.

carterm commented 2 years ago

Meeting with DevSecOps to set up Azure environment to run the Contact Us service.

The plan is to create a Azure FaaS endpoint in Node.JS that will act as a middle tier between the public website and the AirTable Base. The endpoint will only allow requests from specific origins, and only add new records to AirTable. The code for the endpoint will be created in a way that encourages users of the State Template to set up their own endpoints.

carterm commented 2 years ago

This is the service created to support the data flow.

https://github.com/Office-of-Digital-Services/cagov-form-post-service

carterm commented 2 years ago

Working with DevSecOps to set up the environment. It's a first time setting up an Azure Function with the current pipelines. Working through it, we got the service running, but they will need to recreate some Azure components for the final setup that won't be done until after Thanksgiving.

carterm commented 2 years ago

PR for working release... https://github.com/Office-of-Digital-Services/California-State-Web-Template-Website/pull/878

carterm commented 2 years ago

deployed to staging.

https://as-cdt-pub-migr-betaws-ww-p-001-stage.azurewebsites.net/contact-us-form.html

yesenia-gtz commented 2 years ago

@carterm OK to move to UX design review?

carterm commented 2 years ago

Added cosmetic updates to better match Figma design... https://github.com/Office-of-Digital-Services/California-State-Web-Template-Website/pull/879

carterm commented 2 years ago

@yesenia-gtz - deploying one more update. I'll let you know.

carterm commented 2 years ago

Ok staging is ready for UX review.

yesenia-gtz commented 2 years ago

@extinah ready for ya!

https://as-cdt-pub-migr-betaws-ww-p-001-stage.azurewebsites.net/contact-us-form.html

carterm commented 2 years ago

Do we have CSS styling for HTML5 "required" fields? The Figma design has glyphs etc, but that sort of convention should probably be included in the global CSS.

<style type="text/css">

  input:required:invalid, input:focus:invalid {
    background-image: url(/images/invalid.png);
    background-position: right top;
    background-repeat: no-repeat;
  }
  input:required:valid {
    background-image: url(/images/valid.png);
    background-position: right top;
    background-repeat: no-repeat;
  }

</style>
carterm commented 2 years ago

Also, our convention has required "*" in front of the label, and a "This field is required" label warning below, without entry instructions. In keeping with the convention, I went with what was on our form elements page.

https://beta.template.webstandards.ca.gov/components/form-elements.html

"Instructional, error messages, and placeholder text should not provide the same message as the label."

extinah commented 2 years ago

We should specs for interactions here. We'll try to get that to you sooner than later.

carterm commented 2 years ago

Adding accessibility update... https://github.com/Office-of-Digital-Services/California-State-Web-Template-Website/pull/880

carterm commented 2 years ago

Validators don't display until first submit attempt. https://github.com/Office-of-Digital-Services/California-State-Web-Template-Website/pull/883

extinah commented 2 years ago

@carterm here's some initial QA. NICELY DONE by the way. Yay :)

@sharon-rabang @ashleydraper can you both help finalize QA next week?

QA Only these two fields are required (name and email) per the design. I'm suggesting we make "How can we help" required, too.

Error messages if not submitting a required field:

Main role

Design image

In dev: unselected: image Selected: image

carterm commented 2 years ago

I can certainly change the required fields.

I'm not sure I understand the problem with the "Main role" selection. It has a dropdown of suggested items, with the ability to type anything instead of selecting other (like a combo box). Also, the screen reader support correctly describes the field as allowing in-line or list entry.

The AirTable data design only has one field for "Role", no "Other" catch field.

I could limit the "Main role" selection to the list and then have a secondary field in for a "other" type in, but that appears confusing and redundant in my opinion.

carterm commented 1 year ago

Changing required fields and visual 2/3 formatting... https://github.com/Office-of-Digital-Services/California-State-Web-Template-Website/pull/891

carterm commented 1 year ago

Changing field width to less that 100% https://github.com/Office-of-Digital-Services/California-State-Web-Template-Website/pull/896

sharon-rabang commented 1 year ago

@carterm Thanks for making the field adjustments! To help you follow @extinah's initial QA comments above, here are the related design specs and callouts. Please make these design fixes to match the Figma prototype: Contact us error messages image Let us know if we can help with any questions and when the updates are ready for UX review, thanks!

carterm commented 1 year ago

@kkoryaka Any idea on what css classes to change to make this work?

carterm commented 1 year ago

https://github.com/Office-of-Digital-Services/California-State-Web-Template-Website/pull/901

carterm commented 1 year ago

https://github.com/Office-of-Digital-Services/California-State-Web-Template-Website/pull/911

carterm commented 1 year ago

Adding captcha support...https://github.com/Office-of-Digital-Services/California-State-Web-Template-Website/pull/920

extinah commented 1 year ago

@sharon-rabang: The design is a little wrong - only 3 fields are required. The other ones (main role, department) shouldn't have error messages. The only one is maybe for department if they put in something into the field they shouldn't or there's too many characters. We can chat more about the specs later today (I'll call you). cc: @carterm PS: Sorry so late - it's taken me 2 days to get through all my git notifications :)

extinah commented 1 year ago

Per our team sync this morning: @ashleydraper will work on:

I (@extinah) will work on the form details (error messages, field details, etc). Will work with UX team for input, and then @carterm and @kkoryaka for initial dev feedback. Then a quick review with Kon, @artuoma, and @rkojik .

cc: @yesenia-gtz

ashleydraper commented 1 year ago

Looking like a meeting is not necessary. Team agreed to use main contact us page to house the form.

ashleydraper commented 1 year ago

@carterm Here is the content for the submitted feedback form.

ashleydraper commented 1 year ago

We are deleting the current contact page (pictured) and replacing with content in this contact us doc. See edits in the document.

image

carterm commented 1 year ago
extinah commented 1 year ago

Per our team sync this morning: @ashleydraper will work on:

  • the confirmation page text. When drafted, send to Kon, Art, Koji, and myself for review. When approved, I'll add it to figma and then let carter/devs know.
  • Looking to see if the form can be on the main contact us page. Set up a meeting with the UX team after an initial draft/recommendation.

I (@extinah) will work on the form details (error messages, field details, etc). Will work with UX team for input, and then @carterm and @kkoryaka for initial dev feedback. Then a quick review with Kon, @artuoma, and @rkojik .

cc: @yesenia-gtz

@carterm Let's wait to make the changes until it's reviewed (or not close the ticket until then). Or feel free to make the content changes, but know there could be some edits. Thanks!

ashleydraper commented 1 year ago

The contact us page is ready for review. Sending to leads.

Also sharing the feedback page for review.

extinah commented 1 year ago

I made one small comment. Approved by me, thanks.

yesenia-gtz commented 1 year ago

@ashleydraper @extinah my review is complete, no additional feedback. Thank you!