Coder Social home page Coder Social logo

public-quiz's People

Stargazers

 avatar  avatar

public-quiz's Issues

Invalid installation in login-open action

ACTION: FAILURE.
Error: Secret ROOT__INSTALLATION invalid.
at toInstallation (/snapshot/public-quiz/dist/util/pasted.js:129:15)
at /snapshot/public-quiz/dist/index.js:348:69
Error: Process completed with exit code 1.

Why not push directly to Pages during activation?

The activate.ts script currently:

  1. Pulls from the Wiki
  2. Pushes from the Wiki
  3. Triggers copying to Pages

The script should instead

  1. read from the Wiki
  2. write to GitHub Pages

Instead of contents: write, the step can have these permissions:

pages: write
id-token: write

There will then be no need for:

  • committing and pushing
  • copy step of wiki.yaml
  • filter step of wiki.yaml

Also, wiki.yaml should only respond to gollum.

Use environment in project names

At some point it will be necessary to run separate traffic in my personal projects for PRODUCTION-LOGIN and DEVELOPMENT-TEST environments.

Renaming the projects with the environment as a prefix will allow this. Then, the password manager could remain in production use while testing new features in development.

discourage conflicting requests

two problems:

  • right after registration link... login still not ready
  • right after password reset... login still not ready

This arises when "LOGIN CLOSE" has not yet finished.
Quick fix-- make client wait for mail, even when not needed.

A more secure server-side fix really must handle two things:

  • requests failing or requests in the wrong order

Perhaps build up testing framework first?

remove reinstallation hurdles

  • should clear environment when rebuilding
  • should add version suffix to app installations
  • The build step alone should run when a PR is merged

Lacking environment creation permisson

In wiki.yaml, contents: write is insufficient to create a new environment. The relevant repo permissions are not available to github.token. Consider using user-generated personal access token as workaround.

invalid environment on login-open action

ACTION: FAILURE.
Error: Invalid env: DEPLOYMENT
at toError (/snapshot/public-quiz/dist/index.js:44:28)
at /snapshot/public-quiz/dist/index.js:199:19
at Object. (/snapshot/public-quiz/dist/index.js:536:3)

Integration tests

Consider setting up Karma to mock browser activity.

To decide which tests to run,

  • Try sketching up a directed graph of current valid/invalid states:
    • among secrets, release notes, client dispatches, and client URLs

Generic map props object to prop string

React allows passing props objects to html components. Reef can’t, and writing long strings by hand is confusing. Make a small genetic function to convert an object into html props.

const $ = o => {
 const kv = Object.entries(o);
 return kv.reduce((s, [k,v]) =>{
   return `${s} ${k}="${v}"`;
 }, '');
}

so

const h1_p = {id: 'prop'};
const h1 = `<h1 ${$(h1_p)}>Prop</h1>`;

Password reset broken in Chrome

Because of this sock-secret issue, unless cache is explicitly disabled, we can't handle "If-Modified-Since" when socket starts up. Creation of client socket should include default parameter for "last-modified" header that we can pass in when creating socket. The client quit() command should supply this header for use in creating a new socket.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.