1
0
Fork 0
Commit graph

55 commits

Author SHA1 Message Date
joostdecock
3d01c0136c wip: Work on editor docs 2025-05-31 18:38:32 +02:00
joostdecock
74d4f05d94 feat: Migrate from helpProvider to Help components 2025-05-30 15:04:10 +02:00
joostdecock
f69093b0dc feat[react]: Linting with eslint 9 2025-05-30 11:29:55 +02:00
joostdecock
320bcf8534 fix: Update after breaking changes to Popout component 2025-05-29 11:18:34 +02:00
joostdecock
b914b6299f Merge branch 'develop' into cdocs 2025-05-24 12:07:19 +02:00
Jonathan Haas
c66c9e0a93 feat(react): Replace the flag number with a colored badge 2025-05-24 08:54:42 +02:00
Benjamin Fan
743314062d fix(react): Handle no-settings scenario 2025-05-24 08:53:00 +02:00
Jonathan Haas
96ae664829 feat(react): Change the expand icon to have the arrows point inwards if expand is disabled 2025-05-24 08:52:18 +02:00
Jonathan Haas
9c3155823c fix (react): make the Sample menu less strict about translations
It can be helpful to be able to use the sample function on incomplete designs without proper translation, so don't crash if an option is missing its translation
2025-05-24 08:51:08 +02:00
Benjamin Fan
bfc2296cec fix(react,utils): Change imperial step to 1/16 in. 2025-05-24 08:49:07 +02:00
Benjamin Fan
c60f73befd fix(react): Add URL formats to Bookmarked Set picker 2025-05-24 08:45:52 +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
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
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
joostdecock
612af4081b [react] feat: Added docs for components/Input 2025-05-11 17:55:53 +02:00
joostdecock
f8a987e3d5 [react] feat: Added docs for components/Editor 2025-05-10 15:47:00 +02:00
joostdecock
e58177dedb [react] feat: Merged Button and CopyToClipboardButton 2025-05-10 14:19:57 +02:00
joostdecock
965e32b9d5 [react] fix: SVG colors in dark mode. Fixes #335 2025-05-04 14:12:52 +02:00
joostdecock
eb89fd4cc2 [react] fix: Support dark mode for codemirror editor
See #264
2025-05-03 11:52:28 +02:00
Jonathan Haas
cb5cfffbb0 Fix relative path in hrefNewSet configuration
Fixes #250
2025-05-03 09:27:11 +00:00
Jonathan Haas
83ff6b3b47 [react] fix: Improve the inspect view (#323)
Improve visuals of the Xray path component

- Return null for hidden paths in the Path component. This fixes #266 and restores v3 behavior here. (An optional toggle to show hidden paths might be useful in the future.)
- Reverse animation direction in stroke-dashoffset. This ensures that the path animates in the internal direction, which is less confusing since you can hover over a path to check that it is counter-clockwise.

Also remove a duplicate array key.

Reviewed-on: https://codeberg.org/freesewing/freesewing/pulls/323
Reviewed-by: Joost De Cock <joostdecock@noreply.codeberg.org>
Co-authored-by: Jonathan Haas <haasjona@gmail.com>
Co-committed-by: Jonathan Haas <haasjona@gmail.com>
2025-05-03 09:26:41 +00:00
joostdecock
d267c04286 [react]: fix: Escape user-provided text in SVG. Closes #260 2025-05-01 15:48:50 +00:00
joostdecock
d0cebc8959 [react] fix: Always add bounding box in plugin-tiler. Fixes #273 2025-05-01 15:39:17 +00:00
joostdecock
b6cb59e94c [react] fix: Respect user account units & header fixes
This fixes #310 by ensuring the user units are respected.
It also includes some tweaks for the header menu in the editor

- Better default/non-default styling for icons
- Fix alignment of various menus within the ribbon
2025-05-01 15:38:28 +00:00
Jonathan Haas
c535f626a7 [react] fix: Change the maximum value of the pattern parts margin to a more sensible value of about 3cm instead of 2.5mm 2025-05-01 14:45:32 +00:00
joostdecock
fe8e1853a7 [react]: fix: Pass down state for toAbs() 2025-05-01 14:45:09 +00:00
Jonathan Haas
995b3b0acc [react] fix: Work around an issue where the account in local storage would have set a wrong control value in localStorage
And use the correct integer for new visitors
2025-05-01 14:20:29 +00:00
Jonathan Haas
3fd70c2447 [editor] fix: Initialize ux state with user control level
Fixes #310
2025-05-01 14:20:29 +00:00
joostdecock
5cfa9df287 [react] fix: Button state for boolean core options. Fixes #229 2025-04-28 07:16:39 +02:00
joostdecock
663528fa36 [react] chore: Guard against undefined settings 2025-04-28 07:06:35 +02:00
joostdecock
5e5edd9d29 [react] fix: Guard against undefined state. Fixes #298 2025-04-28 06:48:14 +02:00
joostdecock
a97bb4e803 chore: Do not initialize editor with default settings 2025-04-27 15:20:11 +02:00
Jonathan Haas
f42e94923b Fix SampleMeasurementButton 2025-04-26 13:52:30 +00:00
joostdecock
c17b58f141 [react] fix: Apply correct CSS class. Fixes #245 (#271)
Reviewed-on: https://codeberg.org/freesewing/freesewing/pulls/271

TODO: fix rotate button
Co-authored-by: joostdecock <joost@joost.at>
Co-committed-by: joostdecock <joost@joost.at>
2025-04-21 12:15:32 +00:00
joostdecock
c6664cff19 [react] fix: Background in menus 2025-04-19 19:05:56 +02:00
joostdecock
e433a7d1ce [org] fix: Menus in Editor 2025-04-19 17:52:48 +02:00
joostdecock
44e04a4cef feat: Upgrade to TailwindCSS 4 & DaisyUI 5 (#263)
Also fixes #251

Reviewed-on: https://codeberg.org/freesewing/freesewing/pulls/263
Co-authored-by: joostdecock <joost@joost.at>
Co-committed-by: joostdecock <joost@joost.at>
2025-04-18 08:07:13 +00:00
Jonathan Haas
5ba6d4d0b0 [react] fix: deselecting included parts (#259)
Running `updateHandler(part, undefined)` will set the setting to null instead of removing/resetting it, which causes problems.

Fixes #239

Reviewed-on: https://codeberg.org/freesewing/freesewing/pulls/259
Reviewed-by: Joost De Cock <joostdecock@noreply.codeberg.org>
Co-authored-by: Jonathan Haas <haasjona@gmail.com>
Co-committed-by: Jonathan Haas <haasjona@gmail.com>
2025-04-18 06:24:34 +00:00
Jonathan Haas
0364e9c463 [react] fix: Pattern reset button (#258)
Fixes #252

Reviewed-on: https://codeberg.org/freesewing/freesewing/pulls/258
Reviewed-by: Joost De Cock <joostdecock@noreply.codeberg.org>
Co-authored-by: Jonathan Haas <haasjona@gmail.com>
Co-committed-by: Jonathan Haas <haasjona@gmail.com>
2025-04-18 06:23:42 +00:00
Jonathan Haas
915e52b7d4 [react] fix: Fix weird slider behaviour when entering default value (#246)
Fixes #212

Reviewed-on: https://codeberg.org/freesewing/freesewing/pulls/246
Reviewed-by: Joost De Cock <joostdecock@noreply.codeberg.org>
Co-authored-by: Jonathan Haas <haasjona@gmail.com>
Co-committed-by: Jonathan Haas <haasjona@gmail.com>
2025-04-13 09:00:08 +00:00
Jonathan Haas
a9f5ba5392 Fix string translations in multiple views and SVG export and theming in SVG draft view (#244)
Fixes #227
Fixes #78

Reviewed-on: https://codeberg.org/freesewing/freesewing/pulls/244
Reviewed-by: Joost De Cock <joostdecock@noreply.codeberg.org>
Co-authored-by: Jonathan Haas <haasjona@gmail.com>
Co-committed-by: Jonathan Haas <haasjona@gmail.com>
2025-04-13 08:59:27 +00:00
Jonathan Haas
36da79afb6 [react] fix: Various fixes for the measurement view and editor (#233)
Various fixes for the measurement view and editor:

- Translate measurements in the measurement set view and align the measurements table properly
- Display a question mark next to the measurements that links to the corresponding docs page

This fixes a part of #226

Reviewed-on: https://codeberg.org/freesewing/freesewing/pulls/233
Reviewed-by: Joost De Cock <joostdecock@noreply.codeberg.org>
Co-authored-by: Jonathan Haas <haasjona@gmail.com>
Co-committed-by: Jonathan Haas <haasjona@gmail.com>
2025-04-13 08:57:54 +00:00
Jonathan Haas
658555efb6 [react] fix: Improve handling default values of the pattern settings. (#234)
Fixes #229

unsure if expand is intended to be enabled or disabled by default, I opted for saving paper by default, but this can be easily changed.

Reviewed-on: https://codeberg.org/freesewing/freesewing/pulls/234
Reviewed-by: Joost De Cock <joostdecock@noreply.codeberg.org>
Co-authored-by: Jonathan Haas <haasjona@gmail.com>
Co-committed-by: Jonathan Haas <haasjona@gmail.com>
2025-04-12 08:01:16 +00:00
joostdecock
96bce2ef7c [react] fix: Do not apply null layout. Closes #219 2025-04-07 05:46:36 +00:00
joostdecock
48cdfef5f6 [react] fix: Use replaceState in hash. See #216 2025-04-07 05:46:36 +00:00
Jonathan Haas
dbf49fd8ff [react] fix: copy-paste error introduced in #205, causing the InspectView to crash (#221)
Reviewed-on: https://codeberg.org/freesewing/freesewing/pulls/221
Reviewed-by: Joost De Cock <joostdecock@noreply.codeberg.org>
Co-authored-by: Jonathan Haas <haasjona@gmail.com>
Co-committed-by: Jonathan Haas <haasjona@gmail.com>
2025-04-07 05:22:55 +00:00
Jonathan Haas
c34bf694e1 [react] fix: pattern export issues (#218)
Fix the export functionality in the pattern editor:

* Fix the export button in the header bar
* Fix the copy to clipboard buttons displaying no text and having a weird styling.

Before:
![before](/attachments/b2c542a8-06ee-46fa-9058-36b738e285cc)
After:
![after](/attachments/754993a9-04ee-44e9-ae78-7529a1298a54)

Fixes #215

Reviewed-on: https://codeberg.org/freesewing/freesewing/pulls/218
Reviewed-by: Joost De Cock <joostdecock@noreply.codeberg.org>
Co-authored-by: Jonathan Haas <haasjona@gmail.com>
Co-committed-by: Jonathan Haas <haasjona@gmail.com>
2025-04-06 14:47:22 +00:00