Skip to content
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

Copy & paste activity #3993

Merged
merged 20 commits into from
Dec 17, 2023
Merged

Conversation

pmattmann
Copy link
Member

Copy and Paste Activities

draft

styling + fix

Clipboard info dialog

feature-complete

cs-fix

fix tests

psalm

UnitTests

cs-fix

translation

translation & cleanup
@pmattmann pmattmann marked this pull request as ready for review October 21, 2023 15:54
@pmattmann pmattmann added the deploy! Creates a feature branch deployment for this PR label Oct 21, 2023
@pmattmann pmattmann temporarily deployed to feature-branch October 21, 2023 16:25 — with GitHub Actions Inactive
@pmattmann pmattmann changed the title Feature/copy activity Copy & paste activity Oct 21, 2023
@BacLuc
Copy link
Contributor

BacLuc commented Oct 21, 2023

Es scheint als wäre der clipboard zugriff auf firefox bisschen kompliziert:

TypeError: 'clipboard-read' (value of 'name' member of PermissionDescriptor) is not a valid value for enumeration PermissionName.
    mounted CopyActivityInfoDialog.vue:49
    VueJS 19
    click CampProgram.vue:81
    VueJS 4
    onClick LockButton.vue:60
    VueJS 33

Das passiert nur schon, wenn man den edit mode im picasso aktiviert.
Wenn man dann das Kopier symbol klickt, dann gibt es kein Feedback.

Beim erstellen einer neuen Aktivität wird die console dann auch rot.

Sobald man in der aktivitäts ansicht das three dot menu aufmacht, wird die konsole auch rot.

@BacLuc
Copy link
Contributor

BacLuc commented Oct 21, 2023

In Safari hat das navigator.permissions objekt gar keine properties (oder ist wahrscheinlich null).
Es gibt einen type error

@github-actions
Copy link

github-actions bot commented Oct 21, 2023

Feature branch deployment currently inactive.

If the PR is still open, you can add the deploy! label to this PR to trigger a feature branch deployment.

@pmattmann pmattmann temporarily deployed to feature-branch October 21, 2023 17:10 — with GitHub Actions Inactive
api/src/Entity/Activity.php Show resolved Hide resolved
api/src/State/ActivityCreateProcessor.php Show resolved Hide resolved
api/tests/Api/Activities/CreateActivityTest.php Outdated Show resolved Hide resolved
api/tests/Api/Activities/CreateActivityTest.php Outdated Show resolved Hide resolved
@@ -120,6 +120,13 @@ class Activity extends BaseEntity implements BelongsToCampInterface {
#[ORM\JoinColumn(nullable: false)]
public ?Category $category = null;

/**
* Copy Contents from this Source-Activity.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does the source start with a capital letter

frontend/src/components/activity/ScheduleEntry.vue Outdated Show resolved Hide resolved
frontend/src/components/program/DialogActivityCreate.vue Outdated Show resolved Hide resolved
frontend/src/components/program/DialogActivityCreate.vue Outdated Show resolved Hide resolved
@pmattmann pmattmann temporarily deployed to feature-branch October 21, 2023 20:15 — with GitHub Actions Inactive
@pmattmann pmattmann temporarily deployed to feature-branch October 21, 2023 21:49 — with GitHub Actions Inactive
@pmattmann pmattmann temporarily deployed to feature-branch October 21, 2023 23:57 — with GitHub Actions Inactive
@pmattmann pmattmann temporarily deployed to feature-branch October 22, 2023 10:15 — with GitHub Actions Inactive
@DeNic0la
Copy link
Collaborator

Hey, I played around a bit and noticed some things.

Copying a block has a delay or does sometimes not work.

Ecamp_3993_case_01.mp4

The URL was copied to my clipboard (I pasted it into a new tab and it worked) but was not recognized by ecamp at first.


When deleting a block while in the copy process, there is no error message. (or it didn't load on my Browser)

Ecamp_3993_case_02.mp4

Doing this is basically asking for trouble but the same thing happens when the internet connection is lost:
image

@pmattmann pmattmann temporarily deployed to feature-branch October 22, 2023 11:48 — with GitHub Actions Inactive
@pmattmann pmattmann temporarily deployed to feature-branch October 22, 2023 12:02 — with GitHub Actions Inactive
Copy link
Member

@manuelmeister manuelmeister left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Cool

<p v-if="clipboardReadState === 'granted'">
{{ $tc('components.activity.copyActivityInfoDialog.granted') }}
</p>
<p v-if="clipboardReadState === 'denied'">
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

minor:
Could we keep the button to request access also in the denied case?
On some browsers (e.g. mobile) the button to grant the permission is not that easy to find.

<v-list-item-action>
<e-checkbox
v-model="copyContent"
:label="$tc('components.program.dialogActivityCreate.copyActivityContent')"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

minor:
The label text content is a little long on mobile and hides the activity title.
But you see it in the title field and in the category field

frontend/src/components/program/DialogActivityCreate.vue Outdated Show resolved Hide resolved
@manuelmeister
Copy link
Member

I created a PR to resolve the leftover issues: pmattmann#7

@BacLuc
Copy link
Contributor

BacLuc commented Dec 17, 2023

You need to merge devel again after #4136

@manuelmeister manuelmeister added this pull request to the merge queue Dec 17, 2023
Merged via the queue into ecamp:devel with commit 45d4e38 Dec 17, 2023
31 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
deploy! Creates a feature branch deployment for this PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants