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

Client count config view #12422

Merged
merged 6 commits into from Aug 25, 2021
Merged

Client count config view #12422

merged 6 commits into from Aug 25, 2021

Conversation

arnav28
Copy link
Contributor

@arnav28 arnav28 commented Aug 24, 2021

  • Switched to toggle button from checkbox and updated the design
  • Switched to ember octane
  • Update ember concurrency dependency

Design: https://www.figma.com/file/UEAB2ep3JpAZI0zZe05l48/Vault-Client-Counts?node-id=952%3A25956

- Switched to toggle button from checkbox and updated the design
- Switched to ember octane
- Update ember concurrency dependency
@vercel vercel bot temporarily deployed to Preview – vault August 24, 2021 20:51 Inactive
@vercel vercel bot temporarily deployed to Preview – vault-storybook August 24, 2021 20:58 Inactive
@arnav28 arnav28 added the ui label Aug 24, 2021
@arnav28 arnav28 added this to the 1.9 milestone Aug 24, 2021
@arnav28
Copy link
Contributor Author

arnav28 commented Aug 24, 2021

Screen Shot 2021-08-24 at 2 17 09 PM

Screen Shot 2021-08-24 at 2 17 17 PM

modalTitle: computed('model.enabled', function() {
}

@computed('args.model.enabled')
Copy link
Contributor

Choose a reason for hiding this comment

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

I didn't know computed was a thing in octane?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

While the computed decorator is available in octane, I don't think its necessary in this case. I will remove it.

<div class="control">
<input
data-test-field
id={{attr.name}}
Copy link
Contributor

Choose a reason for hiding this comment

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

no chance there would be two of the same fields on the same page? e.g. two with the same attr.name?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Nope, should not happen.

data-test-field
id={{attr.name}}
disabled={{eq @model.enabled "Off"}}
readonly={{isReadOnly}}
Copy link
Contributor

Choose a reason for hiding this comment

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

is isReadOnly a local property (e.g. this.isReadOnly) or something passed in (e.g. @isReadOnly). With glimmer at least we should always see this or @ prefixing varaibles, unless their helpers. I think that's the standard, but correct me if I'm wrong.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

True. Good catch, in fact we don't need readonly attribute for these inputs.

const fields = document.querySelectorAll('[data-test-field] input');
assert.equal(fields.length, 3, 'renders 3 input fields');
const fields = document.querySelectorAll('[data-test-field]');
console.log(fields);
Copy link
Contributor

Choose a reason for hiding this comment

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

left over console.log

Copy link
Contributor

@Monkeychip Monkeychip left a comment

Choose a reason for hiding this comment

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

Small couple of comments, but all nits.
Nice work.

@vercel vercel bot temporarily deployed to Preview – vault August 25, 2021 17:37 Inactive
@arnav28 arnav28 merged commit a55713b into main Aug 25, 2021
jartek pushed a commit to jartek/vault that referenced this pull request Sep 11, 2021
* Client count config view

- Switched to toggle button from checkbox and updated the design
- Switched to ember octane
- Update ember concurrency dependency

* Fixed integration tests

* Added changelog

* Update switch label on toggle

* Code cleanup

* Fixed test
@arnav28 arnav28 deleted the ui/client-tracking-config branch June 15, 2022 18:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants