1
0
Fork 0
Commit graph

113205 commits

Author SHA1 Message Date
Benjamin Fan
e7c3447322 fix(dev): Add pluginPathUtils to <Example> component 2025-05-24 08:44:46 +02:00
Jonathan Haas
9469a9493c fix(react): Ignore pointer events on tooltip text of Xray point component 2025-05-24 08:43:52 +02:00
Benjamin Fan
96dd83fc10 fix(react): Fix Collection background image URL 2025-05-24 08:42:10 +02:00
joostdecock
fa5dc0b7b1 [dev] fix: Remove prebuild scripts. See #378 2025-05-24 08:35:30 +02:00
Joost De Cock
39bb3eb6d4 Merge pull request 'fix(dev:docs): Improve Point.flipY() example code' (#377) from BenJamesBen/freesewing:improve-example-code into develop
Reviewed-on: https://codeberg.org/freesewing/freesewing/pulls/377
Reviewed-by: Joost De Cock <joostdecock@noreply.codeberg.org>
2025-05-24 08:25:24 +02:00
Joost De Cock
eb20f7917d Merge pull request 'fix(dev:docs): Dimension macro, boundary box, and typo fixes' (#375) from BenJamesBen/freesewing:additional-docs-reverts into develop
Reviewed-on: https://codeberg.org/freesewing/freesewing/pulls/375
Reviewed-by: Joost De Cock <joostdecock@noreply.codeberg.org>
2025-05-24 08:24:29 +02:00
Joost De Cock
503d0d731c Merge pull request 'fix(dev:docs): Improve SVG signatures' (#376) from BenJamesBen/freesewing:svg-docs-improvements into develop
Reviewed-on: https://codeberg.org/freesewing/freesewing/pulls/376
Reviewed-by: Joost De Cock <joostdecock@noreply.codeberg.org>
2025-05-24 08:24:22 +02:00
Benjamin Fan
e365939432 fix(dev:docs): Improve Point.flipY() example code 2025-05-19 17:26:32 -07:00
Benjamin Fan
630fa96417 fix(dev:docs): Improve SVG signatures 2025-05-19 17:25:17 -07:00
Benjamin Fan
51213b3366 fix(dev:docs): Dimension macro, boundary box, and typo fixes 2025-05-19 17:20:45 -07:00
Andrew James
cb100346d8 remove duplicated css classes 2025-05-19 12:56:56 +00:00
Benjamin Fan
af0dcc9784 fix(tutorials): Revert incorrect example code formatting (#363)
This PR essentially reverts the incorrect `lint`/`prettier` changes applied to `<Example>` code in the Pattern Design tutorial by the husky pre-commit hook, the problem mentioned in Issue #333.

This is not a full fix. Changes are also needed in the Reference Core API docs. However, I'd like to file these as separate PRs to avoid confusion since there are a lot of files.

Co-authored-by: Benjamin Fan <ben-git@swinglonga.com>
Reviewed-on: https://codeberg.org/freesewing/freesewing/pulls/363
Reviewed-by: Joost De Cock <joostdecock@noreply.codeberg.org>
Co-authored-by: Benjamin Fan <benjamesben@noreply.codeberg.org>
Co-committed-by: Benjamin Fan <benjamesben@noreply.codeberg.org>
2025-05-19 08:05:49 +02:00
Benjamin Fan
db8189a55a fix(react): Allow imperial formatted values to be displayed (#371)
![Screenshot 2025-05-17 at 3.58.26 PM.png](/attachments/6c83d019-9ec9-4081-8e3c-88ec1ac9c36d) ![Screenshot 2025-05-17 at 3.50.22 PM.png](/attachments/eb5293ac-1cd4-4583-b68f-2314899e3346)

Co-authored-by: Benjamin Fan <ben-git@swinglonga.com>
Reviewed-on: https://codeberg.org/freesewing/freesewing/pulls/371
Reviewed-by: Joost De Cock <joostdecock@noreply.codeberg.org>
Co-authored-by: Benjamin Fan <benjamesben@noreply.codeberg.org>
Co-committed-by: Benjamin Fan <benjamesben@noreply.codeberg.org>
2025-05-19 08:05:23 +02:00
Benjamin Fan
d6a1ea81db fix(reference:macros): Fix typo in Examples (#368)
(A few similar typo fixes to Core API docs were made in #367.)

Co-authored-by: Benjamin Fan <ben-git@swinglonga.com>
Reviewed-on: https://codeberg.org/freesewing/freesewing/pulls/368
Reviewed-by: Joost De Cock <joostdecock@noreply.codeberg.org>
Co-authored-by: Benjamin Fan <benjamesben@noreply.codeberg.org>
Co-committed-by: Benjamin Fan <benjamesben@noreply.codeberg.org>
2025-05-19 08:04:38 +02:00
Benjamin Fan
ed8a166ea9 fix(reference:api): Revert incorrect Example formatting (#367)
This PR reverts the incorrect lint/prettier changes applied to <Example> code in the reference Core API docs l by the husky pre-commit hook, the problem mentioned in Issue #333.

(These are just the changes for the Core API docs. Additional PRs will be filed for changes in the other reference, howtos, and guides documentation.)

Co-authored-by: Benjamin Fan <ben-git@swinglonga.com>
Reviewed-on: https://codeberg.org/freesewing/freesewing/pulls/367
Reviewed-by: Joost De Cock <joostdecock@noreply.codeberg.org>
Co-authored-by: Benjamin Fan <benjamesben@noreply.codeberg.org>
Co-committed-by: Benjamin Fan <benjamesben@noreply.codeberg.org>
2025-05-19 08:04:05 +02:00
Benjamin Fan
a7eb3e0072 fix(react): Allow bookmark title to be edited (#366)
Currently it isn't possible to edit the title of a bookmark (for example, when bookmarking a Measurements Set) for 2 reasons:
1. The modal closes as soon as you click in the title text edit box.
2. The created bookmark uses the original title, ignoring edits made to it.

This PR fixes both issues.

Co-authored-by: Benjamin Fan <ben-git@swinglonga.com>
Reviewed-on: https://codeberg.org/freesewing/freesewing/pulls/366
Reviewed-by: Joost De Cock <joostdecock@noreply.codeberg.org>
Co-authored-by: Benjamin Fan <benjamesben@noreply.codeberg.org>
Co-committed-by: Benjamin Fan <benjamesben@noreply.codeberg.org>
2025-05-19 08:02:56 +02:00
Benjamin Fan
b864574e87 fix(wahid): Add interfacing to front cutlist (#362)
Wahid's cutting instructions and sewing instructions mention 2 front interfacing parts. So, it is a bug that the pattern is missing the “cut 2 from interfacing”.

This issue was brought up on the Forum:
https://forum.freesewing.eu/t/hello-thank-you-and-a-couple-of-suggestions-for-wahid/208

Co-authored-by: Benjamin Fan <ben-git@swinglonga.com>
Reviewed-on: https://codeberg.org/freesewing/freesewing/pulls/362
Reviewed-by: Joost De Cock <joostdecock@noreply.codeberg.org>
Co-authored-by: Benjamin Fan <benjamesben@noreply.codeberg.org>
Co-committed-by: Benjamin Fan <benjamesben@noreply.codeberg.org>
2025-05-18 13:34:06 +00:00
Benjamin Fan
3799e039ae fix(react): PDF cover page improvements (#360)
Exported PDF cover page improvements:
1. Translates flags, instead of just printing the bare keys
2. Omit layout info, when the parts are moved around in pattern layout

Fixes #274
Fixes #350

Co-authored-by: Benjamin Fan <ben-git@swinglonga.com>
Reviewed-on: https://codeberg.org/freesewing/freesewing/pulls/360
Reviewed-by: Joost De Cock <joostdecock@noreply.codeberg.org>
Co-authored-by: Benjamin Fan <benjamesben@noreply.codeberg.org>
Co-committed-by: Benjamin Fan <benjamesben@noreply.codeberg.org>
2025-05-18 13:33:30 +00:00
Benjamin Fan
a3fe0cd477 fix(react): Add link to design docs to Pattern Editor's Documentation view (#359)
This PR adds a link to the design documentation to the Pattern Editor's Documentation View. It also fixes a few typos and changes a URL from freesewing.org to freesewing.eu.

Fixes #267

Co-authored-by: Benjamin Fan <ben-git@swinglonga.com>
Reviewed-on: https://codeberg.org/freesewing/freesewing/pulls/359
Reviewed-by: Joost De Cock <joostdecock@noreply.codeberg.org>
Co-authored-by: Benjamin Fan <benjamesben@noreply.codeberg.org>
Co-committed-by: Benjamin Fan <benjamesben@noreply.codeberg.org>
2025-05-18 13:31:02 +00:00
Benjamin Fan
5dc1cd98fb fix(react): Display doNotTranslate list option values (#358)
When testing with the repository studio, it fixes the issue with Breanna (the only design that uses `doNotTranslate` list options), and I didn't see any regressions with other designs like Hi.

Fixes #347

Co-authored-by: Benjamin Fan <ben-git@swinglonga.com>
Reviewed-on: https://codeberg.org/freesewing/freesewing/pulls/358
Reviewed-by: Joost De Cock <joostdecock@noreply.codeberg.org>
Co-authored-by: Benjamin Fan <benjamesben@noreply.codeberg.org>
Co-committed-by: Benjamin Fan <benjamesben@noreply.codeberg.org>
2025-05-18 10:58:16 +00:00
Benjamin Fan
bdf8a40792 fix(react): Units icon uses default style if no settings (#356)
Fixes a side effect of the "there are no longer default settings" change.

Fixes #344

Co-authored-by: Benjamin Fan <ben-git@swinglonga.com>
Reviewed-on: https://codeberg.org/freesewing/freesewing/pulls/356
Reviewed-by: Joost De Cock <joostdecock@noreply.codeberg.org>
Co-authored-by: Benjamin Fan <benjamesben@noreply.codeberg.org>
Co-committed-by: Benjamin Fan <benjamesben@noreply.codeberg.org>
2025-05-18 10:26:03 +00:00
Benjamin Fan
7c796a689e fix(studio): Remove submenus from account measurements sets and patterns. (#355)
Reviewed-on: https://codeberg.org/freesewing/freesewing/pulls/355
Reviewed-by: Joost De Cock <joostdecock@noreply.codeberg.org>
Co-authored-by: Benjamin Fan <benjamesben@noreply.codeberg.org>
Co-committed-by: Benjamin Fan <benjamesben@noreply.codeberg.org>
2025-05-18 10:04:20 +00:00
Benjamin Fan
094863c993 fix(studio,eu): Remove submenus from account measurements sets and patterns. (#354)
Fixes #311 in both the repository studio and in the freesewing.eu site.

(Because I am not able to test the stand-alone studio, I'll submit a separate PR to add the fix there.)

Co-authored-by: Benjamin Fan <ben-git@swinglonga.com>
Reviewed-on: https://codeberg.org/freesewing/freesewing/pulls/354
Reviewed-by: Joost De Cock <joostdecock@noreply.codeberg.org>
Co-authored-by: Benjamin Fan <benjamesben@noreply.codeberg.org>
Co-committed-by: Benjamin Fan <benjamesben@noreply.codeberg.org>
2025-05-18 10:02:47 +00:00
Benjamin Fan
64223a141a fix(react): Pattern clone fix and improvment (#353)
This PR:
1. Fixes an issue where the pattern clone operation fails, resulting in a hang/freeze.
2. Appends " (clone)" text to the cloned pattern's name.

The hang/freeze problem was reported on Discord:
1372209603
discord://discord.com/channels/698854858052075530/944926520282054666/1372209603080753212

Because a successful pattern clone operation immediately loads the new, cloned pattern in the browser, the loading status "success" message is not seen by the user. Instead the user sees the new pattern, but because the new pattern looks exactly like the old pattern, it is not immediately clear to the user that the operation succeeded.

This PR adds " (clone)" to the cloned pattern's name, making it easier to see that the clone operation succeeded and than the user is actually looking at the new, cloned pattern. It also helps differentiate the new, cloned pattern from the original pattern.

Co-authored-by: Benjamin Fan <ben-git@swinglonga.com>
Reviewed-on: https://codeberg.org/freesewing/freesewing/pulls/353
Reviewed-by: Joost De Cock <joostdecock@noreply.codeberg.org>
Co-authored-by: Benjamin Fan <benjamesben@noreply.codeberg.org>
Co-committed-by: Benjamin Fan <benjamesben@noreply.codeberg.org>
2025-05-18 10:01:31 +00:00
Benjamin Fan
74ba6c2329 fix(react): Untranslated strings also need a trailing space (#349)
The bug appears in part title cutlist instructions. The bug behavior exists only in the React component. It does not exist with the core SVG renderer.

Before:
![Screenshot 2025-05-12 at 10.59.49 AM.png](/attachments/cb43d749-bad3-4d54-95ba-ae1ed4675bd2)

After:
![Screenshot 2025-05-12 at 10.59.15 AM.png](/attachments/979ca23a-1db4-49e6-8b31-4e2cd84ecbdf)

Edit: (Added, in case the keyword needs to be in the PR description/first comment, not just in a subsequent comment):
Fixes #331

Co-authored-by: Benjamin Fan <ben-git@swinglonga.com>
Reviewed-on: https://codeberg.org/freesewing/freesewing/pulls/349
Reviewed-by: Joost De Cock <joostdecock@noreply.codeberg.org>
Co-authored-by: Benjamin Fan <benjamesben@noreply.codeberg.org>
Co-committed-by: Benjamin Fan <benjamesben@noreply.codeberg.org>
2025-05-18 09:44:18 +00:00
Benjamin Fan
1896eba914 fix(wahid): Add new waist, hips, and pocket calculations (#352)
This PR changes how the Wahid pattern is generated to improve widths at the waist and hips. It does so by using the actual waist and hips measurements to generate the waist and hips points, as opposed to the old method which used the chest circumference as the base to approximate the waist and hips points. The new method results in a pattern where the chest/waist/hips widths of the garment are exactly the values of chest/waist/hips measurements plus ease.

The changes are controlled by a new Legacy Waist and Hips option. The option is disabled by default, but when it is enabled the Wahid pattern is generated the old way. So, users will be able to generate the same Wahid patterns as before, if desired.

The PR also contains a fix for the front pocket angle.

The waist and hips changes were tested by someone who reported that it fixed their sway back issue:
1367899207
discord://discord.com/channels/698854858052075530/757631205804998759/1367899207553388556

Fixes #302
Fixes #328

Co-authored-by: Benjamin Fan <ben-git@swinglonga.com>
Reviewed-on: https://codeberg.org/freesewing/freesewing/pulls/352
Reviewed-by: Joost De Cock <joostdecock@noreply.codeberg.org>
Co-authored-by: Benjamin Fan <benjamesben@noreply.codeberg.org>
Co-committed-by: Benjamin Fan <benjamesben@noreply.codeberg.org>
2025-05-18 09:43:40 +00:00
Benjamin Fan
3390def67c fix(react): Pattern Layout print settings UI fixes (#351)
Fixes #341
Fixes #342

![Screenshot 2025-05-13 at 4.19.07 PM.png](/attachments/495b1a64-b7e6-40ca-b531-287cea0d29a1)
![Screenshot 2025-05-13 at 4.18.47 PM.png](/attachments/ce8f568e-537e-4f19-b0c1-893253966914)

Co-authored-by: Benjamin Fan <ben-git@swinglonga.com>
Reviewed-on: https://codeberg.org/freesewing/freesewing/pulls/351
Reviewed-by: Joost De Cock <joostdecock@noreply.codeberg.org>
Co-authored-by: Benjamin Fan <benjamesben@noreply.codeberg.org>
Co-committed-by: Benjamin Fan <benjamesben@noreply.codeberg.org>
2025-05-18 09:40:11 +00:00
Benjamin Fan
dcf7c0412b fix(dev): v4 tutorial setup changes (#278)
Changes to tutorial documentation:
1. Changed instances of `yarn` to `npm`. Remove references to installing `yarn`.
2. Changed instances of `@freesewing/new-design` to `@freesewing/studio`.
3. Changed instances of "lab" to "development environment" and `npm run lab` to `npm run org`.
4. Changed instances of Node v18.17.0 to v20.19.1. ~(I think I might have missed it in one spot. I'll submit a future PR for it.)~

I did not touch the Getting "Started with Vercel" and "Getting Started with Codespaces" tutorials. I need to take a closer look at these to see if they are still relevant or if we might want to remove them.

Co-authored-by: Benjamin Fan <ben-git@swinglonga.com>
Reviewed-on: https://codeberg.org/freesewing/freesewing/pulls/278
Reviewed-by: Joost De Cock <joostdecock@noreply.codeberg.org>
Co-authored-by: Benjamin Fan <benjamesben@noreply.codeberg.org>
Co-committed-by: Benjamin Fan <benjamesben@noreply.codeberg.org>
2025-05-18 09:32:33 +00:00
Joost De Cock
fdd94d9bb1 [simon] fix: Cuff Cutting Instructions' (#338)
Reviewed-on: https://codeberg.org/freesewing/freesewing/pulls/338
Reviewed-by: Joost De Cock <joostdecock@noreply.codeberg.org>
2025-05-09 16:07:07 +00:00
Joost De Cock
0dc985594d [dev] fix: Change github links to codeberg (#339)
Reviewed-on: https://codeberg.org/freesewing/freesewing/pulls/339
Reviewed-by: Joost De Cock <joostdecock@noreply.codeberg.org>
2025-05-09 16:06:13 +00:00
Jared Johnston
33308e846a Change github links to codeberg 2025-05-05 21:45:58 +10:00
Josh Munic
38218b1986
Fix Simon Cuffs cutting instructions
Add "Cut 2 from interfacing" to the cutting instructions on the
Simon shirt cuffs pattern. The cutting instructions in the
documentation say to cut 2 from interfacing.
2025-05-04 18:02:39 -07:00
jpmunic
dd18c39676 Merge pull request 'merge upstream into my fork' (#1) from freesewing/freesewing:develop into develop
Reviewed-on: https://codeberg.org/jpmunic/freesewing/pulls/1
2025-05-05 00:44:55 +00:00
joostdecock
f5a089f884 [dev] fix: Broken links 2025-05-04 18:55:10 +02:00
joostdecock
cb68284d54 [dev] feat: Started working on component reference docs 2025-05-04 18:42:49 +02:00
joostdecock
965e32b9d5 [react] fix: SVG colors in dark mode. Fixes #335 2025-05-04 14:12:52 +02:00
joostdecock
8295409eee Revert "[plugin-theme] fix: Better support for dark mode in SVG styles"
This reverts commit a01f300445.
See #335
2025-05-04 11:15:34 +02:00
joostdecock
e9e551bd46 [react] fix: CopyToClipboardButton style
See #264
2025-05-03 12:47:56 +02:00
joostdecock
07eae0a9cd [react] fix: Path string style in Xray path component
See #264
2025-05-03 12:47:24 +02:00
joostdecock
41203f8b3f [sites] fix: Navbar background on mobile. See #264 2025-05-03 12:39:06 +02:00
joostdecock
a01f300445 [plugin-theme] fix: Better support for dark mode in SVG styles
See #264
2025-05-03 12:34:42 +02:00
joostdecock
eb89fd4cc2 [react] fix: Support dark mode for codemirror editor
See #264
2025-05-03 11:52:28 +02:00
joostdecock
899ca81b64 [sites] fix: Navbar background color in light mode
We used --ifm-background-color here, which is a color in dark mode but
in light mode is transparent. So this switches it to
--ifm-background-surface-color which is always a color.

See #264
2025-05-03 11:43:22 +02:00
joostdecock
5e0b1f79b1 chore: Reconfigure run 2025-05-03 11:31:07 +02:00
Benjamin Fan
899f468d2b fix(scripts,config): Update collection i18n during reconfigure 2025-05-03 09:29:31 +00:00
Benjamin Fan
b6d9526d8b fix(react): Adjust linedrawing size to fit card 2025-05-03 09:28:47 +00:00
Benjamin Fan
09d6445a51 fix(react): Display missing linedrawing placeholder image 2025-05-03 09:28:47 +00:00
Benjamin Fan
ec9306cf1a fix(react): Clarify filtered designs label 2025-05-03 09:27:46 +00:00
Benjamin Fan
f92976e674 fix(collection): Add all array elements to sets 2025-05-03 09:27:46 +00:00
Jonathan Haas
cb5cfffbb0 Fix relative path in hrefNewSet configuration
Fixes #250
2025-05-03 09:27:11 +00:00