-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #53 from doxa-tech/v2/cards-validity
Add a (information) validity attribute to cards
- Loading branch information
Showing
12 changed files
with
79 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<div data-controller="popup"> | ||
<div class="standard-popup active" data-popup-target="content"> | ||
<div class="content"> | ||
|
||
<p>Merci d'avoir confirmé ton groupe. Aucune autre action de ta part n'est nécessaire.</p> | ||
|
||
<div class="buttons"> | ||
<button class="cancel" type="button" data-action="popup#close">Fermer</button> | ||
</div> | ||
</div> | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<div data-controller="popup"> | ||
<div class="standard-popup active" data-popup-target="content"> | ||
<div class="content"> | ||
|
||
<p>Merci de vérifier (et mettre à jour si nécessaire) les informations de ton groupe.</p> | ||
<p>Quand tu as fini, clique sur le bouton <b>"Sauvegarder et mettre à jour"</b>, même si tu n'a fait aucun changement.</p> | ||
|
||
<div class="buttons"> | ||
<button class="cancel" type="button" data-action="popup#close">Fermer</button> | ||
</div> | ||
</div> | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
class AddValidityToCards < ActiveRecord::Migration[6.0] | ||
def change | ||
add_column :cards, :validity, :integer, default: 0 | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
Feature: Confirm the validity of a card | ||
|
||
So that my card is not disabled | ||
as the owner | ||
I want to update the card | ||
|
||
Background: | ||
Given I am a confirmed user | ||
And I am signed in | ||
|
||
Scenario: The card is up-to-date | ||
Given I have a complete card | ||
When I visit the card's update page | ||
Then I should not see "Merci de vérifier" | ||
|
||
Scenario: The owner received a request to confirm the card | ||
Given I have a card that must be confirmed | ||
When I visit the card's update page | ||
Then I should see "Merci de vérifier" | ||
|
||
Scenario: I update an card after a request | ||
Given I have a card that must be confirmed | ||
When I visit the card's update page | ||
And I click the button "Sauvegarder et mettre à jour" | ||
Then I should see "Merci d'avoir confirmé ton groupe" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters