Skip to content

feat: Backlog/connect framework widget #528

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 98 commits into
base: main
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
98 commits
Select commit Hold shift + click to select a range
8c42aaa
remove framework-widget
lluisCM Feb 7, 2024
d6233a9
Merge branch 'main' of github.com:ftrackhq/integrations
lluisCM Feb 7, 2024
d4f8153
Merge branch 'main' of github.com:ftrackhq/integrations
lluisCM Feb 7, 2024
5a9acf3
Merge branch 'main' of github.com:ftrackhq/integrations
lluisCM Feb 7, 2024
2a04cd7
Merge branch 'main' of github.com:ftrackhq/integrations
lluisCM Feb 8, 2024
6fc405f
Merge branch 'main' of github.com:ftrackhq/integrations
lluisCM Feb 8, 2024
90ab95e
Merge branch 'main' of github.com:ftrackhq/integrations
lluisCM Feb 8, 2024
3849d82
Merge branch 'main' of github.com:ftrackhq/integrations
lluisCM Feb 8, 2024
599b789
Merge branch 'main' of github.com:ftrackhq/integrations
lluisCM Feb 12, 2024
3f25798
Merge branch 'main' of github.com:ftrackhq/integrations
lluisCM Feb 12, 2024
95a0677
Merge branch 'main' of github.com:ftrackhq/integrations
lluisCM Feb 12, 2024
19f54de
Merge branch 'main' of github.com:ftrackhq/integrations
lluisCM Feb 12, 2024
398bd41
Merge branch 'main' of github.com:ftrackhq/integrations
lluisCM Feb 12, 2024
f760b3e
Merge branch 'main' of github.com:ftrackhq/integrations
lluisCM Feb 12, 2024
f4b9e97
Merge branch 'main' of github.com:ftrackhq/integrations
lluisCM Feb 12, 2024
b1d7554
Merge branch 'main' of github.com:ftrackhq/integrations
lluisCM Feb 12, 2024
e132d07
Merge branch 'main' of github.com:ftrackhq/integrations
lluisCM Feb 12, 2024
5477ad1
Merge branch 'main' of github.com:ftrackhq/integrations
lluisCM Feb 13, 2024
4b1a74f
Merge branch 'main' of github.com:ftrackhq/integrations
lluisCM Feb 14, 2024
b84d398
Merge branch 'main' of github.com:ftrackhq/integrations
lluisCM Feb 16, 2024
cbd2c2c
update date on publisher widget and timetracker widget
lluisCM Feb 16, 2024
1f48ab1
Merge branch 'main' of github.com:ftrackhq/integrations
lluisCM Feb 16, 2024
e3132db
Merge branch 'main' of github.com:ftrackhq/integrations
lluisCM Feb 20, 2024
bc67e17
Merge branch 'main' of github.com:ftrackhq/integrations
lluisCM Feb 21, 2024
391cde7
Merge branch 'main' of github.com:ftrackhq/integrations
lluisCM Feb 23, 2024
8e19633
Merge branch 'main' of github.com:ftrackhq/integrations
lluisCM Feb 26, 2024
acbfd19
Merge branch 'main' of github.com:ftrackhq/integrations
lluisCM Feb 26, 2024
1a6ea94
Merge branch 'main' of github.com:ftrackhq/integrations
lluisCM Feb 26, 2024
6a86252
Merge branch 'main' of github.com:ftrackhq/integrations
lluisCM Feb 27, 2024
1122fea
Merge branch 'main' of github.com:ftrackhq/integrations
lluisCM Mar 8, 2024
08ba490
Merge branch 'main' of github.com:ftrackhq/integrations
lluisCM Mar 8, 2024
4a7e8e1
Merge branch 'main' of github.com:ftrackhq/integrations
lluisCM Mar 8, 2024
88ec7a4
Merge branch 'main' of github.com:ftrackhq/integrations
lluisCM Mar 8, 2024
b06af7f
Merge branch 'main' of github.com:ftrackhq/integrations
lluisCM Mar 8, 2024
fc7a97a
Merge branch 'main' of github.com:ftrackhq/integrations
lluisCM Mar 11, 2024
51910e9
Merge branch 'main' of github.com:ftrackhq/integrations
lluisCM Mar 11, 2024
8b89581
Merge branch 'main' of github.com:ftrackhq/integrations
lluisCM Mar 11, 2024
d585549
Merge branch 'main' of github.com:ftrackhq/integrations
lluisCM Mar 12, 2024
64f2fae
Merge branch 'main' of github.com:ftrackhq/integrations
lluisCM Mar 13, 2024
cab8fc8
Merge branch 'main' of github.com:ftrackhq/integrations
lluisCM Mar 14, 2024
31af13f
Merge branch 'main' of github.com:ftrackhq/integrations
lluisCM Mar 14, 2024
3e3b94c
Merge branch 'main' of github.com:ftrackhq/integrations
lluisCM Mar 14, 2024
cc5bc48
Merge branch 'main' of github.com:ftrackhq/integrations
lluisCM Mar 15, 2024
ce76c12
Merge branch 'main' of github.com:ftrackhq/integrations
lluisCM Mar 15, 2024
4971d86
Merge branch 'main' of github.com:ftrackhq/integrations
lluisCM Mar 15, 2024
e43a837
Merge branch 'main' of github.com:ftrackhq/integrations
lluisCM Mar 15, 2024
7880e5a
Merge branch 'main' of github.com:ftrackhq/integrations
lluisCM Mar 20, 2024
f2126cd
Merge branch 'main' of github.com:ftrackhq/integrations
lluisCM Mar 21, 2024
2ea0840
Merge branch 'main' of github.com:ftrackhq/integrations
lluisCM Mar 22, 2024
800cf67
Merge branch 'main' of github.com:ftrackhq/integrations
lluisCM Mar 25, 2024
2ccdea9
Merge branch 'main' of github.com:ftrackhq/integrations
lluisCM Mar 25, 2024
161a28f
Merge branch 'main' of github.com:ftrackhq/integrations
lluisCM Mar 25, 2024
3b45d10
Merge branch 'main' of github.com:ftrackhq/integrations
lluisCM Mar 25, 2024
1c6dc9e
Merge branch 'main' of github.com:ftrackhq/integrations
lluisCM Mar 25, 2024
d86b8eb
Merge branch 'main' of github.com:ftrackhq/integrations
lluisCM Mar 25, 2024
716cefd
Merge branch 'main' of github.com:ftrackhq/integrations
lluisCM Mar 25, 2024
dad7f7f
Merge branch 'main' of github.com:ftrackhq/integrations
lluisCM Mar 26, 2024
a193ae6
Merge branch 'main' of github.com:ftrackhq/integrations
lluisCM Mar 26, 2024
b11e6fc
Merge branch 'main' of github.com:ftrackhq/integrations
lluisCM Mar 26, 2024
53c6978
Merge branch 'main' of github.com:ftrackhq/integrations
lluisCM Mar 27, 2024
0da980d
Merge branch 'main' of github.com:ftrackhq/integrations
lluisCM Mar 27, 2024
9fcf879
Merge branch 'main' of github.com:ftrackhq/integrations
lluisCM Mar 27, 2024
9d1c194
Merge branch 'main' of github.com:ftrackhq/integrations
lluisCM Apr 2, 2024
828ec82
Merge branch 'main' of github.com:ftrackhq/integrations
lluisCM Apr 2, 2024
9ba34ac
Merge branch 'main' of github.com:ftrackhq/integrations
lluisCM Apr 2, 2024
8fdca98
Merge branch 'main' of github.com:ftrackhq/integrations
lluisCM Apr 15, 2024
bcd4524
Merge branch 'main' of github.com:ftrackhq/integrations
lluisCM Apr 15, 2024
aedffe6
Merge branch 'main' of github.com:ftrackhq/integrations
lluisCM Apr 17, 2024
629803e
Merge branch 'main' of github.com:ftrackhq/integrations
lluisCM Apr 18, 2024
9f7edb7
Merge branch 'main' of github.com:ftrackhq/integrations
lluisCM Apr 19, 2024
1c0abd9
Merge branch 'main' of github.com:ftrackhq/integrations
lluisCM Apr 19, 2024
7913ca8
Merge branch 'main' of github.com:ftrackhq/integrations
lluisCM Apr 22, 2024
f1cd994
Merge branch 'main' of github.com:ftrackhq/integrations
lluisCM Apr 22, 2024
c4694bd
Merge branch 'main' of github.com:ftrackhq/integrations
lluisCM Apr 24, 2024
0111334
Merge branch 'main' of github.com:ftrackhq/integrations
lluisCM May 2, 2024
f12b4a0
Merge branch 'main' of github.com:ftrackhq/integrations
lluisCM May 2, 2024
a98cf5d
Merge branch 'main' of github.com:ftrackhq/integrations
lluisCM May 2, 2024
d6b48aa
Merge branch 'main' of github.com:ftrackhq/integrations
lluisCM May 2, 2024
a693cad
Merge branch 'main' of github.com:ftrackhq/integrations
lluisCM May 3, 2024
2d5365d
Merge branch 'main' of github.com:ftrackhq/integrations
lluisCM May 3, 2024
f551eb7
Merge branch 'main' of github.com:ftrackhq/integrations
lluisCM May 7, 2024
e19fabe
Merge branch 'main' of github.com:ftrackhq/integrations
lluisCM May 7, 2024
dd0bc2e
Merge branch 'main' of github.com:ftrackhq/integrations
lluisCM May 8, 2024
22eaa3c
Merge branch 'main' of github.com:ftrackhq/integrations
lluisCM May 13, 2024
9e7fdf3
Merge branch 'main' of github.com:ftrackhq/integrations
lluisCM May 13, 2024
96fc21a
Merge branch 'main' of github.com:ftrackhq/integrations
lluisCM May 13, 2024
3779b60
Merge branch 'main' of github.com:ftrackhq/integrations
lluisCM May 14, 2024
f8a85c4
Merge branch 'main' of github.com:ftrackhq/integrations
lluisCM May 14, 2024
fb5d9a6
Merge branch 'main' of github.com:ftrackhq/integrations
lluisCM May 15, 2024
c0c3339
Merge branch 'main' of github.com:ftrackhq/integrations
lluisCM May 21, 2024
e5be1a4
Merge branch 'main' of github.com:ftrackhq/integrations
lluisCM May 21, 2024
99df474
Merge branch 'main' of github.com:ftrackhq/integrations
lluisCM May 21, 2024
cf77283
Merge branch 'main' of github.com:ftrackhq/integrations
lluisCM May 27, 2024
ea4b2b8
Merge branch 'main' of github.com:ftrackhq/integrations
lluisCM May 28, 2024
29a64b3
Merge branch 'main' of github.com:ftrackhq/integrations
lluisCM May 31, 2024
44f4a54
WIP
lluisCM May 31, 2024
0a8acdb
WIP widgets working but need to pass context, use only 1 session and …
lluisCM Jun 3, 2024
3e50526
fix styling issue
lluisCM Jun 5, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions apps/connect/resource/sass/_style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
@import 'widget/_tabbar';
@import 'widget/_table';
@import 'widget/_menu';
@import 'widget/_scrollarea';
@import 'widget/_scrollbar';
@import 'widget/_scrolling_flow_widget';
@import 'widget/_componentlist';
Expand Down
15 changes: 13 additions & 2 deletions apps/connect/source/ftrack_connect/ui/application.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
class ConnectWidgetPlugin(object):
topic = 'ftrack.connect.plugin.connect-widget'

def __init__(self, connect_widget):
def __init__(self, connect_widget, kwargs=None):
'''Initialise class with non initialised connect_widget.'''
if not isinstance(connect_widget, type):
raise Exception(
Expand All @@ -74,9 +74,12 @@ def __init__(self, connect_widget):
)

self._connect_widget = connect_widget
self._kwargs = kwargs

def _return_widget(self, event):
'''Return stored widget class.'''
if self._kwargs:
return [self._connect_widget, self._kwargs]
return self._connect_widget

def register(self, session, priority):
Expand Down Expand Up @@ -883,9 +886,17 @@ def _discover_connect_widgets(self):
load_fonts_resource()

for plugin_class in self._builtin_widget_plugins + responses:
# First check if returned plugin class has other arguments.
kwargs = None
if isinstance(plugin_class, list):
kwargs = plugin_class[1]
plugin_class = plugin_class[0]
widget_plugin = None
try:
widget_plugin = plugin_class(self.session)
if kwargs:
widget_plugin = plugin_class(self.session, **kwargs)
else:
widget_plugin = plugin_class(self.session)

except Exception:
self.logger.exception(
Expand Down
176 changes: 176 additions & 0 deletions projects/framework-connect-widget/LICENSE.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,176 @@
Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/

TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION

1. Definitions.

"License" shall mean the terms and conditions for use, reproduction,
and distribution as defined by Sections 1 through 9 of this document.

"Licensor" shall mean the copyright owner or entity authorized by
the copyright owner that is granting the License.

"Legal Entity" shall mean the union of the acting entity and all
other entities that control, are controlled by, or are under common
control with that entity. For the purposes of this definition,
"control" means (i) the power, direct or indirect, to cause the
direction or management of such entity, whether by contract or
otherwise, or (ii) ownership of fifty percent (50%) or more of the
outstanding shares, or (iii) beneficial ownership of such entity.

"You" (or "Your") shall mean an individual or Legal Entity
exercising permissions granted by this License.

"Source" form shall mean the preferred form for making modifications,
including but not limited to software source code, documentation
source, and configuration files.

"Object" form shall mean any form resulting from mechanical
transformation or translation of a Source form, including but
not limited to compiled object code, generated documentation,
and conversions to other media types.

"Work" shall mean the work of authorship, whether in Source or
Object form, made available under the License, as indicated by a
copyright notice that is included in or attached to the work
(an example is provided in the Appendix below).

"Derivative Works" shall mean any work, whether in Source or Object
form, that is based on (or derived from) the Work and for which the
editorial revisions, annotations, elaborations, or other modifications
represent, as a whole, an original work of authorship. For the purposes
of this License, Derivative Works shall not include works that remain
separable from, or merely link (or bind by name) to the interfaces of,
the Work and Derivative Works thereof.

"Contribution" shall mean any work of authorship, including
the original version of the Work and any modifications or additions
to that Work or Derivative Works thereof, that is intentionally
submitted to Licensor for inclusion in the Work by the copyright owner
or by an individual or Legal Entity authorized to submit on behalf of
the copyright owner. For the purposes of this definition, "submitted"
means any form of electronic, verbal, or written communication sent
to the Licensor or its representatives, including but not limited to
communication on electronic mailing lists, source code control systems,
and issue tracking systems that are managed by, or on behalf of, the
Licensor for the purpose of discussing and improving the Work, but
excluding communication that is conspicuously marked or otherwise
designated in writing by the copyright owner as "Not a Contribution."

"Contributor" shall mean Licensor and any individual or Legal Entity
on behalf of whom a Contribution has been received by Licensor and
subsequently incorporated within the Work.

2. Grant of Copyright License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
copyright license to reproduce, prepare Derivative Works of,
publicly display, publicly perform, sublicense, and distribute the
Work and such Derivative Works in Source or Object form.

3. Grant of Patent License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
(except as stated in this section) patent license to make, have made,
use, offer to sell, sell, import, and otherwise transfer the Work,
where such license applies only to those patent claims licensable
by such Contributor that are necessarily infringed by their
Contribution(s) alone or by combination of their Contribution(s)
with the Work to which such Contribution(s) was submitted. If You
institute patent litigation against any entity (including a
cross-claim or counterclaim in a lawsuit) alleging that the Work
or a Contribution incorporated within the Work constitutes direct
or contributory patent infringement, then any patent licenses
granted to You under this License for that Work shall terminate
as of the date such litigation is filed.

4. Redistribution. You may reproduce and distribute copies of the
Work or Derivative Works thereof in any medium, with or without
modifications, and in Source or Object form, provided that You
meet the following conditions:

(a) You must give any other recipients of the Work or
Derivative Works a copy of this License; and

(b) You must cause any modified files to carry prominent notices
stating that You changed the files; and

(c) You must retain, in the Source form of any Derivative Works
that You distribute, all copyright, patent, trademark, and
attribution notices from the Source form of the Work,
excluding those notices that do not pertain to any part of
the Derivative Works; and

(d) If the Work includes a "NOTICE" text file as part of its
distribution, then any Derivative Works that You distribute must
include a readable copy of the attribution notices contained
within such NOTICE file, excluding those notices that do not
pertain to any part of the Derivative Works, in at least one
of the following places: within a NOTICE text file distributed
as part of the Derivative Works; within the Source form or
documentation, if provided along with the Derivative Works; or,
within a display generated by the Derivative Works, if and
wherever such third-party notices normally appear. The contents
of the NOTICE file are for informational purposes only and
do not modify the License. You may add Your own attribution
notices within Derivative Works that You distribute, alongside
or as an addendum to the NOTICE text from the Work, provided
that such additional attribution notices cannot be construed
as modifying the License.

You may add Your own copyright statement to Your modifications and
may provide additional or different license terms and conditions
for use, reproduction, or distribution of Your modifications, or
for any such Derivative Works as a whole, provided Your use,
reproduction, and distribution of the Work otherwise complies with
the conditions stated in this License.

5. Submission of Contributions. Unless You explicitly state otherwise,
any Contribution intentionally submitted for inclusion in the Work
by You to the Licensor shall be under the terms and conditions of
this License, without any additional terms or conditions.
Notwithstanding the above, nothing herein shall supersede or modify
the terms of any separate license agreement you may have executed
with Licensor regarding such Contributions.

6. Trademarks. This License does not grant permission to use the trade
names, trademarks, service marks, or product names of the Licensor,
except as required for reasonable and customary use in describing the
origin of the Work and reproducing the content of the NOTICE file.

7. Disclaimer of Warranty. Unless required by applicable law or
agreed to in writing, Licensor provides the Work (and each
Contributor provides its Contributions) on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
implied, including, without limitation, any warranties or conditions
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
PARTICULAR PURPOSE. You are solely responsible for determining the
appropriateness of using or redistributing the Work and assume any
risks associated with Your exercise of permissions under this License.

8. Limitation of Liability. In no event and under no legal theory,
whether in tort (including negligence), contract, or otherwise,
unless required by applicable law (such as deliberate and grossly
negligent acts) or agreed to in writing, shall any Contributor be
liable to You for damages, including any direct, indirect, special,
incidental, or consequential damages of any character arising as a
result of this License or out of the use or inability to use the
Work (including but not limited to damages for loss of goodwill,
work stoppage, computer failure or malfunction, or any and all
other commercial damages or losses), even if such Contributor
has been advised of the possibility of such damages.

9. Accepting Warranty or Additional Liability. While redistributing
the Work or Derivative Works thereof, You may choose to offer,
and charge a fee for, acceptance of support, warranty, indemnity,
or other liability obligations and/or rights consistent with this
License. However, in accepting such obligations, You may act only
on Your own behalf and on Your sole responsibility, not on behalf
of any other Contributor, and only if You agree to indemnify,
defend, and hold each Contributor harmless for any liability
incurred by, or claims asserted against, such Contributor by reason
of your accepting any such warranty or additional liability.

END OF TERMS AND CONDITIONS
70 changes: 70 additions & 0 deletions projects/framework-connect-widget/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
# Connect publisher widget

## Building

### Preparations

Update release notes.

Set or bump version in pyproject.toml:

```bash
poetry version prerelease
```
or:
```bash
poetry version patch
```
or:
```bash
poetry version minor
```
or:
```bash
poetry version major
```

Bump the connect plugin version in integrations/projects/connect-publisher-widget/connect-plugin/__version__.py

Tag and push to SCM

### CI build

See Monorepo build CI


### Manual build

Build with Poetry:

```bash
cd integrations/projects/framework-connect-widget
poetry build
```

Build Connect plugin:

```bash
cd integrations
python tools/build.py build_connect_plugin projects/framework-connect-widget
```

If the build fails and publisher widget is using beta or experimental dependencies published to Test PyPi, use the `--testpypi` flag
to build the plugin.


### Build documentation


Install documentation dependencies:

```bash
poetry install --with documentation
```

Build documentation:

```bash
poetry run sphinx-build -b html doc dist/doc
```

Loading
Loading