Commit graph

28475 commits

Author SHA1 Message Date
Jelle Spijker
6514fdf9f2
Check the server if a package can be updated
The server is queried using the local packages_id and version to
determine if they can be updated. The Manage button state is set
accordingly. This is done in an async way to keep the UI responsive

A.t.m I'm not sure if I might need to move this logic out, since
we also need to make this query when check periodically for updates.
when the list is not shown. But that would also entail creating
the installed packages list before the Manage Packages tab is ever
created in the Marketplace.

Contributes to: CURA-8587
2021-12-03 13:25:43 +01:00
Ghostkeeper
0477ba44b2
Encode capabilities as comma-separated list
Previously it was encoded as a stringified Python list of strings, which is much harder to parse.
This would go wrong if any of these capabilities have a comma in them, but I think that would be bad practice for keywords like this anyway.

Contributes to issue CURA-8671.
2021-12-03 13:25:41 +01:00
Jelle Spijker
eb156f114c
Introduce a ManageButton
The state and styling of this coupled with the available options.
Discussed with UX that primary state: Install, Enable, Update while
secondary states are: Uninstall, Disable

Each primary/secondary state also has a busy state, with the verb
and spinner.

Contributes to: CURA-8587
2021-12-03 13:25:38 +01:00
Ghostkeeper
02d74b4226
Make header of detail page depend on header of origin
It's the same as the list of packages you came from, now.

Contributes to issue CURA-8565.
2021-12-03 13:25:35 +01:00
Ghostkeeper
2b419a2379
Make package detail page scroll if details are too long
Some plug-ins could have very long descriptions now. We show all of it, but that could go off the screen in theory.

This makes the content scrollable if it goes off the screen.

Contributes to issue CURA-8565.
2021-12-03 13:25:29 +01:00
Ghostkeeper
b1af7ad203
Add button to visit plug-in website
There are a lot of buttons leading to websites now: An arrow leading to the author website. An author name leading to the author website. A 'read more' label leading to the plug-in website and this new button leading to the plug-in website. Maybe we should raise this with the designer.

Contributes to issue CURA-8565.
2021-12-03 13:25:26 +01:00
Ghostkeeper
39488823b1
Add forgotten ArrowLeft icon
I've been using this for a while. It should've been included with the commit that added the button, but oh well.

Contributes to issue CURA-8565.
2021-12-03 13:25:25 +01:00
Ghostkeeper
0b1b4ec01b
Communicate to PackageCard whether it is a detailed card or not
If it is detailed, it currently hides the short description. That is not quite enough, but we'll expand that behaviour.

Contributes to issue CURA-8565.
2021-12-03 13:25:10 +01:00
Ghostkeeper
76e43759c7
Restore check for parent before getting its width
Delegates that are outside of the viewport may have no parent any more. Don't attempt to find their parents' width.

Contributes to issue CURA-8565.
2021-12-03 13:25:10 +01:00
Ghostkeeper
0069182c6b
Set position and width of card in details page
This means that the card itself shouldn't specify a width. It should get a width from how it's used.

Contributes to issue CURA-8565.
2021-12-03 13:25:10 +01:00
Ghostkeeper
5edd830210
Add package card to detail page
The card has the wrong layout, but it's a start. The data is communicated in any case.

Contributes to issue CURA-8565.
2021-12-03 13:25:10 +01:00
Ghostkeeper
d31079b7aa
Split page in header and contents
This requires a small refactor here.

Contributes to issue CURA-8565.
2021-12-03 13:25:09 +01:00
Ghostkeeper
cb7b9b3193
Increase size of icon to fit button exactly
Contributes to issue CURA-8565.
2021-12-03 13:25:09 +01:00
Ghostkeeper
d4ebf3baa0
Also use proper icon size for left icon
Almost forgot!

Contributes to issue CURA-8565.
2021-12-03 13:25:09 +01:00
Ghostkeeper
0cd8798aff
Remove superfluous anchors.fill
This is already set by the StackView, which (logically) requires that the children fill the entire space taken by the StackView.

Contributes to issue CURA-8565.
2021-12-03 13:25:09 +01:00
Ghostkeeper
04501f788c
Allow changing the icon size
But use the same default as what was previously hard-coded. Now we can have buttons with non-standard icon sizes then, e.g. if the button size itself is also non-standard.

Contributes to issue CURA-8565.
2021-12-03 13:25:09 +01:00
Ghostkeeper
27d9118d17
Basis of header line
I think the icon on the button is too small, but that's not currently configurable. Will have to look into that.

Contributes to issue CURA-8565.
2021-12-03 13:25:09 +01:00
Ghostkeeper
26a39f0240
Add a StackView around Marketplace to allow extra pages on top
This allows a sort of full-screen pop-up to replace the entire Marketplace window contents, on top of the normal contents. The normal contents are kept as they are, but out of view.

Contributes to issue CURA-8565.
2021-12-03 13:25:09 +01:00
Jaime van Kessel
34911380d2
Change fonts to default
No idea why they were medium, but the design clearly shows that it should be the default font
2021-12-03 13:25:09 +01:00
Jaime van Kessel
a59307e10d
Also set correct size for package card title 2021-12-03 13:25:09 +01:00
Jelle Spijker
3c225f1a73
Fixed some layout issues with the Package Cards
Contributes to: CURA-8587
2021-12-03 13:25:08 +01:00
Jelle Spijker
5373e9a36d
More generic way of showing the manage buttons
Contributes to: CURA-8587
2021-12-03 13:25:08 +01:00
Ghostkeeper
6b0979172f
Slightly adjust width of button
This is more in line with what you see, so you can click on the icon properly to open the per-object settings panel. And the text gets properly elided where the icon starts.
2021-12-03 11:51:04 +01:00
baldaaaa
64acb10d41 add ender-3 max profile 2021-12-03 01:28:50 -05:00
Ghostkeeper
b76df21b4b
Filter printer list by capabilities
And an example of such usage: In the material sync via cloud we only want to sync with printers that can receive those materials.

We might want to add a message for the user to also make sure the firmware is up to date. Because if the firmware is not up to date now it will show no printers and instruct the user how to connect the printer to the cloud.

Contributes to issue CURA-8671.
2021-12-02 17:55:53 +01:00
Jaime van Kessel
a49d9748ee Fix typing mistake 2021-12-02 16:02:36 +01:00
Jaime van Kessel
569be2c791 Merge branch 'master' of github.com:Ultimaker/Cura 2021-12-02 15:08:09 +01:00
Jaime van Kessel
fb09e55b02 Fix typing
CURA-8723
2021-12-02 15:07:50 +01:00
Jaime van Kessel
064a845f71 Ensure that opengl context is available when creating a snapshot
CURA-8723
2021-12-02 15:06:54 +01:00
Jaime van Kessel
9f6dacfced Merge branch 'feature_project_thumbnail' of git://github.com/fieldOfView/Cura 2021-12-02 14:37:14 +01:00
Vandresc
748e698b57
Merge pull request #10969 from Ultimaker/CURA-8666_dont_restore_backup_plugins
[CURA-8666] Don't restore files ignored with current backup policy.
2021-12-02 14:37:00 +01:00
Remco Burema
f5604dfb1e
Add 'capabilities' to ignored metadata.
part of CURA-8671
2021-12-02 12:23:57 +01:00
Remco Burema
1253b41537
Only perform materials-sync-job for capable printers.
part of CURA-8671
2021-12-02 12:22:55 +01:00
fieldOfView
0a906accec Add thumbnail to all 3MF files, and add relation and content-type metadata 2021-12-01 21:49:12 +01:00
Evangelos Trantos
95f0b692a6
Merge pull request #10977 from Ultimaker/CURA-8696_Show_whats_new_after_beta
CURA-8696 Show whats new after beta
2021-12-01 20:40:04 +01:00
Remco Burema
21608043a5
Merge pull request #10973 from Ultimaker/CURA-8585_marketplace_material_details
Detail page for materials on Marketplace
2021-12-01 14:18:07 +01:00
Remco Burema
813bbb30e4
Merge branch 'marketplace_redesign' into CURA-8585_marketplace_material_details 2021-12-01 14:08:20 +01:00
Remco Burema
518e59303d
Fix dashes in links.
part of CURA-8565 and/or CURA-8585
2021-12-01 14:01:41 +01:00
Remco Burema
c1298c6a5e
Hide search link when not needed. 2021-12-01 13:53:43 +01:00
Remco Burema
b5e06f6c67
Fix tooltip targetpoint. 2021-12-01 13:48:18 +01:00
Remco Burema
1a787e5df2
Solve layout warnings. 2021-12-01 13:22:50 +01:00
Orel
da6468e449 Decrease new mesh size 2021-12-01 12:55:24 +01:00
aschwenck
dc56d3e22e Add new Dagoma PRO 430 printer profiles 2021-12-01 12:46:09 +01:00
casper
bd9722654c Use FontMetrics component to calculate the line height
cura 8563
2021-12-01 11:45:30 +01:00
Jaime van Kessel
83b56726ba CHange _getBuiltinWelcomePagePath to be static
SHould have been static, so boyscouting it now

CURA-8696
2021-12-01 10:33:05 +01:00
Jaime van Kessel
22fcdf5c7b Change whatsnew to whats_new
They are seperate words, so should have an _ in between

CURA-8696
2021-12-01 10:30:52 +01:00
Jaime van Kessel
051c3ee2e2 Fix up documentation of WelcomePageModel
Some more boyscouting

CURA-8696
2021-12-01 10:29:31 +01:00
casper
bf168388dd Change styling of "Search in the browser" button in the marketplace
To comply with the UX design.

cura 8563
2021-12-01 10:29:21 +01:00
Jaime van Kessel
6bce9453e4 Fix warnings in newpages model
Boyscouting. These somehow snuck through code review

CURA-8696
2021-12-01 10:21:07 +01:00
Jaime van Kessel
a057cbe481 Minor codestyle cleanup
Boyscouting

CURA-8696
2021-12-01 10:18:04 +01:00