Light Mode

Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Create Route based employee page #39

Open
Open
Create Route based employee page#39
Assignees
Milestone

Description

This is a fairly big feature. But similar work has been done in Task page.
This task consist of multiple parts.

  1. Publication/subscription
    In order for the frontend to receive data about "Team Member", "Managers" or "Subordinates" or even "All Employees" as the same data structure, server side need to publish them first. Then the frontend can subscribe to the selected one in the employee list page. Refer to "imports/api/task.js" on how to publish the data. Subscription will be explained in a later section.

  2. Routing
    In order to have the same component to be used with different data, and at the same time, the data change can cause a rerender. We use special routes for tasks page. The same should be done for employee. Create an employee route just like the task route at "imports/ui/routes/TaskListRoute.jsx". Then add the route to "imports/ui/routes/index.jsx" with a path like "employeelist".

  3. Mimic the way tasklist/item is handled. Have a structure like employeeList, employeeItem, employeeDetail, employessMasterDetailView. The master detail view will be the container for both the list and the detail, and it's also where the subscription happens.

  4. How to test it out
    Mimic the way the configuration of task tab in nav bar is setup. Employee tab should also have it's own configuration and click handler.

Metadata

Metadata

Assignees

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions