Граф коммитов

177 Коммитов

Автор SHA1 Сообщение Дата
Graphitation Service Account 10eaca32c6 applying package updates 2024-09-06 08:14:42 +00:00
Stanisław 4bf1c3febd
chore(nova-react-test-utils): fix readme (#107)
* fix readme

* Change files

---------

Co-authored-by: Stanislaw Wilczynski <Stanislaw.Wilczynski@microsoft.com>
2024-09-06 10:02:21 +02:00
Graphitation Service Account 0ab57ba29e applying package updates 2024-09-05 20:13:44 +00:00
Kerryn Frampton 68c1e47fe2
Update nova-facade-release.yml (#106)
Update pool for compliance checks
2024-09-05 20:59:27 +02:00
Kerryn Frampton 6b5458ea7d
Update nova-facade-release.yml (#105)
Change the pool again to see if this one works
2024-09-05 18:58:25 +02:00
Kerryn Frampton bfc13c0139
Update nova-facade-release.yml (#104)
Changing the pipeline pool to latest valid one.
2024-09-05 18:50:10 +02:00
Stanisław 5ed5ddccb9
breaking(nova-react-test-utils): add support for Relay (#103)
* Port Relay decorator from 1js into facade

* Fix @types/react conflict

* Setup relay store

* Temporary solution to Relay module declaration error

* Relay stories working

* Working relay and apollo stories in same package

* Move Feedback.stories.tsx

* Working mutations

* Some cleanup

* Extract decorator types to shared file

* Type-safety with shared decorator

* Apollo fragment-based stories

* almost working tests

* improve command and rename

* fix regex to work on windows

* get tests to run (3 failures remaining)

* apollo decorator working with shared code, time to reimplement MockPayloadGenerator for relay

* correct types and almost working impl

* more fixes, todo: independency of stories, error scenario

* fix mutation failure  story

* fix independency of stories

* fix tsc

* refactor some exports and fix todos

* add todos

* readme

* Add documentation of new properties

* Move sentence

* try to sort out dependencies

* move to folders

* cleanup: renames and exposing same utils

* test utils

* Change files

* working separate entry points

* fix path

* Change files

* use optional peer deps

* remove not needed change

* add missing option to pass generateFunction

* use lib version

* fix inconsistencies between apollo/relay stories

* fix tests

* cleanup

* Update docs and some imports

* Add FAQ for `generateFunction` and remove outdated fragment FAQ

* Add subpath to docs and make sure subpaths are used everywhere

* Fix CI

* update docs

* use stronger typings

---------

Co-authored-by: Jakob Hansen <jakobhansen@microsoft.com>
Co-authored-by: Stanislaw Wilczynski <Stanislaw.Wilczynski@microsoft.com>
2024-09-04 18:33:58 +02:00
Graphitation Service Account fb34192416 applying package updates 2024-08-16 09:50:08 +00:00
DarynaAkhmedova f12fa1131a
Add onCompleted option to useMutation (#102)
* add onCompleted option to useMutation

* Change files
2024-08-16 11:40:00 +02:00
Graphitation Service Account 1010df3695 applying package updates 2024-08-05 00:10:12 +00:00
Stanisław ea871bbe03
feat: bump react to version 18 and run all tests/stories in strict mode (#101)
* bump react

* Change files

* use strict mode in stories and tests

* bump node version

* make strict mode hack a little clearer

---------

Co-authored-by: Stanislaw Wilczynski <Stanislaw.Wilczynski@microsoft.com>
2024-07-26 18:07:45 +02:00
Kerryn Frampton a3380cdb77
Update nova-facade-release.yml to add weekly pipeline check (#99) 2024-05-27 09:58:08 +02:00
Graphitation Service Account 3370b6aadc applying package updates 2024-05-24 22:25:18 +00:00
Antony Njuguna 7bd7084a2f
Fix RefetchOptions onComplete function type (#100)
* Fix RefetchOptions onComplete type

* Change files

* Update change-file email
2024-05-24 15:18:19 -07:00
Graphitation Service Account d8d101babd applying package updates 2024-05-13 20:36:36 +00:00
Stanisław fcac2f11d5
feat: bump storybook to latest 7.x and adjust improts (#98)
* bump storybook

* Change files

* dedupe and skipLibCheck

---------

Co-authored-by: Stanislaw Wilczynski <Stanislaw.Wilczynski@microsoft.com>
2024-05-08 10:21:22 -07:00
Graphitation Service Account 6a593bc67c applying package updates 2024-04-05 04:20:11 +00:00
Iurii Kondratiuk f3910ccefd
Use FetchPolicy in useLazyLoadQuery (#97)
* Use FetchPolicy in useLazyLoadQuery

* Fix

* Change files

* Fix
2024-04-04 21:13:37 -07:00
Graphitation Service Account 8e9ab4b1b3 applying package updates 2024-03-20 16:54:24 +00:00
Mark Polak 78f7c8ca1e
Allow fragment refs to be null or undefined (#94)
* Make fragment ref nullable

* Update test name

* Change files

* Clarify type names

* Fixes from PR comments
2024-03-20 09:46:10 -07:00
Graphitation Service Account b47d7a54f5 applying package updates 2024-03-08 18:03:54 +00:00
Graphitation Service Account 9841ee63ec applying package updates 2024-03-08 17:52:20 +00:00
Stanisław 3e47ea9614
Nova event interceptor (continuation of #93) (#96)
* Add interceptor

* ad tests for nova eventing interceptor

* add README

* Change files

* fix one test

* fix how bubble is called

---------

Co-authored-by: Kerryn Frampton <kerrynb@microsoft.com>
Co-authored-by: Stanislaw Wilczynski <Stanislaw.Wilczynski@microsoft.com>
2024-03-08 09:21:10 -08:00
Stanisław 13ff3c8be5
Bump duct tape version for package deduplication and make compiler test work on windows (#95)
* make test for compiler work on windows

* use newer version of duct tape

* Change files

* deduplicate deps

* fix registry

---------

Co-authored-by: Stanislaw Wilczynski <Stanislaw.Wilczynski@microsoft.com>
2024-03-07 12:43:38 -08:00
Mark Polak 39facf212d
Move compiler to separate package (#91)
* Move nova compiler to separate package

* Add compiler package

* Change files

* Add README.md
2024-02-20 14:07:20 -08:00
Graphitation Service Account d5b1244fb5 applying package updates 2023-12-19 18:33:33 +00:00
Stanisław 5192c332d0
feat(react-test-utils): add possibility to configure cache of mock client (#90)
* add possibility to pass options to mock client

* fix wrong function name in readme

* Change files

---------

Co-authored-by: Stanislaw Wilczynski <Stanislaw.Wilczynski@microsoft.com>
2023-12-19 10:27:42 -08:00
Graphitation Service Account 3943a7f2d1 applying package updates 2023-12-15 22:46:03 +00:00
Mark Polak 653e625fe4
Add support for Relay 13+ generated code by adding $fragmentSpreads support (#88)
* Add  support

* Change files

---------

Co-authored-by: Kerryn Frampton <56459261+kerrynf@users.noreply.github.com>
2023-12-15 14:38:11 -08:00
Graphitation Service Account b5443ad331 applying package updates 2023-12-15 17:59:51 +00:00
Mark Polak d295e57f2a
Allow React 18 to a peerDependency and fix Provider Prop types (#89)
* Fix typings for React 18 and add ^18 to peerDependencies

* Add children to prop types instead of using wrapper type

* Change files
2023-12-15 09:53:46 -08:00
Kenneth Chau 18f9bae4a1
renamed to allow the nova-facade pipelines to be moved to new ADO org (#87) 2023-11-08 15:40:19 -08:00
Graphitation Service Account 9ea38a3109 applying package updates 2023-10-10 17:45:23 +00:00
Drew Atkinson 6f2668efac
Add unmountEventing through the NovaEventingProvider (#85)
* add useNovaUnmountEventing

* Change files

* unit tests

* fix comments

* more comments

* test: add unmount test

* fix: memo context value

---------

Co-authored-by: Drew Atkinson <dratkins@microsoft.com>
2023-10-10 10:39:51 -07:00
Graphitation Service Account 0e3cd792e6 applying package updates 2023-07-19 00:56:30 +00:00
Dragos Homner 560e2cb883
Add useRefetchableFragment and usePaginationFragment hooks (#71)
By bumping apollo-react-relay-duct-tape, now we are able to use useRefetchableFragment and usePaginationFragment hooks, but they weren't exposed by nova-facade. Therefore, the scope of this PR is to add these hooks, following the same signatures as graphitation.

---------

Co-authored-by: EUROPE\dragoshomner <dragoshomner@microsoft.com>
Co-authored-by: Kerryn Frampton <56459261+kerrynf@users.noreply.github.com>
2023-07-18 17:51:13 -07:00
Graphitation Service Account f5e8a931e8 applying package updates 2023-05-18 12:45:50 +00:00
Stanisław 5f93fa7230
fix(nova-react-test-utils): fix decorator overriding original story parameters (#80)
* fix decorator to stop overriding parameters provided by the story

* Change files

* add test for empty parameters

---------

Co-authored-by: Stanislaw Wilczynski <Stanislaw.Wilczynski@microsoft.com>
2023-05-18 14:40:01 +02:00
Graphitation Service Account 619e1c1c10 applying package updates 2023-05-17 12:00:17 +00:00
Stanisław 3d65a5bd22
feat(nova-react-test-utils): add storybook decorator for nova (#72)
* install storybook and bump graphitation

move operation utils

make mock environment a bit more generic

add first version of the decorator

add peer dependency

try bumping graphitation relay complier as well

Change files

initial example

use older version of complier

generate types

add storybook

[DO NOT MERGE] add autogenerated stories

fix lage config

remove stories

align version of test types

use makeDecorator api

add codegen

add initial story

add more loaders

use proper loader

* fix schema loading and decorator

* [almost] working

* add sample tests

* add test using nova test utils directly

* fix mutation

* one step closer

* fix issues with typename

* add error message handling partial

* use latest

* Change files

* fix react version mismatch

* update dependencies

* add working reject story

* add loading state test

* add explanatory comment

* fix storybook warning

* add another explanatory comment

* use satisfies and add comment about storybook change

* update docs

* adjust readme

* update versions

* bump storybook and use id

* remove redundant optional chaining

* Update packages/nova-react-test-utils/README.md

Co-authored-by: Eloy Durán <eloy.de.enige@gmail.com>

* simplify preview

* adjust readme

* fix warning inside test

* update to set environment on parameters

* fix typo

---------

Co-authored-by: Stanislaw Wilczynski <Stanislaw.Wilczynski@microsoft.com>
Co-authored-by: Eloy Durán <eloy.de.enige@gmail.com>
2023-05-17 13:54:26 +02:00
Graphitation Service Account dc359886e3 applying package updates 2023-05-11 15:41:59 +00:00
Ira Kaundal 48ee0c442f
Make context optional in use subscription (#78)
* make context optional in use subscription

* change files
2023-05-11 17:35:37 +02:00
Graphitation Service Account bff4e4d354 applying package updates 2023-04-26 08:47:37 +00:00
Ira Kaundal 671a9acd64
Update nova hooks to support context (#77)
* update nova hooks to support context

* Change files

* update nova hooks to support context
2023-04-26 10:41:45 +02:00
Graphitation Service Account 6391c1bc6a applying package updates 2023-03-30 16:45:13 +00:00
Michael Loughry 500c3d84ca
Update package.json files with exports.types and repository entries (#75)
* Add types to exports

* Add repository information

* Change files
2023-03-30 18:37:45 +02:00
Stanisław 7030761782
deps: bump root dependencies (#74)
* update internal repo deps

* update import

---------

Co-authored-by: Stanislaw Wilczynski <Stanislaw.Wilczynski@microsoft.com>
2023-03-24 19:27:36 +01:00
Graphitation Service Account 37d77fcd46 applying package updates 2023-03-24 16:52:58 +00:00
Stanisław 2774eb5e24
deps(nova-react, nova-react-test-utils): bump React to 17 (#73)
* bump react

* Change files

---------

Co-authored-by: Stanislaw Wilczynski <Stanislaw.Wilczynski@microsoft.com>
2023-03-24 17:44:46 +01:00
Graphitation Service Account 1c907b5e46 applying package updates 2023-03-15 17:49:27 +00:00