Commit Graph

3822 Commits

Author SHA1 Message Date
Shahed Nasser
f07dc0384f docs,api-ref: added search filters (#4830)
* initial implementation of search modal

* added hit and search suggestions

* added support for multiple indices

* updated sample env

* added close when click outside dropdown

* test for mobile

* added mobile design

* added shortcut

* dark mode fixes

* added search to docs

* added plugins filter

* added React import

* moved filters to configurations

* handled error on page load

* change suggestion text

* removed hits limit

* handle select all

* open link in current tab

* change highlight colors

* added support for shortcuts + auto focus

* change header and footer

* redesigned search ui
2023-08-24 18:36:06 +03:00
Rares Stefan
f4bf9ee169 fix(admin-ui): Fix variant creation when no stock locations provided (#4843)
* Update check on variant creation, whether to create stock locations

* Create spicy-shoes-type.md
2023-08-24 08:51:12 +02:00
Rares Stefan
57e199ef52 fix(admin-ui): Fix sign out in admin panel not redirecting correctly (#4837) 2023-08-23 21:54:45 +02:00
Frane Polić
8b860416d2 feat(medusa): PriceListImportStrategy descriptive errors (#4842) 2023-08-23 21:39:34 +02:00
Shahed Nasser
c58588904c fix(medusa-telemetry): added missing babel dependencies (#4817) 2023-08-23 14:26:06 +02:00
Frane Polić
d8a6e3e0d8 feat(medusa-file-local): implement missing streaming methods (#4788) 2023-08-23 13:05:04 +02:00
github-actions[bot]
4843cc6301 chore(docs): Removed Docs Announcement Bar (automated) (#4836)
Co-authored-by: shahednasser <shahednasser@users.noreply.github.com>
2023-08-23 10:01:16 +03:00
olivermrbl
8a43a6bc1d chore: Bump @medusajs/utils + @medusajs/product 2023-08-22 15:46:59 +02:00
olivermrbl
e9d76fa3d7 chore(changesets): Change minor to patch 2023-08-22 15:36:10 +02:00
Carlos R. L. Rodrigues
c53fa6cd3b fix(utils,product): mikro orm connection loader (#4825)
Fix shared connection property check
2023-08-22 12:35:52 +00:00
Frane Polić
edf9ed4e59 fix(medusa-interfaces, medusa-file-*): flag for streaming to a private bucket (#4771)
* wip: unify file service api

* fix: flag type

* fix: update Spaces service

* fix: S3/Spaces - default to private

* fix: MinIO `isPrivate` for `getPresignedDownloadUrl`, add `isPrivate` to `GetUploadedFileType`

* chore: changeset
2023-08-22 13:05:30 +02:00
Shahed Nasser
80d603a63d docs: improved glossary definitions (#4820)
* docs: improved glossary definitions

* Update glossary.ts
2023-08-21 13:09:59 +03:00
Shahed Nasser
740a3c6e18 docs: improved glossary feature (#4819) 2023-08-21 12:31:16 +03:00
Shahed Nasser
f11375a686 docs: remove yarn create-medusa-app until a fix is out (#4818) 2023-08-21 11:49:18 +03:00
Shahed Nasser
f5d8696123 docs: added glossary functionality (#4805) 2023-08-18 17:07:00 +03:00
Shahed Nasser
ac25c422a3 docs: added general deployment guide for backend (#4802)
* docs: added general deployment guide for backend

* deleted qovery

* added a note to microtica

* fix icon name
2023-08-18 13:29:17 +03:00
Shahed Nasser
fd2dcdf98c docs: improve create-medusa-app guide structure (#4801)
* docs: improved create-medusa-app structure

* change hash link
2023-08-18 11:19:36 +03:00
Shahed Nasser
57bb391146 docs: added new recipes (#4793)
* added new recipes

* added more recipes
2023-08-17 20:37:40 +03:00
Shahed Nasser
3b5590ccec docs: added new database options for create-medusa-app (#4777)
* docs: added new database options for create-medusa-app

* update note

* removed stable option

* add example to connect to Vercel or Supabase database

* added a note about --db-url option

* added a note about --no-migrations

* added troubleshooting guide for invalid token error with no-browser

* fix link
2023-08-17 20:21:32 +03:00
Shahed Nasser
80b1bff8cb docs: update admin extension docs (#4778)
* docs: update admin extension docs

* eslint fixes

* fix broken links

* fix broken link

* added admin upgrade guide

* fix lint errors
2023-08-17 20:04:13 +03:00
Shahed Nasser
75881a2cfe docs: added UI link to navigation bar (#4796) 2023-08-17 19:50:10 +03:00
Kasper Fabricius Kristensen
3ad2136888 feat(api-reference): Add rewrite to UI docs (#4791)
* add rewrite to UI docs

* add base rewrite

---------

Co-authored-by: Shahed Nasser <shahednasser@gmail.com>
2023-08-17 19:31:22 +03:00
github-actions[bot]
5c2f15cfc4 chore(docs): Generated Docs Announcement Bar (automated) (#4797)
Co-authored-by: olivermrbl <olivermrbl@users.noreply.github.com>
2023-08-17 17:29:51 +02:00
olivermrbl
ecb4910312 chore: Release 2023-08-17 17:19:27 +02:00
github-actions[bot]
db36258885 chore: Version Packages (#4711)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-08-17 17:17:41 +02:00
Kasper Fabricius Kristensen
1e8d044b16 add versions (#4795) 2023-08-17 17:10:40 +02:00
Shahed Nasser
c684d16ec0 feat(create-medusa-app): remove --stable option and change to clone default branch (#4794) 2023-08-17 14:34:36 +00:00
olivermrbl
5cf59a5b9c chore(changesets): Add minor bump of @medusajs/medusa 2023-08-17 14:28:04 +02:00
Kasper Fabricius Kristensen
f1a05f4725 feat(admin, admin-ui, medusa-js, medusa-react, medusa): Support Admin Extensions (#4761)
Co-authored-by: Rares Stefan <948623+StephixOne@users.noreply.github.com>
Co-authored-by: Oli Juhl <59018053+olivermrbl@users.noreply.github.com>
2023-08-17 12:14:45 +00:00
Shahed Nasser
26c78bbc03 docs: update stale information (#4790) 2023-08-17 14:19:51 +03:00
Shahed Nasser
b08337deb7 api-ref: added syncing between code tabs (#4786)
* api-ref: added syncing between code tabs

* updated comment

* resolve metadata warning

* fix colors
2023-08-17 10:41:53 +03:00
Shahed Nasser
3140b9f140 docs: changed Next.js Image (#4784) 2023-08-16 18:17:29 +03:00
Shahed Nasser
8336e2002a docs: modified README files (#4782) 2023-08-16 17:12:42 +03:00
github-actions[bot]
9165f3214b chore(docs): Generated API Reference (#4783)
Co-authored-by: shahednasser <shahednasser@users.noreply.github.com>
2023-08-16 16:59:45 +03:00
Shahed Nasser
320fab8aed chore(oas): add missing variant_id to AdminPostInventoryItemsReq schema (#4780)
* chore(oas): add missing variant_id to AdminPostInventoryItemsReq schema

* ran build
2023-08-16 16:42:34 +03:00
Shahed Nasser
9cc0bc6c9d docs,api-ref: design + algolia fixes (#4775)
* fix algolia results on same page

* fix navigation bar for mobile

* fix eslint configurations

* fix github action

* fix search icon on mobile

* fix code block dark mode
2023-08-16 11:38:50 +03:00
Shahed Nasser
914d773d3a api-ref: custom API reference (#4770)
* initialized next.js project

* finished markdown sections

* added operation schema component

* change page metadata

* eslint fixes

* fixes related to deployment

* added response schema

* resolve max stack issue

* support for different property types

* added support for property types

* added loading for components

* added more loading

* type fixes

* added oneOf type

* removed console

* fix replace with push

* refactored everything

* use static content for description

* fixes and improvements

* added code examples section

* fix path name

* optimizations

* fixed tag navigation

* add support for admin and store references

* general enhancements

* optimizations and fixes

* fixes and enhancements

* added search bar

* loading enhancements

* added loading

* added code blocks

* added margin top

* add empty response text

* fixed oneOf parameters

* added path and query parameters

* general fixes

* added base path env variable

* small fix for arrays

* enhancements

* design enhancements

* general enhancements

* fix isRequired

* added enum values

* enhancements

* general fixes

* general fixes

* changed oas generation script

* additions to the introduction section

* added copy button for code + other enhancements

* fix response code block

* fix metadata

* formatted store introduction

* move sidebar logic to Tags component

* added test env variables

* fix code block bug

* added loading animation

* added expand param + loading

* enhance operation loading

* made responsive + improvements

* added loading provider

* fixed loading

* adjustments for small devices

* added sidebar label for endpoints

* added feedback component

* fixed analytics

* general fixes

* listen to scroll for other headings

* added sample env file

* update api ref files + support new fields

* fix for external docs link

* added new sections

* fix last item in sidebar not showing

* move docs content to www/docs

* change redirect url

* revert change

* resolve build errors

* configure rewrites

* changed to environment variable url

* revert changing environment variable name

* add environment variable for API path

* fix links

* fix tailwind settings

* remove vercel file

* reconfigured api route

* move api page under api

* fix page metadata

* fix external link in navigation bar

* update api spec

* updated api specs

* fixed google lint error

* add max-height on request samples

* add padding before loading

* fix for one of name

* fix undefined types

* general fixes

* remove response schema example

* redesigned navigation bar

* redesigned sidebar

* fixed up paddings

* added feedback component + report issue

* fixed up typography, padding, and general styling

* redesigned code blocks

* optimization

* added error timeout

* fixes

* added indexing with algolia + fixes

* fix errors with algolia script

* redesign operation sections

* fix heading scroll

* design fixes

* fix padding

* fix padding + scroll issues

* fix scroll issues

* improve scroll performance

* fixes for safari

* optimization and fixes

* fixes to docs + details animation

* padding fixes for code block

* added tab animation

* fixed incorrect link

* added selection styling

* fix lint errors

* redesigned details component

* added detailed feedback form

* api reference fixes

* fix tabs

* upgrade + fixes

* updated documentation links

* optimizations to sidebar items

* fix spacing in sidebar item

* optimizations and fixes

* fix endpoint path styling

* remove margin

* final fixes

* change margin on small devices

* generated OAS

* fixes for mobile

* added feedback modal

* optimize dark mode button

* fixed color mode useeffect

* minimize dom size

* use new style system

* radius and spacing design system

* design fixes

* fix eslint errors

* added meta files

* change cron schedule

* fix docusaurus configurations

* added operating system to feedback data

* change content directory name

* fixes to contribution guidelines

* revert renaming content

* added api-reference to documentation workflow

* fixes for search

* added dark mode + fixes

* oas fixes

* handle bugs

* added code examples for clients

* changed tooltip text

* change authentication to card

* change page title based on selected section

* redesigned mobile navbar

* fix icon colors

* fix key colors

* fix medusa-js installation command

* change external regex in algolia

* change changeset

* fix padding on mobile

* fix hydration error

* update depedencies
2023-08-15 18:07:54 +03:00
Oli Juhl
16249ec280 fix(actions): Disable OAS unit tests + add flags to test commands (#4767)
* wip

* skip models test

* ignore plugins loader test
2023-08-15 14:32:58 +02:00
Shahed Nasser
30ce35b163 feat(create-medusa-app): add database options (#4733)
## What

Adds new options for easier usage of the `create-medusa-app` command for regular medusa users.

The following options are added:

- `--skip-db`: Skips creating the database, running migrations, and seeding, and subsequently skips opening the browser. Useful if the developer wants to set the database URL at a later point in the configurations.
- `--db-url <url>`:  Skips database creation and sets the database URL to the provided URL. Throws an error if can't connect to the database. Will still run migrations and open the admin after project creation. Useful if the developer already has database created, locally or remotely.
- `--no-migrations`: Skips running migrations, creating admin user, and seeding. If used, it's expected that you pass the `--db-url` option with a url of a database that has all necessary migrations. Otherwise, unexpected errors will occur. Helpful only if combined with `--db-url`
- `--no-browser`: Disables opening the browser at the end of the project creation and only shows success message.
- `--directory-path <path>`: Allows specifying the directory path to install the project in. Useful for testing.
2023-08-15 08:08:54 +00:00
Frane Polić
4a448b68fd feat(admin-ui): bulk advanced selections + copy/paste (#4568)
* wip: bulk editor copy/paste

* feat: exit edit mode with "enter" press

* wip: arrow navigation + onEnter

* wip: 2D select + arrow navigation

* feat: arrow navigation and multiselect, tabs navigation and multiselect

* fix: region cols offset

* feat: 2d copy

* feat: 2d paste

* fix: trailing tab

* fix: borders

* feat: ensure consistent copy order

* fix: off by one col, pass `cmd` keypress

* feat: `cmd` select

* refactor: cleanup 1

* refactor: cleanup 2, utils

* fix: copy paste

* fix: copy paste indicator

* fix: reduce dashed border size

* fix: issue with leading empty cell

* feat: cp support 2 formats of content, notification on copy, remove dashed box

* fix: last empty cell case

* feat: buffer content edge cases

* refactor: remove log

* feat: past fill selected area

* feat: simplify copy-paste

* fix: throw error if textual cell is in the buffer

* Create eighty-zebras-grow.md

---------

Co-authored-by: Oli Juhl <59018053+olivermrbl@users.noreply.github.com>
2023-08-14 21:37:12 +02:00
github-actions[bot]
0887e5007f chore(docs): Removed Docs Announcement Bar (automated) (#4752)
Automated changes by [create-pull-request](https://github.com/peter-evans/create-pull-request) GitHub action

Co-authored-by: Shahed Nasser <27354907+shahednasser@users.noreply.github.com>
2023-08-13 07:39:59 +00:00
Sebastian Rindom
9d8f87b03b fix(medusa): ignore region_id update w/o value change (#4751) 2023-08-13 09:26:32 +02:00
Josip Matić
803aca0689 feat(medusa-plugin-restock-notifications): Multi-warehouse support (#4718)
Co-authored-by: Oli Juhl <59018053+olivermrbl@users.noreply.github.com>
2023-08-12 12:02:39 +00:00
Simons
d8a908bd8e fix(medusa): removal of shipping methods on addOrUpdateLineItems (#4725)
* added removal of shipping methods on addOrUpdateLineItems

* Create lovely-beds-design.md

---------

Co-authored-by: Thijs Simons <thijs@careeraim.nl>
Co-authored-by: Oli Juhl <59018053+olivermrbl@users.noreply.github.com>
2023-08-12 12:44:35 +02:00
Pedro Tigre
6dd3056776 fix: Update algolia.md (#4734)
## Fix bug where products are not added to Algolia index

Previously, the id property was used as the unique identifier for products in the Algolia index. However, Algolia requires the use of the objectID property as the unique identifier. 

This commit updates the transformer function for the products index to use the objectID property instead of the id property, ensuring that products are properly added to the Algolia index.
2023-08-11 21:45:19 +00:00
Oli Juhl
1d2637572b chore: Remove rimraf from prepare (#4741) 2023-08-11 22:55:59 +02:00
Oli Juhl
9469063f64 fix(medusa-js): return type of collection hook + export (#4747) 2023-08-11 13:37:54 +02:00
Sebabrata Kundu
410ac86ae1 fix: Spelling medusa in desc of package.json of Stripe and PayPal package (#2454)
Fix the incorrect spelling of medusa in package.json file of paypal and stripe packages.

Closes #2453
2023-08-11 08:47:16 +00:00
Shahed Nasser
324c9d62ef docs: fix method names in complete checkout code block (#4746)
Closes #4744
2023-08-11 09:47:24 +03:00
Adrien de Peretti
a268d2cb0b feat(workflows): Data aggregation (#4732)
* apply the aggregator automatically

* add comment

* apply aggregate

* improve pipe aggregation

* improve test cases

* improvements

* clean tests

* renameing to merge

* fix merge apply

* move merge apply

* cleanup cart workflow and end point

* fixes and naming
2023-08-10 14:01:56 +02:00