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 Alerts #47

Closed
4 tasks done
fabionl opened this issue Nov 28, 2021 · 0 comments
Closed
4 tasks done

List Alerts #47

fabionl opened this issue Nov 28, 2021 · 0 comments

Comments

@fabionl
Copy link
Collaborator

fabionl commented Nov 28, 2021

User Stories

As an Admin
I WANT TO see a list of alerts
SO I can View, Edit, Add, Delete, Active/Deactivate

Scenarios

  • Scenario: Information shown in list of Alerts

GIVEN I'm on a list of alerts
THEN I want to see information of each alert.

List of expected information:

  • Title
  • Content (concatenated)
  • Active
  • Available Actions

  • Scenario: Adding new Alerts

GIVEN I'm seeing list of alerts
WHEN I click on Add New Alert
THEN I want to see the new Alert form

List of expected fields:

  • Title
  • Content
  • Active

  • Scenario: Editing new Alerts

GIVEN I'm seeing list of alerts
WHEN I click on a alert's Edit action
THEN I want to see the edit Alert form


  • Scenario: Deleting Alerts

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

fabionl added a commit that referenced this issue Nov 28, 2021
fabionl added a commit that referenced this issue Nov 28, 2021
… old content to the new content. Also renames migrations to proper order them.
fabionl added a commit that referenced this issue Nov 28, 2021
* [#47] Installs Rails' ActiveText.

* [#47] Adds migrations to rename Alert old content and to copy Alert's old content to the new content. Also renames migrations to proper order them.

* [#47] Add ActiveText to Alert model with validation to avoid attachments.

* [#47] Implements Alerts CRUD routes, actions and views.
fabionl added a commit that referenced this issue Dec 5, 2021
…ion. Adds migration to remove old_content from Alerts database table.
fabionl added a commit that referenced this issue Dec 5, 2021
* [#47] Adds ability to rollback CopyOldContentToContentOnAlerts migration. Adds migration to remove old_content from Alerts database table.

* [#49] Adds migrations to move Notices content to use ActionText.

* [#49] Changes Notice model to use ActionText for its content.

* [#49] Adds routes for Notice CRUD actions.

* [#49] Customizes ActionText and Trix editor to enable text colour formatting and more heading options.

* [#49] Adds Notices link to the navbar.

* [#49] Implements Notices controller, actions, views and components.

* Updates ruby version to 2.7.5.
@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

1 participant