Lukasz Ostrowski
1cb6e8b5fc
Manual app permissions setting by the user ( #3829 )
...
* Remove react-markdown, render app about section as string
* Add modal with permissions - WIP
* Extract components
* add permissions diff
* add mutation
* add notification
* fix dialog scrolling
* Extract messages in permissions dialog
* test for useGetAvailableAppPermissions.ts
* add test to state
* fix enums
* add changeset and extract root messages
* Update wicked-berries-watch.md
* fix linter
* fix ts
* cr fixes
2023-07-03 14:50:53 +02:00
Michał Droń
3123f04c69
Upgrade to ESLint 8 ( #3781 )
...
* Upgrade ESLint
* Add eslint-nibble
* Move typescript to dev deps
* Update ESLint config
* Turn off semi, comma-dangle & quotes rules
* Enable simple sort
* Fix errors in ESLint (#3788 )
* Disable rules requiring heavy changes
* Autofix new ESLint rules
* Autofix more-rules
* Fix jsx/generics ambiguity
* Add warnings for broken rules requiring manual fixes
* Remove redundant expected-error
* Add simple-sort
* Add prettier config
* Lint config
* Fix sort plugin
* Fix simple sort plugin
* Fix sort order
* Update src/orders/components/OrderTransaction/components/TransactionEvents/components/PspReferenceLink.tsx
Co-authored-by: Paweł Chyła <chyla1988@gmail.com>
* Remove redundant comment
* Remove chai friendly
* Update package.json
Co-authored-by: Krzysztof Żuraw <9116238+krzysztofzuraw@users.noreply.github.com>
* Remove to-be-checked comment
* Update formatjs plugin
* Lint staged only in src
* Add changeset
* Add tracking issue for new rules
* Resolve auto-fixable warning after merge
* Change sorts to warnings
* Run lint on new files
* Fix errors
---------
Co-authored-by: Paweł Chyła <chyla1988@gmail.com>
Co-authored-by: Krzysztof Żuraw <9116238+krzysztofzuraw@users.noreply.github.com>
2023-06-30 10:07:13 +02:00
Lukasz Ostrowski
a1482cc453
Refactor AppDetailsPage to Macaw Next ( #3818 )
...
* Refactor AppDetailsPage to Macaw Next
* Update locales
* CR fixes
* Add error boundary
2023-06-29 15:50:13 +02:00
Lukasz Ostrowski
6640294078
Update app-sdk and pass saleor versions to handshake event for apps ( #3789 )
...
* Update app-sdk (early build) and pass saleor versions to handshake event for apps
* Add changeset
* Fix sdk version
* Fix broken external app context
* cr fixes
2023-06-28 15:06:08 +02:00
Lukasz Ostrowski
e90f587a5f
Add test-id to installed app row ( #3783 )
2023-06-28 09:44:18 +02:00
Patryk Andrzejewski
3118741db8
Feature flags strategies ( #3800 )
...
* Feature flags
* Feature flags
* Feature flags
* Feature flags
* Feature flags
* Feature flags
* Types
* use @swc/jest
* Avoid calling constructors inside
* Types
* Types
* remove flagsmith
* Change to payload
* Change to payload
* Update tests
* Split resolver
2023-06-27 13:30:20 +02:00
Lukasz Ostrowski
58a3c26f7e
src/apps
refactors batch (#3773 )
...
* Add refactors to apps folder
Remove default exports in apps/views
Rename apps/views components, ensure they have similar convention
Refactor apps indexes files
Rename marketplace mentions to appstore
Rename useMarketplaceApps to useAppstoreApps
Rename some marketplace mentions to appstore
fix test
* Add changeset
2023-06-27 09:29:40 +02:00
Patryk Andrzejewski
1d2eeb7592
Strict mode plugin ( #3778 )
...
* Stric mode plugin
* Update command
2023-06-21 11:28:00 +02:00
Lukasz Ostrowski
d98aa2ac8a
Fix breaking Manage App screen when app is disabled ( #3777 )
2023-06-20 16:03:42 +02:00
Lukasz Ostrowski
8ba29059a2
Display custom Apps' logos ( #3749 )
...
* wip
* implement logo in all contexts
* fix types
* Improve icons rendering
* Reuse App Header in Manage App page
* Remove loading fallback icon for official Saleor apps. It will be fetched with manifest now
* Imprve app fallback icon
* wip fix tests
* Remove useless test
* Add sizes for logos queries
* Fix thumbnail size
2023-06-15 16:06:08 +02:00
Lukasz Ostrowski
df6cb4979e
Enable disabled app row to be clicked and nav to details ( #3720 )
2023-06-01 20:07:11 +02:00
Paweł Chyła
adf3342d5c
Replace ConfirmButton from old macaw ( #3647 )
...
* New ConfirmButton component
* Update macaw ui
* Remove old confim button
* New confirm button
* Replace all place with new confirm button
* Remove ConfirmButtonTransitionState use from mcaw
* Does not change button width when showing loader and success state
* Test ConfirmButton
* Remove story, update tests
* WIP change pull_request to push for chromatic
* Revert "WIP change pull_request to push for chromatic"
This reverts commit 8f0909bf54f185898a7f1d236f072d6544fd5d86.
* Add comments
* Remove css prop from DialogTable
* Make confirm button larger in order send refund
2023-05-30 09:42:22 +02:00
Krzysztof Żuraw
67b55edca7
Migrate from legacy to new MacawUI spacing ( #3697 )
2023-05-30 08:47:21 +02:00
Lukasz Ostrowski
a86e0e6b13
Add hook that sends updated app token to the App ( #3683 )
...
* Add hook that sends updated app token to the App
* Install latest app-sdk@0.39.1
2023-05-25 15:35:17 +02:00
Krzysztof Żuraw
76cde7c7b1
Migrate MacawUI to new spacing scale ( #3674 )
2023-05-24 12:12:07 +02:00
Krzysztof Żuraw
2f4b822acb
Adjust storybook to prevent false positivies ( #3679 )
2023-05-22 11:09:36 +02:00
Lukasz Ostrowski
8f58efcd50
Rebuild App Settings to be nested inside app screen ( #3676 )
...
* Rebuild App Settings to be nested inside app screen
* Remove memoization
* Update src/apps/components/AppPage/AppPageNav.tsx
Co-authored-by: Michał Droń <droniu@droniu.dev>
---------
Co-authored-by: Michał Droń <droniu@droniu.dev>
2023-05-22 08:35:35 +02:00
Patryk Andrzejewski
3d2559ca0c
Set test id for apps iframe ( #3640 )
2023-05-16 10:02:54 +02:00
Krzysztof Żuraw
50c8e93534
Setup chromatic and cleanup storybook ( #3588 )
2023-05-12 13:06:27 +02:00
Krzysztof Żuraw
fc8f4be4e9
Add author field to app details page ( #3455 )
2023-04-20 09:39:54 +02:00
Jonatan Witoszek
593867f0c5
Fix iframe reloaded on each theme change ( #3491 )
...
* Fix iframe reloaded on each theme change
* CR
2023-04-13 14:18:14 +02:00
Paweł Chyła
5da48b07af
Replace all old tooltips with new one from macaw ( #3485 )
2023-04-12 15:55:42 +02:00
Krzysztof Żuraw
97c7a32455
Revert author field on app details page ( #3453 )
2023-04-04 10:55:12 +02:00
Krzysztof Żuraw
9690313d16
Add author field to app details page ( #3379 )
2023-03-22 13:17:48 +01:00
Michał Droń
51326e52c4
Refactor apps UI ( #3363 )
...
* Bump macaw-ui
* Add grouping util
* Refactor App cards UI using CSS Grid
* Rename AppListCard to AppListRow
* Fix unit tests
* Bump macaw-ui
* Remove inline styling
* Fix app installtion for second pair
* Add keys to grid rows
* Change grid template rows to repeat(4, auto)
* Replace groupIntoPairs with chunk method from lodash
* Fix borders on safari
* Add paddings to section names
2023-03-17 10:38:51 +01:00
Krzysztof Żuraw
4eebf16b55
Fix Gift Cards ( #3352 )
2023-03-17 08:41:44 +01:00
Lukasz Ostrowski
4ad8ad4a66
Introduce "debug" package and replace console.debug with it ( #3358 )
2023-03-15 10:44:02 +01:00
Michał Droń
228fe4d802
Fix overflowing integrations in app view ( #3313 )
...
* Bump lockfile
* Add flex-wrap to integrations
* Add flex-wrap to links
* Move integrations sections to upper card block
2023-03-10 09:08:08 +01:00
Lukasz Ostrowski
75a6edd864
Hide AppFrame loader when app handshaked ( #3303 )
2023-03-07 16:23:51 +01:00
Dawid
d79e21349a
Migrate new-apps to apps ( #3253 )
2023-03-06 10:57:25 +01:00
Dawid
ffa44f8b85
Remove app list view from old apps dir ( #3241 )
2023-03-02 10:22:01 +01:00
Dawid
a7d37ecd46
Migrate app install view to new-apps ( #3240 )
2023-03-02 09:33:40 +01:00
Dawid
dfb5f167d4
Migrate app details view (settings view) to new-apps ( #3167 )
...
* Migrate app details view to new-apps
* Fix data privacy card
2023-03-01 15:04:53 +01:00
Dawid
9803202e75
Migrate app view to new-apps ( #3161 )
2023-02-28 14:20:17 +01:00
Krzysztof Żuraw
9c88e17f34
Add new Layout structure ( #3213 )
2023-02-28 10:33:16 +01:00
Lukasz Ostrowski
b9acfe6214
Improve AppPage ( #3216 )
...
* WIP - reduce rerenders and change how dashboard sends events to app
* Cleanup
* Refactor
* Add loader behind the iframe
* Fix linter
2023-02-27 16:35:35 +01:00
Krzysztof Żuraw
9f54a7840c
Add padding to install page ( #3210 )
2023-02-22 16:31:22 +01:00
Patryk Andrzejewski
3789f5bb52
New macaw ui ( #3069 )
...
Co-authored-by: Krzysztof Żuraw <9116238+krzysztofzuraw@users.noreply.github.com>
Co-authored-by: Michał Droń <dron.official@yahoo.com>
Co-authored-by: Paweł Chyła <chyla1988@gmail.com>
2023-02-20 16:21:28 +01:00
Lukasz Ostrowski
7321ca959f
Encode appID when updateRouting action handled ( #3064 )
2023-01-30 17:12:21 +01:00
Lukasz Ostrowski
4ae2748e8e
Refactor app actions handling ( #3042 )
...
* Update app-sdk
* extract useHandleNotificationAction
* Extract useUpdateRoutingAction hook
* extract redirect action
* Extract isAppDeepUrlChange to AppUrls
* Rewrite redirection logic
* Remove useCallback
* add tests
* finish tests
* refactor trycatch
* Fix actions respond calls
* Fix how route is resolved for updateRouting
2023-01-27 16:21:19 +01:00
Lukasz Ostrowski
f1d13dd264
Provide active theme to app in iframe URL ( #3028 )
2023-01-26 11:09:39 +01:00
poulch
d5ed6fb202
Feature flags ( #2961 )
...
* [Feature Flags] Abstraction over flags provider (#2928 )
* Remove useFlag hook
* [Feature Flags] GraphQL build multiple schemas (#2937 )
* Build script
* Refactor build types script
* Remove old codegen.yml
* Clean feature flags in script
* Refactor schema path
* Restore useAuthProvider
* Update configuration file
* encapsulate details for feature flags provider
* Add proper env to flagsmith provider
* Remove flagsmith mocks
* Vite config define global variables
* Render flagmisth provider only when is used
* Keep name service agnostic
* Test with mocked flagsmith
* Use global FLAGS varaible for env flags
* Fix type issue with FLAGS
* Fix build issue
* Remove duplicate translations
* Fix typo
* Prepare for QA tests
* Remove test feature flag
2023-01-16 14:55:38 +01:00
Patryk Andrzejewski
7a43421af5
Use mount uri in redirect ( #2979 )
...
* Reflect mount uri in the app redirect
* use URL constructor
2023-01-16 11:09:24 +01:00
Krzysztof Żuraw
04247d3f95
Migrate from @saleor alias to @dashboard ( #2981 )
2023-01-16 10:45:12 +01:00
Dawid
eb01b84412
Improve apps contextual actions ( #2943 )
2023-01-12 09:19:13 +01:00
Dawid
5bc8e39eb7
Hide toolbar in app page ( #2938 )
...
* Hide toolbar in app page
* Remove back button from app frame page
2023-01-10 15:24:24 +01:00
Krzysztof Żuraw
fe709db82b
Clean up storybook ( #2941 )
2023-01-05 13:34:34 +01:00
poulch
bf2a2035d3
Fix strict null check in Apps ( #2911 )
...
* Fix apps strict null checks
* Set strictNullChecks to false
* Improve strict null checks
* Replace typ to Extension
2022-12-29 13:51:54 +01:00
Dawid
bba95a8fb4
Extract "webhooks & events" to separate page ( #2818 )
...
* Extract "webhooks & events" to separate page
* Create separate /custom-app/ path for custom apps with webhooks
* Change all /webhooks/ paths to /custom-apps/
* Update messages
* Update generated graphql types
* Create findById util
* Refactor consts and resolvers for custom app urls
* Fix app graphql fragment
* Update Miscellaneous icon for Webhooks and Events
* Add tests for custom apps utils
* Fix dark-mode Miscellaneous icon for Webhooks and Events
* adjustments for autotests
Co-authored-by: karolm-saleor <karol.macheta@saleor.io>
2022-12-15 14:51:05 +01:00
Patryk Andrzejewski
81615ab6a6
Fix broken HRM on the apps page ( #2794 )
...
* Split context to the separate file
* Split context to the separate file
2022-12-07 13:10:51 +01:00