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

Widget Locking #78

Merged
merged 33 commits into from
Apr 12, 2024
Merged

Widget Locking #78

merged 33 commits into from
Apr 12, 2024

Conversation

cpresler
Copy link
Contributor

@cpresler cpresler commented Mar 21, 2024

Description

Added the ability to lock the widget to the properties menu. Locking causes everything that is normally editable by click to be display only and transforms the add button into a lock icon to indicate the widgets locked status outside of the property menu - lock icon does not have a click action.

Fixes #48, dependent on #77

Type of Change

  • New feature (non-breaking change which adds functionality)

How Has This Been Tested?

Verified that all editable elements are unaccessible while widget is locked, and return to being editable once widget is unlocked.

… update changelog state directly. add updateOtherStates for setting all other logs to editing=false when clicking edit on a changelog
…lements were not pulling in the temp version of the data
…closes the editing state for any other widget
@cpresler cpresler requested a review from ryansrofe March 21, 2024 20:19
@ryansrofe
Copy link
Collaborator

another great companion feature to the manual editing. Looks nice, feels nice, simple, works like a charm. Only one tweak and one question.

Instead of the padlock icon in prop menu can we use text to be consistent. Lock should be fine?

When locked, should we consider hiding the + action similar to other UI? My concern is around changing the context of the icon.

Copy link
Collaborator

@ryansrofe ryansrofe left a comment

Choose a reason for hiding this comment

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

just two small changes and gtg

widget-src/components/header/MetaValue.tsx Outdated Show resolved Hide resolved
widget-src/components/header/Meta.tsx Outdated Show resolved Hide resolved
@ryansrofe ryansrofe self-requested a review April 12, 2024 23:03
@cpresler cpresler merged commit 170a149 into main Apr 12, 2024
1 check passed
@cpresler cpresler deleted the fl48-lock branch April 12, 2024 23:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants