cagov / alpha Goto Github PK
View Code? Open in Web Editor NEWThis is the Dev/Tech repo for CA.gov Alpha.
Home Page: https://alpha.ca.gov
License: GNU General Public License v3.0
This is the Dev/Tech repo for CA.gov Alpha.
Home Page: https://alpha.ca.gov
License: GNU General Public License v3.0
The web config only allows specific file types currently. As we solution forward, we are only going to host static content, so there is no reason to limit file types. It could create issues in the future if file types are not allowed.
Allow all file types on the server.
Could we check in with other teams or do our own research and come up with a deployment process we should follow that will make sure our static assets are compressed (gzipped or brotli'd) when delivered to end users.
We can put them in blog storage or pre compress as part of the build process and deliver directly from our server, I don't have an opinion on the best way to accomplish this, we can use whatever process is easiest in our azure environment
follow tech checklist identified in #72
Adding from prior issue:
**As a visitor/user of Alpha.CA.gov, I would like to have the option to submit feedback so I can share my ideas or issues I'm having while using Alpha.CA.gov.
@carterm @aaronhans
Do either of you know what has caused the 502 Bad Gateway?
https://staging.alpha.technology.ca.gov
Did either of you make changes last week? Just trying to get it working again and prepare for the DNS cutover for alpha.ca.gov
CI-CD diagram needs another update to reflect desired pipeline changes.
Example from Portland's beta site: https://beta.portland.gov/
👉 Prior issue #48
Moved to Ops
PR from any branch should NOT deploy to staging. It should be for specific branches such as "master" or "staging" only.
Integrate dynamic file naming for static assets like js and css which update often
this can be done along with other developer experience upgrades like adding watch process to rebuild automatically
Describe the bug
We should implement Strict Transport Security (HSTS) in order to prevent man-in-the-middle attacks where people specifying the HTTP address can be redirected to a malicious site.
More information here...
https://hstspreload.org/
To Reproduce
Request URL: http://alpha.ca.gov/
Request Method: GET
Status Code: 301 Moved Permanently (from disk cache)
Location: https://alpha.ca.gov/
Expected behavior
The browser should automatically go the the HTTPS site without triggering a redirect.
related to...
#13
As a user, I'd like to see a status bar of key digital performance indicators, so I can see how CA.gov is meeting this criteria.
Initial indicators:
Would also be great to have a /performance page that explains what each of these are.
We will be initially using SurveyMonkey to collect feedback on each form. (It's the most efficient method we have right now). Plus Hilary is already using this.
Prior issue/draft content: #48
As a visitor/user of Alpha.CA.gov, I would like to have the option to submit feedback so I can share my ideas or issues I'm having while using Alpha.CA.gov.
We need accessibility tool standards being used by everyone on the team, our automated tools and documented in our handbook
Would like to come up with recommended toolset of accessibility tools to use in:
Started gathering tool info and capabilities here: https://docs.google.com/spreadsheets/d/1QSDU4J48Rjopw5a5y46uONLx6LkxUTwCCRwazaaVhfI/edit#gid=0
Create at least 3 components based on widgets we are already using in our current content:
Review how these look when integrated in storybook vs other ways of presenting a "design system"
remove gzip junk, handled on server
document prerequisites and build steps in repository readme
streamline build steps to remove temp generated files
move all files to be deployed into new public directory
Currently, https://alpha.ca.gov/index.html and https://alpha.ca.gov/ are the same page. Recommend we 301 redirect index.html to the root and add a canonical header to the page.
<link rel="canonical" href="https://alpha.ca.gov" />
We need to update our "homepage" to add the prototypes we have "shipped" and add to the "live" alpha.ca.gov site.
This will require:
Let's build a static page of basic design components for the page so we can reference while prototyping.
Example: https://style.codeforamerica.org/
cc @artuoma @aaronhans @ChadABratton @carterm should we do this as a single repo?
@lukefretwell Our CWDS repo is basically the beginning of that just categorized using the bootstrap components.
We should add a robots.txt file to the UX github site. Otherwise, this site will be crawled and steal traffic from the real site when it is released.
Recommended contents...
User-agent: *
Disallow: /
the file should appear here...
https://cagov.github.io/robots.txt
UX project...
https://github.com/cagov/UX
test
via Twitter:
What if @CAdotGov was a platform that made government make sense? What if it consumed APIs from cities, counties and school districts about local services and polices using open standards to provide real-time context for any issue? https://t.co/cdgvH9soLi?amp=1
DRI: @carterm
cc: @KimberlyglennTSM
Note: Looks like there is some configuration work to be done. I'd like to start diving into this data tomorrow.
Enable monitoring and alerting for alpha.ca.gov
Is your feature request related to a problem? Please describe.
We discussed ways to serve up blog/news content types.
Describe the solution you'd like
We can do static or using a lightweight content management system (a la Gatsby).
Describe alternatives you've considered
@aaronhans?
Alpha.ca.gov is currently running on an app service with limited resources and no CDN.
Task: Migrate to new app service, app gateway, and implement CDN
The flag icon that appears on the upper left side in the "Official California State Government Website" header is 112,485 bytes. In contrast, the CA icon is only 2,845 bytes.
Also, it appears very small on mobile/narrow views.
https://alpha.ca.gov/img/ca-flag.png
Use this tool https://github.com/treosh/lighthouse-ci-action as part of our build/deploy process
Right now there is an azure pipeline process which is deploying every branch to staging. That could be modified to only deploy the staging branch to staging, then this github action can run and audit the site there. Going to be some discovery and learning during this process and we should distribute the knowledge gained throughout the team.
High level goal:
Use an automated tool which generates reports against a running version of the site using branch which we want to deploy and gives us:
Regressions in these scores should block promotion to production
Scores should be able to be tracked over time, ideally reports from each build would be viewable with the cute score dial graphics
quick answer
step by step
smart answer (calculator)
transaction start page
guide
location search
news
Descriptions and Content Type Examples from PD: https://drive.google.com/a/alpha.ca.gov/file/d/1CmyDVKfkJ9FhAgx-lUFZ6HUqltrAFeQD/view?usp=sharing
follow tech checklist from #72
Creating a working Function As A Service prototype will make sure we have data options should our alpha want access to anything other than static data.
Recommend we make an offering that returns state holidays as a JSON result, which could feed other services that return HTML or ICAL.
Assuming the official domain for the alpha site is alpha.ca.gov
(recommended) then www.alpha.ca.gov
should eventually (but quickly) become a 301 (permanent) redirect to alpha.ca.gov
.
https://www.alpha.ca.gov
should not be marketed but will then work just in case someone mistakenly believes the www is necessary.
How the redirect is configured/created depends on the domain registry and/or hosting environment used.
Additionally, you might plan for a sequential release plan that allows you to maintain alpha.ca.gov
as the bleeding edge experimental version when www.ca.gov
is replaced by the new site.
Cheers!
via Twitter:
I bet @dsearls and @windley could gather some great ideas for @CAdotGov around identity and human-centered government services! @abquirarte @CohanShapiro @MikeWilkening_ @TamaraIDEJA
Follow the tech promotion checklist here #72
When I search for steps to do a particular public service, I would see a snippet of the instructions directly in the search results.
Reference: https://www.w3.org/WAI/planning/statements/
Create a service that returns state holidays in ical format.
Continuation of...#63
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.