Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow link retrieval by the leader, remove v1 flow #580

Merged
merged 69 commits into from
Apr 10, 2024
Merged

Commits on Mar 26, 2024

  1. Remove v1 links from the Home Page

    gh-572
    
    The v1 flow is too brittle. It will be confusing having login be
    meaningful for v1 and v2 simultaneously.
    
    Any shortcomings of v2 do not outweigh the risk that v1 carries of
    lockout.
    douglasnaphas committed Mar 26, 2024
    Configuration menu
    Copy the full SHA
    91c5d64 View commit details
    Browse the repository at this point in the history

Commits on Mar 27, 2024

  1. Configuration menu
    Copy the full SHA
    57e5734 View commit details
    Browse the repository at this point in the history
  2. Don't require access key-related vars in itest

    We use OIDC and SSO login now.
    douglasnaphas committed Mar 27, 2024
    Configuration menu
    Copy the full SHA
    84684fe View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    52ea18b View commit details
    Browse the repository at this point in the history
  4. Restore webapp outputs, something broke

    I think I depend on having these available. They're just going to have
    to be in the GitHub Actions output.
    douglasnaphas committed Mar 27, 2024
    Configuration menu
    Copy the full SHA
    cae6cd2 View commit details
    Browse the repository at this point in the history

Commits on Mar 30, 2024

  1. Configuration menu
    Copy the full SHA
    9ee5109 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    4f5765e View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    d3556f6 View commit details
    Browse the repository at this point in the history
  4. Disable Plan Seder if there is no logged-in user

    gh-568
    
    Because my Plan a Seder button renders as an <a> element, I don't have
    access to the "disabled" form control attribute.
    
    I want to see what the HTML looks like when the button is disabled.
    
    This says there's not a portable way to check for a disabled link:
    
    https://stackoverflow.com/questions/10276133/how-to-disable-html-links
    
    ChatGPT says to use:
    
    ```
    link.getAttribute('aria-disabled') === 'true' ||
    link.hasAttribute('disabled')
    ```
    douglasnaphas committed Mar 30, 2024
    Configuration menu
    Copy the full SHA
    ca94d14 View commit details
    Browse the repository at this point in the history
  5. Update MUI to ^5.15

    douglasnaphas committed Mar 30, 2024
    Configuration menu
    Copy the full SHA
    b30d234 View commit details
    Browse the repository at this point in the history
  6. Format v1 HomePage

    douglasnaphas committed Mar 30, 2024
    Configuration menu
    Copy the full SHA
    700b269 View commit details
    Browse the repository at this point in the history
  7. Put the post-login Paper in a medium container

    I like how the v2 Papers look. They use a medium container.
    douglasnaphas committed Mar 30, 2024
    Configuration menu
    Copy the full SHA
    d4eac4e View commit details
    Browse the repository at this point in the history
  8. Put Home Page main content on Paper

    gh-568
    
    You can't see a disabled Plan a Seder button against the Red Sea
    background. The About link has always been hard to see against the Red
    Sea background as well.
    douglasnaphas committed Mar 30, 2024
    Configuration menu
    Copy the full SHA
    23e0c89 View commit details
    Browse the repository at this point in the history
  9. Make the Home Page container narrower

    I want to show more of the Red Sea background. The buttons are small anyway.
    douglasnaphas authored Mar 30, 2024
    Configuration menu
    Copy the full SHA
    ec4ee8c View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    534c8dc View commit details
    Browse the repository at this point in the history

Commits on Mar 31, 2024

  1. Make the home page container size xs

    gh-568
    
    Even sm was too wide. On mobile xs is, too, but at least it's a bit
    narrower on desktop.
    douglasnaphas committed Mar 31, 2024
    Configuration menu
    Copy the full SHA
    b1de4de View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    ca307f0 View commit details
    Browse the repository at this point in the history

Commits on Apr 1, 2024

  1. Configuration menu
    Copy the full SHA
    694a6c3 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    7761286 View commit details
    Browse the repository at this point in the history

Commits on Apr 2, 2024

  1. Expect the leader nickname to display

    gh-568
    
    When picking the script.
    
    We'll use this instead of prompting them for their name.
    douglasnaphas committed Apr 2, 2024
    Configuration menu
    Copy the full SHA
    4480e21 View commit details
    Browse the repository at this point in the history
  2. Add SETUP_ONLY to itest runner

    So I can use it to create users.
    douglasnaphas committed Apr 2, 2024
    Configuration menu
    Copy the full SHA
    a2e4843 View commit details
    Browse the repository at this point in the history
  3. Use better SEO terms on the Home Page

    I don't come up in search results for "mad lib haggadah."
    douglasnaphas committed Apr 2, 2024
    Configuration menu
    Copy the full SHA
    a23b5da View commit details
    Browse the repository at this point in the history

Commits on Apr 3, 2024

  1. Don't set JWTs on the client

    gh-567
    
    I haven't used them for a while now. I use the opaque cookie that my app
    sets.
    douglasnaphas committed Apr 3, 2024
    Configuration menu
    Copy the full SHA
    04d8378 View commit details
    Browse the repository at this point in the history

Commits on Apr 4, 2024

  1. Configuration menu
    Copy the full SHA
    0bfce56 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    571bd10 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    1d4fd1d View commit details
    Browse the repository at this point in the history
  4. Don't set JWT cookies, backend v2

    We use the opaque cookie only.
    douglasnaphas committed Apr 4, 2024
    Configuration menu
    Copy the full SHA
    b2e4df0 View commit details
    Browse the repository at this point in the history
  5. Pull opaque cookie info from schema v2

    gh-572
    
    I'd like to remove backend v1 entirely.
    douglasnaphas committed Apr 4, 2024
    Configuration menu
    Copy the full SHA
    3e83140 View commit details
    Browse the repository at this point in the history

Commits on Apr 6, 2024

  1. Configuration menu
    Copy the full SHA
    0865967 View commit details
    Browse the repository at this point in the history
  2. Require, don't import, client-dynamodb

    I got the error:
    
    SyntaxError: Cannot use import statement outside a module
    douglasnaphas committed Apr 6, 2024
    Configuration menu
    Copy the full SHA
    0c04cdb View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    0453c87 View commit details
    Browse the repository at this point in the history
  4. Don't include a link to ./

    I'm not sure if this will fix it, but I'm getting an error:
    
    > Error occurred prerendering page "/". Read more:
    > https://nextjs.org/docs/messages/prerender-error
    douglasnaphas committed Apr 6, 2024
    Configuration menu
    Copy the full SHA
    e557add View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    ea9aada View commit details
    Browse the repository at this point in the history
  6. Wrap my top-level JSX in QueryClientProvider

    I keep getting the error:
    
    Error: No QueryClient set, use QueryClientProvider to set one
    
    The docs have the QueryClientProvider wrapping components at a higher
    level:
    
    https://tanstack.com/query/latest/docs/framework/react/overview
    
    though I can't tell if that's the issue.
    douglasnaphas committed Apr 6, 2024
    Configuration menu
    Copy the full SHA
    4573e00 View commit details
    Browse the repository at this point in the history
  7. Define the function using React Query later

    The example
    
    https://tanstack.com/query/latest/docs/framework/react/overview
    
    has the function that uses React Query defined after the default export.
    Maybe that's significant.
    douglasnaphas committed Apr 6, 2024
    Configuration menu
    Copy the full SHA
    ef9153e View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    739a278 View commit details
    Browse the repository at this point in the history
  9. Put the QueryClientProvider at the very top

    Still trying to deal with the error:
    
    Error: No QueryClient set, use QueryClientProvider to set one
    
    by making my code as much like the example
    
    https://tanstack.com/query/latest/docs/framework/react/overview#enough-talk-show-me-some-code-already
    
    as possible.
    douglasnaphas committed Apr 6, 2024
    Configuration menu
    Copy the full SHA
    202139d View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    98d79dc View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    a562dfd View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    9f934a0 View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    de1163a View commit details
    Browse the repository at this point in the history
  14. Configuration menu
    Copy the full SHA
    b51fe9b View commit details
    Browse the repository at this point in the history
  15. Set useQuery staleTime to Infinity

    It seems to be refetching and thus re-rendering constantly.
    douglasnaphas committed Apr 6, 2024
    Configuration menu
    Copy the full SHA
    9db4917 View commit details
    Browse the repository at this point in the history
  16. Try to avoid excessive refetching

    My create-haggadah/index page is refetching and re-rendering like crazy.
    Trying to only get it to fetch when it first loads.
    
    https://tanstack.com/query/v4/docs/framework/react/guides/important-defaults
    douglasnaphas committed Apr 6, 2024
    Configuration menu
    Copy the full SHA
    5d720a3 View commit details
    Browse the repository at this point in the history
  17. Remove duplicate useQuery

    That was in there by mistake. I'm wondering if that was the cause for
    the strange behaviors I was seeing: the page re-rendering constantly,
    to the point where I couldn't even type more than one character in the
    the boxes without it getting blanked out; the fetches firing and
    re-firing constantly; and the XPath for 'text contains <nickname>' never
    being found, despite being plainly visible on the page.
    douglasnaphas committed Apr 6, 2024
    Configuration menu
    Copy the full SHA
    ec63ec2 View commit details
    Browse the repository at this point in the history

Commits on Apr 7, 2024

  1. Configuration menu
    Copy the full SHA
    43b83b1 View commit details
    Browse the repository at this point in the history
  2. Wrap only the component using the query

    I'm still trying to prevent the call to /scripts from refiring every
    time I type a character. I'm hypothesizing that this is because I'm
    wrapping the whole app in the QueryClientProvider.
    douglasnaphas committed Apr 7, 2024
    Configuration menu
    Copy the full SHA
    d619b54 View commit details
    Browse the repository at this point in the history
  3. Use useEffect to get the user nickname

    No matter what I do with react-query, my seemingly unrelated useEffect
    hook that fetches the scripts re-runs every time the seemingly unrelated
    text boxes get more than one character typed in them. This is despite
    the fact that I am passing [] as the second arg to useEffect.
    douglasnaphas committed Apr 7, 2024
    Configuration menu
    Copy the full SHA
    dfb43cc View commit details
    Browse the repository at this point in the history
  4. Search all descendant text nodes for nickname

    According to ChatGPT:
    
    > The . in the contains() function refers to the string value of the
    > current node, including all descendant text nodes.
    douglasnaphas committed Apr 7, 2024
    Configuration menu
    Copy the full SHA
    450ab93 View commit details
    Browse the repository at this point in the history
  5. Move the Accordions before the Home function

    I'm hypothesizing that the change in order from an earlier commit on the
    v2-login branch was the cause for the re-renders to happen on every
    state change.
    douglasnaphas committed Apr 7, 2024
    Configuration menu
    Copy the full SHA
    806297c View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    f319019 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    ca9759c View commit details
    Browse the repository at this point in the history
  8. Add some logging to the join-seder flow

    I'm getting strange behavior where the leader's join-seder request seems
    to have the right params, but fails, and the Seder proceeds, without the
    leader able to participate.
    douglasnaphas committed Apr 7, 2024
    Configuration menu
    Copy the full SHA
    86d9842 View commit details
    Browse the repository at this point in the history
  9. Don't blacklist characters except in room code

    I think this is the reason that joining a seder with a leader name like
    my-email@email.com was failing. Certain characters were not allowed. I
    think DynamoDB and React handle the types of injection that I was trying
    to avoid with the character blacklist.
    douglasnaphas committed Apr 7, 2024
    Configuration menu
    Copy the full SHA
    e1aed6b View commit details
    Browse the repository at this point in the history
  10. Configuration menu
    Copy the full SHA
    de1b904 View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    540593b View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    1460baf View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    4e0b6a6 View commit details
    Browse the repository at this point in the history

Commits on Apr 8, 2024

  1. Configuration menu
    Copy the full SHA
    b0d7375 View commit details
    Browse the repository at this point in the history
  2. Remove unnecessary second break

    I probably shouldn't even be using breaks at all as I am.
    douglasnaphas committed Apr 8, 2024
    Configuration menu
    Copy the full SHA
    0b403d9 View commit details
    Browse the repository at this point in the history
  3. Add a Seders page, look for the links link

    The "links link" is the permalink to the leader's page that gives all
    the participant permalinks.
    douglasnaphas committed Apr 8, 2024
    Configuration menu
    Copy the full SHA
    02e8778 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    88ade93 View commit details
    Browse the repository at this point in the history
  5. Look for the link href prefix in itest

    Because I'm not including the pw in the thing I'm looking for, since it
    might get logged if not found.
    douglasnaphas committed Apr 8, 2024
    Configuration menu
    Copy the full SHA
    1c8f73f View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    94fd5fb View commit details
    Browse the repository at this point in the history

Commits on Apr 9, 2024

  1. Configuration menu
    Copy the full SHA
    46e71f4 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    4f9c4be View commit details
    Browse the repository at this point in the history
  3. Include cookies when getting my-seders

    Though for some reason in the console the login cookie was sent without
    {credentials: "include"}.
    douglasnaphas committed Apr 9, 2024
    Configuration menu
    Copy the full SHA
    4920f0a View commit details
    Browse the repository at this point in the history

Commits on Apr 10, 2024

  1. Don't refetch so much at /seders

    The /seders page is refreshing periodically. I'd rather have it stay
    displayed once it's displayed the first time, even if a subsequent
    refresh request fails.
    douglasnaphas committed Apr 10, 2024
    Configuration menu
    Copy the full SHA
    15b2102 View commit details
    Browse the repository at this point in the history
  2. Look for the whole links link

    But maybe don't print it.
    
    I am not prioritizing testing the links link without revealing it at
    this time.
    douglasnaphas committed Apr 10, 2024
    Configuration menu
    Copy the full SHA
    726f46a View commit details
    Browse the repository at this point in the history