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

App Router Preview Handler #797

Merged
merged 52 commits into from
Jul 13, 2024
Merged

Commits on May 24, 2024

  1. feat: app router poc

    nicholasio committed May 24, 2024
    Configuration menu
    Copy the full SHA
    f869143 View commit details
    Browse the repository at this point in the history

Commits on May 27, 2024

  1. Configuration menu
    Copy the full SHA
    5df7f07 View commit details
    Browse the repository at this point in the history

Commits on Jun 6, 2024

  1. wip: wip

    nicholasio committed Jun 6, 2024
    Configuration menu
    Copy the full SHA
    e7dc174 View commit details
    Browse the repository at this point in the history

Commits on Jun 17, 2024

  1. fix: merge conflicts

    nicholasio committed Jun 17, 2024
    Configuration menu
    Copy the full SHA
    461a648 View commit details
    Browse the repository at this point in the history

Commits on Jun 20, 2024

  1. Configuration menu
    Copy the full SHA
    fb075b2 View commit details
    Browse the repository at this point in the history

Commits on Jun 22, 2024

  1. Configuration menu
    Copy the full SHA
    41f73e3 View commit details
    Browse the repository at this point in the history

Commits on Jun 23, 2024

  1. Configuration menu
    Copy the full SHA
    e4055dd View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    fb0e26b View commit details
    Browse the repository at this point in the history

Commits on Jun 24, 2024

  1. Configuration menu
    Copy the full SHA
    3b73131 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    26c35a7 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    0a0284b View commit details
    Browse the repository at this point in the history
  4. fix: build error

    nicholasio committed Jun 24, 2024
    Configuration menu
    Copy the full SHA
    ce3ec6d View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    8f078f6 View commit details
    Browse the repository at this point in the history

Commits on Jun 25, 2024

  1. fix: build issue

    nicholasio committed Jun 25, 2024
    Configuration menu
    Copy the full SHA
    5a183aa View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    e5f741e View commit details
    Browse the repository at this point in the history
  3. feat: tag page

    nicholasio committed Jun 25, 2024
    Configuration menu
    Copy the full SHA
    6f68dd8 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    21990bb View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    30f94c7 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    156072f View commit details
    Browse the repository at this point in the history
  7. fix: another build issue

    nicholasio committed Jun 25, 2024
    Configuration menu
    Copy the full SHA
    fe647b5 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    c3cf144 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    d96e10c View commit details
    Browse the repository at this point in the history

Commits on Jun 26, 2024

  1. test: more tests

    nicholasio committed Jun 26, 2024
    Configuration menu
    Copy the full SHA
    3006585 View commit details
    Browse the repository at this point in the history

Commits on Jun 28, 2024

  1. test: add more tests

    nicholasio committed Jun 28, 2024
    Configuration menu
    Copy the full SHA
    46971cb View commit details
    Browse the repository at this point in the history
  2. chore: changeset

    nicholasio committed Jun 28, 2024
    Configuration menu
    Copy the full SHA
    dad963d View commit details
    Browse the repository at this point in the history
  3. chore: fix lock file

    nicholasio committed Jun 28, 2024
    Configuration menu
    Copy the full SHA
    80c3576 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    a7eebf7 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    96a5c2f View commit details
    Browse the repository at this point in the history

Commits on Jul 1, 2024

  1. Configuration menu
    Copy the full SHA
    cd76604 View commit details
    Browse the repository at this point in the history
  2. feat: preview fixes

    nicholasio committed Jul 1, 2024
    Configuration menu
    Copy the full SHA
    8b2858b View commit details
    Browse the repository at this point in the history

Commits on Jul 3, 2024

  1. Configuration menu
    Copy the full SHA
    d7cc96f View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    c945166 View commit details
    Browse the repository at this point in the history
  3. chore: update re-exports

    nicholasio committed Jul 3, 2024
    Configuration menu
    Copy the full SHA
    b01a4ba View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    631dbdc View commit details
    Browse the repository at this point in the history
  5. docs: update jsdocs

    nicholasio committed Jul 3, 2024
    Configuration menu
    Copy the full SHA
    5a787aa View commit details
    Browse the repository at this point in the history

Commits on Jul 4, 2024

  1. Configuration menu
    Copy the full SHA
    2a17cf1 View commit details
    Browse the repository at this point in the history
  2. chore: changeset

    nicholasio committed Jul 4, 2024
    Configuration menu
    Copy the full SHA
    98bae20 View commit details
    Browse the repository at this point in the history

Commits on Jul 9, 2024

  1. Configuration menu
    Copy the full SHA
    08ae034 View commit details
    Browse the repository at this point in the history
  2. refactor: small refactor

    nicholasio committed Jul 9, 2024
    Configuration menu
    Copy the full SHA
    db7486e View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    ad6beaf View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    a7dea3a View commit details
    Browse the repository at this point in the history
  5. test: fix tests

    nicholasio committed Jul 9, 2024
    Configuration menu
    Copy the full SHA
    e38627b View commit details
    Browse the repository at this point in the history
  6. test: fixing more tests

    nicholasio committed Jul 9, 2024
    Configuration menu
    Copy the full SHA
    bd70af9 View commit details
    Browse the repository at this point in the history
  7. test: fix last test

    nicholasio committed Jul 9, 2024
    Configuration menu
    Copy the full SHA
    2dc5a06 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    f86a8cb View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    a91a47d View commit details
    Browse the repository at this point in the history

Commits on Jul 11, 2024

  1. Configuration menu
    Copy the full SHA
    b585500 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    68db922 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    163fbcf View commit details
    Browse the repository at this point in the history
  4. chore: fix deps

    nicholasio committed Jul 11, 2024
    Configuration menu
    Copy the full SHA
    69f8b0e View commit details
    Browse the repository at this point in the history

Commits on Jul 13, 2024

  1. App Router Handler Tests (#799)

    <!--
    Filling out this template is required. Any PR that does not include
    enough information to be reviewed may be closed at a maintainers'
    discretion. All new code requires documentation and tests to ensure
    against regressions.
    -->
    
    ### Description of the Change
    <!--
    We must be able to understand the design of your change from this
    description. The maintainer reviewing this PR may not have worked with
    this code recently, so please provide as much detail as possible.
    
    Where possible, please also include:
    - verification steps to ensure your change has the desired effects and
    has not introduced any regressions
    - any benefits that will be realized
    - any alternative implementations or possible drawbacks that you
    considered
    - screenshots or screencasts
    -->
    
    <!-- Enter any applicable Issue number(s) here that will be
    closed/resolved by this PR. -->
    Closes #791 
    
    
    
    ### Checklist:
    <!--- Go over all the following points, and put an `x` in all the boxes
    that apply. -->
    <!--- If you are unsure about any of these, please ask for
    clarification. We are here to help! -->
    - [x] I agree to follow this project's [**Code of
    Conduct**](https://github.com/10up/.github/blob/trunk/CODE_OF_CONDUCT.md).
    - [ ] I have updated the documentation accordingly.
    - [x] I have added tests to cover my change.
    - [x] All new and existing tests pass.
    nicholasio authored Jul 13, 2024
    Configuration menu
    Copy the full SHA
    1cd5087 View commit details
    Browse the repository at this point in the history
  2. App Router - Revalidate Handler + Test Refactor to use sourceUrl (#798)

    <!--
    Filling out this template is required. Any PR that does not include
    enough information to be reviewed may be closed at a maintainers'
    discretion. All new code requires documentation and tests to ensure
    against regressions.
    -->
    
    ### Description of the Change
    <!--
    We must be able to understand the design of your change from this
    description. The maintainer reviewing this PR may not have worked with
    this code recently, so please provide as much detail as possible.
    
    Where possible, please also include:
    - verification steps to ensure your change has the desired effects and
    has not introduced any regressions
    - any benefits that will be realized
    - any alternative implementations or possible drawbacks that you
    considered
    - screenshots or screencasts
    -->
    
    <!-- Enter any applicable Issue number(s) here that will be
    closed/resolved by this PR. -->
    Partially Closes #791 
    
    This also refactors the test infrastructure to use absolute URLs instead
    of relative URL (closes #643 )
    
    ### How to test the Change
    <!-- Please provide steps on how to test or validate that the change in
    this PR works as described. -->
    - Start up the wp-env
    - `npm run build -- --filter=@10up/wp-nextjs-app` to build the app
    - `npm run start -w=@10up/wp-nextjs-app` to start the app.
    - Make sure to set the headless front-end url in Settings.
    - Open any post on the admin interface and update it, ensure that the
    post on the front-end gets revalidated (yuou see the updated version)
    
    
    ### Checklist:
    <!--- Go over all the following points, and put an `x` in all the boxes
    that apply. -->
    <!--- If you are unsure about any of these, please ask for
    clarification. We are here to help! -->
    - [x] I agree to follow this project's [**Code of
    Conduct**](https://github.com/10up/.github/blob/trunk/CODE_OF_CONDUCT.md).
    - [ ] I have updated the documentation accordingly.
    - [ ] I have added tests to cover my change.
    - [x] All new and existing tests pass.
    nicholasio authored Jul 13, 2024
    Configuration menu
    Copy the full SHA
    f147737 View commit details
    Browse the repository at this point in the history