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

[Feature Request]: Implement the functionality to add new or edit existing bus schedule. #94

Closed
Pratik2026 opened this issue Jun 20, 2024 · 2 comments · Fixed by #96
Closed
Assignees
Labels
backend Issue related to backend BSoC'24 enhancement New feature or request frontend Issue related to frontend

Comments

@Pratik2026
Copy link
Collaborator

Is your feature request related to a problem? Please describe.

As of now, the schedule page is completely hardcoded and the admin does not have any way to add or edit the bus schedule.

Describe the solution you'd like

The following task is required to be completed to make the schedule page functional:

  • Implement the modal to add and edit the bus schedule data according to the design which will open when the admin clicks on either the add new button or queueCard(dashed border one).
  • Replace the see more text with edit text in both BusCards and ConductorCards, clicking on which same modal should be open but with existing data written in the fields.
  • The admin must be able to add or update the bus schedule using that modal.
  • On adding/updating the bus schedule, the schedule page should be rerendered to reflect the recent changes.

Describe alternatives you've considered

No response

Developer Help

  • Here's the Figma Design Link for reference.
  • In order to view the admin page as an "Admin" role, you can make a slight change in "frontend/src/store/ authstore.tsx" file:
    At line 25 :
    setUser: user => set({ user: { ...user, role: 'admin', } }),
@Pratik2026 Pratik2026 added enhancement New feature or request frontend Issue related to frontend backend Issue related to backend BSoC'24 labels Jun 20, 2024
@Om-Thorat
Copy link
Contributor

Hello, I would like to work in this, I will create and style the frontend using Mui components to change ths schedule and update it in the db I'll use the already present schedule model in prisma and make necessary changes to the bus.controller.ts to alter the schedule. I'll make sure the page is responsive and the data is updated correctly and in accordance to everywhere else where the model is used.

@Pratik2026
Copy link
Collaborator Author

@Om-Thorat , sure, you can start working on it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backend Issue related to backend BSoC'24 enhancement New feature or request frontend Issue related to frontend
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants