improvements to gifting-adjacent views #143

Closed
jose wants to merge 0 commits from gifting-periphery-improvements into master
Owner
No description provided.
jose added 19 commits 2025-06-24 12:04:41 +00:00
Started to transform the gifting dialog into the two-step setup as per previous mockups
- Dialog is now presented as two distinct steps
- Gifting functionality reinstated
- Minor UI tweaks
- IN PROGRESS: ensuring calls to dialog from other parts of the app remain functional
Pass string "Unnamed" to select unnamed giver and skip contact selection step of dialog.
- Only show "Show All" when user has contacts
- Gifting dialog: added ability to pick a project to benefit from
- Project view: modified dialog calls in Project view to toggle between giving to and benefiting from a project
- Project view: removed redundant person selection
- Project view: benefiting from a project locks the project selection in dialog to enforce context.
In GiftingDialog, project information is passed along if:
- Selecting "Show All" to go to ContactGiftingView
- Selecting "Photos and Other Options" to go to GiftedDetailsView
- Dialog now shows separate cards for giver and recipient
- Ability to change giver and/or recipient
- Project giver/recipient is locked in ProjectView (context reinforcement)
- Ensures person-to-person gifting won't allow the same entity as giver and recipient
- Disable user item selection if it would create conflict
- Error messaging fallback
- Ensure claims contain only correct and necessary giver and recipient identifiers, as per Endorser.ch documentation
- Avoid did display stretching screen width
Now consistent with gifting dialog version
- Truncate very long texts (such as dids)
- Stacked layout in mobile, row layout in wider screens
- Minor design adjustments
jose added 3 commits 2025-06-25 13:14:44 +00:00
jose added 1 commit 2025-06-25 13:16:51 +00:00
jose added 1 commit 2025-06-25 13:28:04 +00:00
jose added 2 commits 2025-06-26 07:27:44 +00:00
jose added 1 commit 2025-06-26 10:52:29 +00:00
jose added 1 commit 2025-06-27 13:59:02 +00:00
jose changed title from WIP: improvements to gifting-adjacent views to improvements to gifting-adjacent views 2025-06-27 14:03:35 +00:00
Author
Owner

NOTE: includes changes from gifting-ui-2025-05 branch

**NOTE**: includes changes from `gifting-ui-2025-05` branch
trentlarson reviewed 2025-06-28 02:08:19 +00:00
@@ -381,0 +1025,4 @@
selectProject(project: PlanData) {
this.giver = {
did: project.handleId,
Owner

A DID is only for a user, so it can never be a project handle.

A DID is only for a user, so it can never be a project handle.
trentlarson reviewed 2025-06-28 02:11:44 +00:00
@@ -158,0 +210,4 @@
// We're selecting a giver, so recipient is either a project or the current user
if (this.recipientEntityType === "project") {
recipient = {
did: this.recipientProjectHandleId,
Owner

A DID can only be a person's DID, not a project handleId.

A DID can only be a person's DID, not a project handleId.
trentlarson reviewed 2025-06-28 02:24:52 +00:00
@@ -1288,0 +1269,4 @@
`${this.name} gave to you`,
undefined,
undefined,
true,
Owner

Currently, the "open" method on that branch only contains 6 parameters, so there's something missing on that side or something extra on this side.

Currently, the "open" method on that branch only contains 6 parameters, so there's something missing on that side or something extra on this side.
trentlarson added 1 commit 2025-06-30 00:18:50 +00:00
Owner

Note that the ContactGiftingView.vue already contained a projectID.

  • If that is still useful, help refactor... maybe it's the same as a recipientProjectId and it should be renamed, or maybe it's different and we should add some commentary on when to use the different projectIds (eg. fromProjectId, toProjectId, giverProjectId, and even the handle IDs).

  • If that is not useful because it's been replaced, then let's refactor that way.

Feel free to take the time to make the code understandable, and make sure it all makes sense to you.

Note that the ContactGiftingView.vue already contained a projectID. * If that is still useful, help refactor... maybe it's the same as a recipientProjectId and it should be renamed, or maybe it's different and we should add some commentary on when to use the different projectIds (eg. fromProjectId, toProjectId, giverProjectId, and even the handle IDs). * If that is not useful because it's been replaced, then let's refactor that way. Feel free to take the time to make the code understandable, and make sure it all makes sense to you.
anomalist closed this pull request 2025-08-13 05:09:43 +00:00

Pull request closed

Sign in to join this conversation.
No Reviewers
No Label
2 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: trent_larson/crowd-funder-for-time-pwa#143