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

Enhance Sorting Feature in table.ts: Allow Sorting by Assignment Name, Given Date, and Due Date #1

Open
SwayamBadhe opened this issue Oct 9, 2023 · 0 comments
Labels
good first issue Good for newcomers

Comments

@SwayamBadhe
Copy link

SwayamBadhe commented Oct 9, 2023

Description:

Currently, our web application features a sorting function that allows users to sort table entries by subject. While this is a valuable feature, we aim to enhance user experience by expanding the sorting functionality. The goal is to enable users to sort table entries by multiple criteria, including assignment name, given date, and due date.

Task:

  1. Modify the existing sorting functionality in the table.ts file to include sorting options for assignment name, given date, and due date.

  2. Implement user-friendly sorting controls, such as buttons or dropdown menus, to allow users to select their desired sorting criteria.

  3. Ensure that the sorting function is responsive and accurately sorts table entries based on the selected criteria.

  4. Test the sorting feature thoroughly to ensure it functions correctly.

Example Code (for reference):

// Existing sorting function in table.ts
const sortBySubject = () => {
  formDataArray.sort((a, b) => {
    return a.subject.localeCompare(b.subject);
  });
  updateLocalStorageAndTable();
};

// Add similar functions for sorting by assignment name, given date, and due date
const sortByAssignmentName = () => {
  // Implement sorting logic here
  // ...
  updateLocalStorageAndTable();
};

// Repeat the process for sorting by given date and due date
// ...

Skills Required: TypeScript, Javascript, HTML, Frontend Development

Expected Outcome:

Users should be able to sort table entries by assignment name, given date, and due date using user-friendly sorting controls.

Getting Started:

  1. Fork this repository.

  2. Clone the forked repository to your local machine.

  3. Create a new branch for this issue using the format: feature/enhance-sorting.

  4. Implement the changes as described above.

  5. Push your changes to your forked repository.

  6. Create a pull request to merge your changes into the main repository.

Notes:

This enhancement will make our web application more versatile and user-friendly.
If you have any questions or need assistance, feel free to reach out.
Your contribution to enhancing the sorting feature will greatly benefit our users and improve the overall usability of our web application. Thank you for taking on this task!

@SwayamBadhe SwayamBadhe added the good first issue Good for newcomers label Oct 9, 2023
@SwayamBadhe SwayamBadhe changed the title Enhance Sorting Feature: Allow Sorting by Assignment Name, Given Date, and Due Date Enhance Sorting Feature in table.ts: Allow Sorting by Assignment Name, Given Date, and Due Date Oct 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant