Commit 117e1a4c7448c523f1b0e9ef70a4c17005f57379
1 parent
4b42e10af8
Exists in
master
Added 'configure account notifications
Showing 2 changed files with 36 additions and 6 deletions Side-by-side Diff
Makefile
View file @
117e1a4
1 | -PNGS = built/use_cases_diagram.png built/schema_diagram.png built/schema_graph.png built/review_notification.png built/configure_account_notifications.png | |
1 | +PNGS = built/use_cases_diagram.png built/schema_diagram.png built/schema_graph.png | |
2 | 2 | PDFS = built/DesignUseCases.pdf built/screen_sequence_diagram.pdf |
3 | -SCREEN_SEQUENCE_PNGS = built/add_class.png built/drop_class.png built/push_flashcard.png built/fix_flashcard.png built/study_deck.png built/user_login_out.png built/section_limit_access.png | |
3 | +SCREEN_SEQUENCE_DOTS = $(wildcard screen_sequence_diagrams/*.dot) | |
4 | +$(info $(SCREEN_SEQUENCE_DOTS)) | |
5 | +SCREEN_SEQUENCE_PNGS = $(patsubst screen_sequence_diagrams/%,built/%,$(patsubst %.dot,%.png,$(SCREEN_SEQUENCE_DOTS))) | |
6 | +$(info $(SCREEN_SEQUENCE_PNGS)) | |
4 | 7 | |
5 | 8 | all: built/ $(PNGS) $(PDFS) |
6 | 9 | |
7 | 10 | |
... | ... | @@ -14,9 +17,11 @@ |
14 | 17 | sqlt-graph -o built/schema_graph.png --from PostgreSQL db_schema.sql |
15 | 18 | |
16 | 19 | built/%.png: %.dot |
20 | + mkdir -p built | |
17 | 21 | dot -Tpng -o $@ $< |
18 | 22 | |
19 | 23 | built/%.png: screen_sequence_diagrams/%.dot |
24 | + mkdir -p built | |
20 | 25 | dot -Tpng -o $@ $< |
21 | 26 | |
22 | 27 | built/screen_sequence_diagram.pdf: $(SCREEN_SEQUENCE_PNGS) |
... | ... | @@ -25,10 +30,11 @@ |
25 | 30 | built/%.pdf: %.tex |
26 | 31 | cd built/; pdflatex ../$< |
27 | 32 | cd built/; pdflatex ../$< |
28 | - rm built/*.aux | |
29 | - rm built/*.log | |
30 | - rm built/*.out | |
31 | - rm built/*.toc | |
33 | + rm -f built/*.aux | |
34 | + rm -f built/*.log | |
35 | + rm -f built/*.out | |
36 | + rm -f built/*.toc | |
37 | + | |
32 | 38 | |
33 | 39 | clean: |
34 | 40 | rm -rf built/ |
screen_sequence_diagrams/configure_account_notifications.dot
View file @
117e1a4
1 | +digraph G{ | |
2 | + ratio=0.75; | |
3 | + //rankdir="LR"; | |
4 | + labelloc="t"; | |
5 | + label="[R3] Configure Account Notifications" | |
6 | + node[shape=box, style="rounded,filled,bold"]; | |
7 | + splines=ortho; | |
8 | + nodesep=1.0; | |
9 | + "View Deck"[center=true, fillcolor="#aaaaff", style=filled,pos="0,0!"]; | |
10 | + "Account Settings" -> "PATCH /api/me/settings"; | |
11 | + "PATCH /api/me/settings" -> "views.update_settings"; | |
12 | + "views.update_settings" -> "New settings valid?"; | |
13 | + "New settings valid?" -> Yes; | |
14 | + "New settings valid?" -> No; | |
15 | + No -> "Account Settings"; | |
16 | + Yes -> "Save settings"; | |
17 | + "Save settings" -> "Account Settings"; | |
18 | + "Yes"[shape=none,style=none]; | |
19 | + "No"[shape=none,style=none]; | |
20 | + "PATCH /api/me/settings"[shape=none,style=none]; | |
21 | + labelfloat=true; | |
22 | + lp=100; | |
23 | + "views.update_settings"[center=true, fillcolor="#aaaaff", style=filled, shape = diamond, fixedsize=true, width=2.0, height=2.0]; | |
24 | +} |