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

Adds read only sidebar/context menu for triggering edit #107

Merged
merged 1 commit into from
Oct 23, 2019

Conversation

luketlancaster
Copy link
Contributor

  • Add the Clubhouse Story ID: [ch21123]

@@ -48,7 +48,7 @@ const LayoutView = View.extend({
</div>
</div>
<div class="flex-region list-page__list">
<table><tr>
<table class="w-100 js-list-header"><tr>
Copy link
Contributor Author

Choose a reason for hiding this comment

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

does this need the fixWidth stuff that the patient list has? Now that it has this header row?

Copy link
Member

Choose a reason for hiding this comment

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

is definitely doesn't need the .js- hook unless it's used in the js. I'm surprised it needs the w-100 I thought table were 100% by default.. maybe it's a firefox thing?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It's 100% a firefox thing
Screen Shot 2019-10-23 at 2 25 20 PM

Screen Shot 2019-10-23 at 2 25 16 PM

that being said, we have the w-100 on the patient list, so I'll just leave this one too

Copy link
Member

Choose a reason for hiding this comment

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

yep so w-100 👍 js-list-header 👎

class: 'program-sidebar__edit',
text: i18n.menuOptions.edit,
},
]);
Copy link
Contributor Author

Choose a reason for hiding this comment

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

left this more complex in the event that we do the delete at some point

@codecov
Copy link

codecov bot commented Oct 23, 2019

Codecov Report

Merging #107 into develop will increase coverage by 12.2%.
The diff coverage is 83.33%.

Impacted file tree graph

@@             Coverage Diff             @@
##           develop     #107      +/-   ##
===========================================
+ Coverage    85.55%   97.75%   +12.2%     
===========================================
  Files           94       94              
  Lines         1592     1603      +11     
===========================================
+ Hits          1362     1567     +205     
+ Misses         230       36     -194
Impacted Files Coverage Δ
src/js/views/admin/list/programs-all_views.js 100% <ø> (ø) ⬆️
...ws/admin/programs/program/sidebar/sidebar-views.js 100% <100%> (ø) ⬆️
src/js/apps/admin/programs/program/program_app.js 83.33% <75%> (-16.67%) ⬇️
src/js/base/jsonapi-mixin.js 89.28% <0%> (+3.57%) ⬆️
src/js/apps/patients/patient/patient_app.js 100% <0%> (+4%) ⬆️
src/js/base/entity-service.js 100% <0%> (+4.16%) ⬆️
src/js/views/patients/actions/actions_views.js 100% <0%> (+8.1%) ⬆️
src/js/apps/globals/nav_app.js 100% <0%> (+9.09%) ⬆️
src/js/views/globals/root_views.js 93.89% <0%> (+9.92%) ⬆️
src/js/entities-service/entities/events.js 100% <0%> (+10%) ⬆️
... and 20 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 0541407...73e3ae1. Read the comment docs.

@cypress
Copy link

cypress bot commented Oct 23, 2019



Test summary

53 0 0 0


Run details

Project RoundingWell Care Ops Frontend
Status Passed
Commit 73e3ae1
Started Oct 23, 2019 7:40 PM
Ended Oct 23, 2019 7:41 PM
Duration 00:57 💡
OS Linux Debian - 9.6
Browser Electron 61

View run in Cypress Dashboard ➡️


This comment has been generated by cypress-bot as a result of this project's GitHub integration settings. You can manage this integration in this project's settings in the Cypress Dashboard

const sidebarView = new SidebarView({ model: this.program });

this.listenTo(sidebarView, {
edit: this.onEdit,
Copy link
Member

Choose a reason for hiding this comment

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

edit should be in quotes because it's an event

@@ -48,7 +48,7 @@ const LayoutView = View.extend({
</div>
</div>
<div class="flex-region list-page__list">
<table><tr>
<table class="w-100 js-list-header"><tr>
Copy link
Member

Choose a reason for hiding this comment

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

is definitely doesn't need the .js- hook unless it's used in the js. I'm surprised it needs the w-100 I thought table were 100% by default.. maybe it's a firefox thing?

<div class="program-sidebar__heading">{{ @intl.admin.sidebar.program.state }}</div>
<div class="program-sidebar__item programs-sidebar__published{{#if published}} is-published{{/if}}">
{{#if published}}{{fas "toggle-on"}}{{else}}{{far "toggle-off"}}{{/if}}
{{formatMessage (intlGet "admin.list.programsAllViews.itemView.published") published=published}}
Copy link
Member

Choose a reason for hiding this comment

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

admin.programs.program.sidebar.sidebarLayoutTemplate.published

{{/if}}
<h1 class="program-sidebar__name">{{ name }}</h1>
<div class="program-sidebar__heading">{{ @intl.admin.sidebar.program.description }}</div>
<div class="program-sidebar__item {{#unless details}}is-empty{{/unless}}">{{#if details}}{{ details }}{{else}}{{ @intl.admin.sidebar.program.noDetails }}{{/if}}</div>
Copy link
Member

Choose a reason for hiding this comment

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

admin.programs.program.sidebar.sidebarLayoutTemplate.noDetails

@luketlancaster luketlancaster force-pushed the feature/ch21123-program-page-sidebar branch from 1b0224c to c302504 Compare October 23, 2019 19:37
@luketlancaster luketlancaster force-pushed the feature/ch21123-program-page-sidebar branch from c302504 to 73e3ae1 Compare October 23, 2019 19:37
@paulfalgout paulfalgout merged commit bf0423b into develop Oct 23, 2019
@paulfalgout paulfalgout deleted the feature/ch21123-program-page-sidebar branch October 23, 2019 19:42
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.

2 participants