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

chore(angular): proxies file is ignored by prettier #28379

Merged
merged 2 commits into from
Oct 18, 2023

Conversation

liamdebeasi
Copy link
Contributor

@liamdebeasi liamdebeasi commented Oct 18, 2023

Issue number: N/A


What is the current behavior?

Prettier is configured to ignore the proxies.ts file in the src directory only. This means it is adjusting whitespace/commas/etc on the proxies.ts file in the standalone directory which we do not want because we will always get diffs whenever npm run build is run in core.

What is the new behavior?

  • Updated prettier config to ignore all proxies.ts files in the angular package
  • Re-generated the proxies file

Does this introduce a breaking change?

  • Yes
  • No

Other information

@github-actions github-actions bot added the package: angular @ionic/angular package label Oct 18, 2023
@liamdebeasi liamdebeasi changed the title chore: run build chore(angular): revert prettier change Oct 18, 2023
@liamdebeasi liamdebeasi force-pushed the revert-prettier-change branch from 5fb999b to fbf5471 Compare October 18, 2023 20:39
@liamdebeasi liamdebeasi changed the title chore(angular): revert prettier change chore(angular): proxies file is ignored by prettier Oct 18, 2023
@liamdebeasi liamdebeasi marked this pull request as ready for review October 18, 2023 20:41
@mapsandapps mapsandapps self-requested a review October 18, 2023 20:42
@liamdebeasi liamdebeasi enabled auto-merge October 18, 2023 20:45
@liamdebeasi liamdebeasi added this pull request to the merge queue Oct 18, 2023
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Oct 18, 2023
@liamdebeasi liamdebeasi added this pull request to the merge queue Oct 18, 2023
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Oct 18, 2023
@liamdebeasi liamdebeasi added this pull request to the merge queue Oct 18, 2023
Merged via the queue into main with commit 068d003 Oct 18, 2023
@liamdebeasi liamdebeasi deleted the revert-prettier-change branch October 18, 2023 21:51
liamdebeasi added a commit that referenced this pull request Oct 25, 2023
Issue number: N/A

---------

<!-- Please do not submit updates to dependencies unless it fixes an
issue. -->

<!-- Please try to limit your pull request to one type (bugfix, feature,
etc). Submit multiple pull requests if needed. -->

## What is the current behavior?
<!-- Please describe the current behavior that you are modifying. -->

Toast does not support swipe gestures to dismiss.

## What is the new behavior?
<!-- Please describe the behavior or changes that are being added by
this PR. -->

- Adds a `swipeGesture` property to enable this behavior
- Creates an HTML playground so I can later write E2E tests
- Adds stubbed implementations for creating and destroying the swipe
gesture on prop change, present, and dismiss
- Adds unit tests to verify that the gesture is being created/destroyed
on prop change, present, and dismiss

In
cf7e897
I moved the toast config tests to separate file. For some reason this
was causing issues with my new tests. This might be a Stencil bug given
that I got the following error:

```js
, getValue = (e, t) => getHostRef(e).$instanceValues$.get(t), setValue = (e, t, a, o) => {
                                     ^

TypeError: Cannot read properties of undefined (reading '$instanceValues$')
    at getValue (/Users/liamdebeasi/Ionic/ionic/core/node_modules/@stencil/core/internal/testing/index.js:508:38)
    at Toast.get [as position] (/Users/liamdebeasi/Ionic/ionic/core/node_modules/@stencil/core/internal/testing/index.js:538:13)
    at Toast.dismiss (/Users/liamdebeasi/Ionic/ionic/core/src/components/toast/toast.tsx:208:30)
    at runNextTicks (node:internal/process/task_queues:60:5)
    at listOnTimeout (node:internal/timers:533:9)
    at processTimers (node:internal/timers:507:7)
```

## Does this introduce a breaking change?

- [ ] Yes
- [x] No

<!-- If this introduces a breaking change, please describe the impact
and migration path for existing applications below. -->


## Other information

<!-- Any other information that is important to this PR such as
screenshots of how the component looks before and after the change. -->

Note: This PR is missing some build artifacts. I will add those once
#28379 is merged and
synced into this branch.
sean-perkins pushed a commit that referenced this pull request Oct 27, 2023
Issue number: N/A

---------

<!-- Please do not submit updates to dependencies unless it fixes an
issue. -->

<!-- Please try to limit your pull request to one type (bugfix, feature,
etc). Submit multiple pull requests if needed. -->

## What is the current behavior?
<!-- Please describe the current behavior that you are modifying. -->

Prettier is configured to ignore the `proxies.ts` file in the `src`
directory only. This means it is adjusting whitespace/commas/etc on the
`proxies.ts` file in the `standalone` directory which we do not want
because we will always get diffs whenever `npm run build` is run in
`core`.

## What is the new behavior?
<!-- Please describe the behavior or changes that are being added by
this PR. -->

- Updated prettier config to ignore all `proxies.ts` files in the
`angular` package
- Re-generated the proxies file

## Does this introduce a breaking change?

- [ ] Yes
- [x] No

<!-- If this introduces a breaking change, please describe the impact
and migration path for existing applications below. -->


## Other information

<!-- Any other information that is important to this PR such as
screenshots of how the component looks before and after the change. -->
@liamdebeasi liamdebeasi mentioned this pull request Oct 31, 2023
2 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
package: angular @ionic/angular package
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants