Skip to content

Code Review of recent commits in related fork by SYudin July 22 2020 #14

@tony-shannon

Description

@tony-shannon

Review of recent commits for PR here, from

https://github.com/yudin-s/PT-WC-on-Qewd-v1/commits/PTcollab

Key issues/questions/comments/feedback;

Components

https://github.com/yudin-s/PT-WC-on-Qewd-v1/tree/PTcollab/www/components

/pt-wq new components - assembly x 1, components x 7 , 1 external x 1
? is this a good idea, could should we be offering to refactor the core adminUI components?

I understand that ptwq root (replacing admin-root) is for
-handling routing and context management- but why do it this way?
I understand that ptwq-sidebar-nav-item.js is for
-handling role based access control to application headings etc - but it this solid enough

need view from Rob on this

/adminui-custom/components
admin crud custom
is this a good idea ? is being reused by events, vitals, patients, but do we need to specialise in a different way?
eg crud + charts, crud + calender, crud + map

Application pages

https://github.com/yudin-s/PT-WC-on-Qewd-v1/tree/PTcollab/www/pt-wc-q/js

/extended - for events, vitals, patients, reusing new admin-crud-custom,
these all require better documentation & consideration of refactoring as per above
eg crud + charts (vitals), crud + calender (events) etc

/utils - for utilities but we need better rationale for why these are needed
eg cSchemaLookUp, is this needed? to do what?
clientstorage & context manager- again why use this utility approach as opposed to others already present in wc-admin and qewd?

/pages subfolder - page seems empty? where is patient summary view handled?

other js files here need
-bit of clearout eg blankpage - should help with page loading
-consistent naming eg diagnosis page or diagnosis page? (remove state in names for now)
-fullCalendar List - seems a null file? or needs better documenting
-conferenceJS- need to consider how this is used in more detail- (ideally calendar/events set up conference meetings and can launch from there)

Styling & other coding issues

issue noted with use of app.js

root.sidebarTarget.classList.remove('sidebar-dark');
root.sidebarTarget.classList.add('d-none');

seems like wrong place to do it

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions