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

Implement VersionControl feature #62

Merged
merged 6 commits into from
Feb 20, 2024
Merged

Conversation

pritam-bs
Copy link

@pritam-bs pritam-bs commented Feb 6, 2024

Provided NStackVersionControlWidget for the devs to show version control dialog
The devs can pass the onVersionUpdateNotification function to get the Update object and handle the update dialog themself.
Or, to display a default adaptive dialog, they can set the onVersionUpdateNotification function to null and configure the localization strings from the NStack console.

- Provided NStackVersionControlWidget for the user to show version control dialog
Copy link
Collaborator

@hassan-saleh-ml hassan-saleh-ml left a comment

Choose a reason for hiding this comment

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

I'm not sure about forcing the devs to use native views, I still think they should be customisable.

@BucekJiri @nivisi what do you guys think?

lib/models/update_view_request.dart Outdated Show resolved Hide resolved
…can customize the dialog.

- Refactor snake case to camel case.
Copy link
Contributor

@nivisi nivisi left a comment

Choose a reason for hiding this comment

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

General suggestion: we have to think about the interface that we expose to the end users. What widgets and data classes will be visible. We must reduce the amount unclarity / inconvenience we'll provide with our package.

This can be done separately, in a PR that would solely focus on this.

lib/models/update_view_request.dart Outdated Show resolved Hide resolved
lib/models/update.dart Outdated Show resolved Hide resolved
example/lib/main.dart Show resolved Hide resolved
lib/sdk/version_control/nstack_version_control.dart Outdated Show resolved Hide resolved
lib/sdk/version_control/nstack_version_control.dart Outdated Show resolved Hide resolved
lib/templates/nstack_template.txt Outdated Show resolved Hide resolved
lib/templates/nstack_template.txt Outdated Show resolved Hide resolved
example/lib/nstack.dart Outdated Show resolved Hide resolved
- Restrict the use of the default dialog
- Refactor variable name to follow the flutter convention
@pritam-bs pritam-bs requested a review from nivisi February 14, 2024 11:50
lib/templates/nstack_template.txt Outdated Show resolved Hide resolved
lib/templates/nstack_template.txt Outdated Show resolved Hide resolved
Copy link
Contributor

@nivisi nivisi left a comment

Choose a reason for hiding this comment

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

Looks fine to me.

@pritam-bs pritam-bs merged commit da4c618 into develop Feb 20, 2024
1 check passed
@pritam-bs pritam-bs deleted the feature/version_control branch February 20, 2024 10: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.

4 participants