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

Support edit in Quick Edit Model #987

Merged
merged 7 commits into from
Jul 7, 2022
Merged

Conversation

qtomlinson
Copy link
Collaborator

@qtomlinson qtomlinson commented Jun 16, 2022

Added ui support to allow edit in Quick Edit Model.
Also added buttons in PageBrowse (main page) to allow contribution after edit.

Task: #956

-add handleSaveEdit
-display the changes correctly with original values in tool tip

Task: clearlydefined#956
-SourceLocationPicker is the presentation UI
-SourcePicker is the container, containing the state and on change handlers
SourceLocationPicker
-sync activeProvider with props to handle display of non github source location
-add an internal state of selected component. No need to pass in selected
component from props (to simplify the interface with containers).

Integrate SourceLocationPicker in QuickEditModel
-also adjust styling so SourceLocationPicker looks ok inside QuickEditModel
-support saving source location edit
To allow contribution from the main page after editting.
@netlify
Copy link

netlify bot commented Jun 16, 2022

Deploy Preview for blissful-goodall-fa23f6 ready!

Name Link
🔨 Latest commit 5fbaadc
🔍 Latest deploy log https://app.netlify.com/sites/blissful-goodall-fa23f6/deploys/62b0fb296a021100088d4aa1
😎 Deploy Preview https://deploy-preview-987--blissful-goodall-fa23f6.netlify.app/
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

Moved source-picker id tag to inside SourceLocationPicker
The container padding related css is moved outside the #source-picker block.
@qtomlinson
Copy link
Collaborator Author

Quick Edit Model integrated with SpdxPicker and SourceLocationPicker
image

@qtomlinson
Copy link
Collaborator Author

qtomlinson commented Jun 16, 2022

After edit in workspace page
image

@qtomlinson
Copy link
Collaborator Author

It is noted that there are three ways to edit a component currently:

  1. edit in the detail definition page (FullDetailPage)
  2. edit in the main page (PageBrowse)
  3. edit in workspace page (PageDefinition)
    Changes made in one page is not visible in the other pages: for example, changes made in PageBrowse are not displayed in FullDetailPage or PageDefinition. This is because the ui changes made in different pages are stored in different places of the redux store. A central location for changes might worth considering if changes made in one place are to be reflected in all pages.

In addition, behaviour after edit at the three places look different as well. In workspace page (PageDefinition), components are refreshed after contributions; whereas refresh does not happen after contribution in PageBrowse or FullDetailPage. This can be another future topic to look into.

@qtomlinson qtomlinson marked this pull request as ready for review June 16, 2022 22:15
@qtomlinson
Copy link
Collaborator Author

@disulliv @mpcen ready for review.

@qtomlinson
Copy link
Collaborator Author

Screenshot for after edit in main page (PageBrowse). Contribute button is available for curation.
image

@qtomlinson qtomlinson requested a review from disulliv June 29, 2022 15:33
@qtomlinson
Copy link
Collaborator Author

@disulliv any more improvements needed?

@mpcen
Copy link
Member

mpcen commented Jul 6, 2022 via email

Copy link
Contributor

@disulliv disulliv left a comment

Choose a reason for hiding this comment

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

Looks good to me!

@disulliv disulliv merged commit f829328 into clearlydefined:master Jul 7, 2022
@qtomlinson qtomlinson deleted the qt/wip2 branch July 12, 2022 22:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants