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

List of Facilities #6

Closed
4 tasks done
fabionl opened this issue Feb 6, 2021 · 1 comment
Closed
4 tasks done

List of Facilities #6

fabionl opened this issue Feb 6, 2021 · 1 comment

Comments

@fabionl
Copy link
Collaborator

fabionl commented Feb 6, 2021

User Stories

AS a Facility Admin
I WANT TO see a list of my facilities
SO I can View, Edit, Add, Delete

AS an Admin
I WANT TO see a list of all facilities
SO I can View, Edit, Delete, Approve/Disapprove Facilities.

Scenarios

  • Scenario: Information shown in list of Facilities

GIVEN I'm on a list of facilities
THEN I want to see an overview of each facility.

List of expected informations:

  • Facility Name
  • Last Updated
  • Services
  • Welcomes
  • Status (Pending Review / Live)
  • Available Actions'

  • Scenario: Adding new Facilities

GIVEN I'm seeing list of facilities
WHEN I click on Add New Facility
THEN I want to see the new Facility form
AND I should be the owner of the created facility.

List of expected fields:

  • Welcomes
  • Services
  • Address
  • Location in a Google Maps (Optional for v1.0)
  • Phone number
  • Website
  • Hours (With all seven days of week)
  • Notes

  • Scenario: Editting Facilities

GIVEN I have the right to edit a facility
WHEN I click on its Edit action
THEN a Edit Facility form similar to the new facility form


  • Scenario: Delete Facilities

GIVEN I have the right to delete a facility
WHEN I click on its Delete action
THEN I want the see a confirmation dialog
AND if I confirm, I want the facility to be removed of the list

@fabionl fabionl added this to the Admin Facilities milestone Feb 6, 2021
@JhonSidney
Copy link
Contributor

  • I'm working in Scenario: Information shown in list of Facilities

fabionl added a commit that referenced this issue Jul 11, 2021
fabionl added a commit that referenced this issue Jul 11, 2021
fabionl added a commit that referenced this issue Jul 11, 2021
fabionl added a commit that referenced this issue Jul 11, 2021
fabionl added a commit that referenced this issue Aug 29, 2021
fabionl added a commit that referenced this issue Sep 19, 2021
…acilitySchedule.update_schedule_availability method to update related columns based on current schedule data.
fabionl added a commit that referenced this issue Sep 19, 2021
…create and after_destroy hooks to properly update schedule availability.
fabionl added a commit that referenced this issue Oct 10, 2021
…nd to remove unneeded is_open? and is_closed? methods.
fabionl added a commit that referenced this issue Oct 17, 2021
…umns from Facilities database table, and add unique index on email column of Users database table.
fabionl added a commit that referenced this issue Oct 17, 2021
fabionl added a commit that referenced this issue Oct 17, 2021
fabionl added a commit that referenced this issue Oct 17, 2021
…lity. (#44)

* [#6] Adds inline_svg gem

* [#6] Adds icons for Facility' welcomes.

* Changes from turbolinks to turbo-rails and refactors javascript.

* [#6] Improves Facilities index and implements Facility Edit form.

* [#6] Refactors Facility form.

* [#6] Refactors Facility's Schedule and Service to their own models.

* [#6] Adds routes for facility_services.

* [#6] Introduces geo location related gems and LinkvanConfig and config/linkvan_config.yml

* [#6] Adds Facility show page.

* [#6] Adds ability to add and remove facility services.

* Updates ViewComponent gem

* [#6] Adds ability to edit Facility's services

* [#6] Adds a confirmation message before removing a service from the Facility.

* [#6] Adds facility_welcomes database table.

* [#6] Adds FacilityWelcome model and adds association to the Facility model.

* [#6] Refactors Facility show page to display FacilityWelcome and adds ability to turn welcomes on/off.

* Updates Rails and other dependencies.

* [#6] Adds unique index to week_day on facility_schedules db table.

* [#6] Fixes logic for FacilitySchedule.availability and scopes. Adds FacilitySchedule.update_schedule_availability method to update related columns based on current schedule data.

* linting.

* [#6] Renames time related methods of FacilityTimeSlot and adds after_create and after_destroy hooks to properly update schedule availability.

* [#6] Implements logic and unit tests to select overlapping FacilitiyTimeSlots.

* Disables rubocop's Layout/LineLength cop.

* [#6] Implements Facility Schedule and TimeSlot CRUD on Facility show page.

* [#6] Further cleanup and tweaks of facilities pages implementation.

* [#6] Adds routes for FacilitySchedule and FacilityTimeSlot CRUD.

* [#6] Changes Facility model to clean data before before_validation, and to remove unneeded is_open? and is_closed? methods.

* [#6] Implements update and destroy actions of Admin::FacilitiesController.

* Rubocop linting.

* [#6] Refactors Serializers to Services.

* [#6] Add migrations to Remove old schedule, welcomes and services columns from Facilities database table, and add unique index on email column of Users database table.

* [#6] Removes unneeded models.

* [#6] Updates ruby to version 2.7.4.

* Rubocop linting.

* Rubocop linting
fabionl added a commit that referenced this issue Nov 7, 2021
fabionl added a commit that referenced this issue Nov 7, 2021
fabionl added a commit that referenced this issue Nov 28, 2021
* [#7] Adds route to admin users, and link to admin user index to the layout.

* [#7] removes password_digest column from users table.

* [#7] Adds Admin users index and show pages.

* [#7] Removes to_csv method from User model.

* [#6] Fixes a crash on facility card component

* [#6] Removes unneeded columns from facilities. (r_pets, r_id, r_cart, r_phone, r_wifi, and *_note columns).

* [#7] Adds Vancouver and New Westminster zones to seeds.

* [#7] Implements fake_data:users and fake_data:facilities rake tasks to help populate development database.

* [#7] Implements ability to create, update and delete users.

* [#6] Fixes a crash on Facility validation when any of the clean_data columns has a nil value.

* [#7] Improves view components for Status of Users and Facilities.

* [#7] Refactors User form to shared partials.

* [#7] Implements ability to Reset Password of users.

* [#7] Implements website_url method on Facility model to handle website column content.

* [#7] Fixes a potential mass-assignment vulnerability as pointed by brakeman.
@fabionl fabionl closed this as completed Dec 6, 2021
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

No branches or pull requests

2 participants