Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
455 commits
Select commit Hold shift + click to select a range
c794513
Reapply "test(contact): add comprehensive tests for contact message C…
swapdewalkar Nov 12, 2025
5c705a7
feat(contact): add ContactMessageFactory for test data generation
swapdewalkar Nov 12, 2025
0797c1b
fix(tests): correct order of contact message names in list response test
swapdewalkar Nov 12, 2025
b1ad3d4
fix(tests): correct method name from 'setup' to 'setUp' in ContactTests
swapdewalkar Nov 12, 2025
b8d7be9
feat(newsletter): initialize newsletter app with models, admin, and v…
swapdewalkar Nov 12, 2025
ac23834
add to installed app, migrations and remove duplicate field
swapdewalkar Nov 12, 2025
7fb9b3a
SCRUM-35 - save stripe payment id to database and retreive status
sageliteoff Nov 12, 2025
1c767d7
Merge pull request #107 from TuringGpt/contact_tests
michaelos443 Nov 13, 2025
ed86c4d
Merge pull request #108 from TuringGpt/newletter
michaelos443 Nov 13, 2025
7587f45
SCRUM-35 - update the CreateOrderViewTests to validate the shipping, …
sageliteoff Nov 12, 2025
256c6c8
feat(checkout): added create order integration (#106)
ahmadJT Nov 13, 2025
77b31e0
feat(brands): add brands page with grid layout and navigation (#109)
shehryar-turing Nov 13, 2025
dfab4f4
feat(products): add brand filtering support (#110)
shehryar-turing Nov 13, 2025
baf7152
feat(theme): add theme store with light/dark mode support (#111)
shehryar-turing Nov 13, 2025
a79de8c
feat(theme): add createAppTheme function for dynamic theme mode (#112)
shehryar-turing Nov 13, 2025
3b369db
Merge pull request #120 from TuringGpt/SCRUM-35_create_order_test_cas…
michaelos443 Nov 13, 2025
495c240
feat(theme): integrate theme store with MUI ThemeProvider (#113)
shehryar-turing Nov 13, 2025
8ac23ac
feat(theme): add theme toggle component to header (#114)
shehryar-turing Nov 13, 2025
fb140c8
added newsletter changes
swapdewalkar Nov 13, 2025
a69d2c7
ADDED BASE CLASS
swapdewalkar Nov 13, 2025
2494213
added import
swapdewalkar Nov 13, 2025
2267fe7
added urls
swapdewalkar Nov 13, 2025
a7d40bc
ADDED other apis
swapdewalkar Nov 13, 2025
3491992
added ipk
swapdewalkar Nov 13, 2025
5a3e2e0
update from int to uuid
swapdewalkar Nov 13, 2025
89cabd8
removed delete
swapdewalkar Nov 13, 2025
c0a119e
SCRUM-35 - fix implementation issues
sageliteoff Nov 12, 2025
21bc9e5
SCRUM-35 - remove misleading comment
sageliteoff Nov 14, 2025
dfa57c1
Merge pull request #122 from TuringGpt/newsletter_2
michaelos443 Nov 14, 2025
a16c008
SCRUM-30 - implement wishlist model
sageliteoff Nov 14, 2025
6261e8f
Merge pull request #119 from TuringGpt/SCRUM-35_strip_session_id
michaelos443 Nov 14, 2025
e124212
Merge pull request #126 from TuringGpt/SCRUM-30_product_whistlist
michaelos443 Nov 14, 2025
2bd3e26
Merge pull request #123 from TuringGpt/newsletter_3
michaelos443 Nov 14, 2025
ef83027
Merge pull request #96 from TuringGpt/scrum_37_4_test_merchant_orders
michaelos443 Nov 14, 2025
ed88b19
added get all orders to the order store
arkmadj Nov 14, 2025
c1e2a5b
Revert "added get all orders to the order store"
arkmadj Nov 14, 2025
b527608
test for newletter
swapdewalkar Nov 16, 2025
a48dc57
fix as per comments
swapdewalkar Nov 16, 2025
92da2a5
fixed comments
swapdewalkar Nov 16, 2025
a602688
fixed as per comments
swapdewalkar Nov 16, 2025
b1a0982
initated ticket app
swapdewalkar Nov 16, 2025
c603ef1
fixed
swapdewalkar Nov 16, 2025
0fe1b2a
fix as per category.
swapdewalkar Nov 16, 2025
4a6768f
added model changes
swapdewalkar Nov 16, 2025
1ad55a4
added in support tickets
swapdewalkar Nov 16, 2025
4f4ebfd
added imports
swapdewalkar Nov 16, 2025
6729fbc
added urls
swapdewalkar Nov 16, 2025
04113d4
added setting, urls and migrations
swapdewalkar Nov 16, 2025
a60d500
feat(theme): add system preference detection and sync (#115)
shehryar-turing Nov 17, 2025
be2b212
feat(theme): add dark mode core color palette (#116)
shehryar-turing Nov 17, 2025
d1c2314
feat(order): added order details page (#121)
ahmadJT Nov 17, 2025
86da0c7
feat(theme): add dark mode semantic colors and dividers (#117)
shehryar-turing Nov 17, 2025
618f8f3
feat(theme): add dark mode brand colors for sidebar, header, footer (…
shehryar-turing Nov 17, 2025
77e588e
feat(checkout): added order confirmation modal (#124)
ahmadJT Nov 17, 2025
3ba7f5f
Merge pull request #135 from TuringGpt/tickets
michaelos443 Nov 17, 2025
ea3a919
feat: SCRUM-31 - create merchant details table and register to admin …
sageliteoff Nov 17, 2025
8acd55d
Merge pull request #137 from TuringGpt/SCRUM-31_merchant_details
michaelos443 Nov 17, 2025
602b8b8
feat(client): add error boundary for graceful error handling (#125)
shehryar-turing Nov 17, 2025
541a998
feat(ui): add base skeleton loading components (#127)
shehryar-turing Nov 17, 2025
fbdd60d
feat(order): add get all orders to the order store (#130)
ahmadJT Nov 17, 2025
48aa243
added orders table (#131)
ahmadJT Nov 17, 2025
42eaf24
added orders links (#132)
ahmadJT Nov 17, 2025
18d05b2
SCRUM-30 - add signal that auto create MerchantDetail when user role …
sageliteoff Nov 17, 2025
67a2843
SCRUM-30 - implement endpoint for product wish list
sageliteoff Nov 17, 2025
5bf2625
SCRUM-30 - fix issues
sageliteoff Nov 18, 2025
084bbcc
SCRUM -30 - remove misleading comment
sageliteoff Nov 18, 2025
9891b24
added factory
swapdewalkar Nov 18, 2025
b2066a4
added in tests and update facker to factory
swapdewalkar Nov 18, 2025
bd5725f
Merge pull request #136 from TuringGpt/SCRUM-30_product-wishlist_get_…
michaelos443 Nov 18, 2025
2f70a8b
Merge pull request #139 from TuringGpt/SCRUM-30_merchant_details_signal
michaelos443 Nov 18, 2025
d2c2372
feat(ui): integrate skeleton loading in product pages (#128)
shehryar-turing Nov 18, 2025
a9e6136
added internationalization configuration (#138)
ahmadJT Nov 18, 2025
2462f48
feat(ui): integrate skeleton loading in profile page (#129)
shehryar-turing Nov 18, 2025
0310eb6
feat(theme): add smooth circular reveal animation for theme transitio…
shehryar-turing Nov 18, 2025
3e1352a
feat(ui): implement smooth sidebar animation and enable mobile access…
shehryar-turing Nov 18, 2025
b34b137
replaced faker with sequence
swapdewalkar Nov 18, 2025
14d6392
add serializers
swapdewalkar Nov 18, 2025
7b23409
added missing feilds
swapdewalkar Nov 18, 2025
8277bf5
updated security issues
swapdewalkar Nov 18, 2025
b150500
replace with all instead of every fields.
swapdewalkar Nov 18, 2025
e67fc98
removed all
swapdewalkar Nov 18, 2025
a655b2f
added id
swapdewalkar Nov 18, 2025
f04830b
Merge pull request #142 from TuringGpt/newsletter_test_factory
michaelos443 Nov 18, 2025
e41b77a
SCRUM-30 - implement test cases for add to wish list endpont
sageliteoff Nov 18, 2025
d76b2cc
SCRUM-30 - fix test issues and improve the implementation of the add …
sageliteoff Nov 18, 2025
52cd4f8
fixed tests
swapdewalkar Nov 19, 2025
8caf020
Merge pull request #143 from TuringGpt/tickets_2
michaelos443 Nov 19, 2025
2525549
Merge pull request #145 from TuringGpt/SCRUM-30_wishlist_add_test_case
michaelos443 Nov 19, 2025
ecbb37d
Merge pull request #134 from TuringGpt/newsletter_tests
michaelos443 Nov 19, 2025
4513d47
SCRUM-30 - add test case for removing from wishlist
sageliteoff Nov 18, 2025
fb7329d
added translation files (#144)
ahmadJT Nov 19, 2025
0941f63
feat(wishlist): add type definitions and API endpoints config (#147)
shehryar-turing Nov 19, 2025
fab45d2
feat(wishlist): implement wishlist API service (#148)
shehryar-turing Nov 19, 2025
3a828e9
feat(wishlist): add Zustand store for state management (#149)
shehryar-turing Nov 19, 2025
450455a
feat(wishlist): integrate wishlist page with store and API (#150)
shehryar-turing Nov 19, 2025
18e070b
Merge pull request #146 from TuringGpt/SCRUM-30_remove_from_whistlist…
michaelos443 Nov 19, 2025
12a543d
refactor(wishlist): remove deprecated wishlist methods from userServi…
shehryar-turing Nov 19, 2025
119f745
added views for ticket comments
swapnil-turing Nov 19, 2025
f8fcf2e
class_serializer to serializer_class
swapnil-turing Nov 19, 2025
8f6c7a9
added imports
swapnil-turing Nov 19, 2025
f8f01be
added Views base class
swapnil-turing Nov 19, 2025
ba82561
added permissions
swapnil-turing Nov 19, 2025
1f3c713
added ticket
swapnil-turing Nov 19, 2025
6009e74
handle 404
swapnil-turing Nov 19, 2025
eb8261f
added ticker in create comment
swapnil-turing Nov 19, 2025
3a7b742
feat: adds the language switcher component and the useTranslation hoo…
ahmadJT Nov 19, 2025
53311f4
remove render
swapnil-turing Nov 19, 2025
574faea
Merge pull request #156 from TuringGpt/tickets_views
michaelos443 Nov 19, 2025
fa608d4
SCRUM-91 - add service for querying featured products
sageliteoff Nov 19, 2025
86e144b
SCRUM-35 - update the payment callback to accept get request
sageliteoff Nov 19, 2025
c122d41
SCRUM-91 - expose featured endpoint
sageliteoff Nov 20, 2025
40505a8
Merge pull request #158 from TuringGpt/SCRUM-35_payment_callback_fix
michaelos443 Nov 20, 2025
6006692
Merge pull request #159 from TuringGpt/SCRUM-91_featured_products
michaelos443 Nov 20, 2025
9845364
added urls
swapnil-turing Nov 20, 2025
ca3bc03
update comment_pk
swapnil-turing Nov 20, 2025
5201a1e
added ticket
swapnil-turing Nov 20, 2025
663afdd
added factory
swapnil-turing Nov 20, 2025
7d9260d
added user factory import
swapnil-turing Nov 20, 2025
9793731
SCRUM-91 - implement the recommend_products_for_user service function
sageliteoff Nov 20, 2025
8c4c0f1
SCRUM-35 - implement checkout confirmation page
sageliteoff Nov 20, 2025
58da8d9
Add unit tests for ticket creation functionality
swapnil-turing Nov 21, 2025
7d96702
Merge pull request #161 from TuringGpt/ticket-urls
michaelos443 Nov 21, 2025
d6eb9df
Merge pull request #162 from TuringGpt/ticket_factory
michaelos443 Nov 21, 2025
d581997
Merge branch 'augment' of github.com:TuringGpt/Augment-Whisper-Slackb…
swapnil-turing Nov 21, 2025
0c74dc6
Refactor ticket URLs to include namespace and update test case inheri…
swapnil-turing Nov 21, 2025
5019b75
Refactor import statements in ticket tests for consistency
swapnil-turing Nov 21, 2025
d77ef12
added accounts.users
swapnil-turing Nov 21, 2025
b0a93d1
Add tests for listing, retrieving, and updating tickets
swapnil-turing Nov 21, 2025
0ec26db
SCRUM-91 - fix bot issues
sageliteoff Nov 21, 2025
1fb3fdb
Merge pull request #169 from TuringGpt/tickets_1
michaelos443 Nov 21, 2025
869066c
feat(wishlist): add addToWishlist method to wishlistService (#152)
shehryar-turing Nov 21, 2025
806fccb
feat: added internationalization documentation (#157)
ahmadJT Nov 21, 2025
7080d0f
feat(PromotionBanner): added internationalization for the promotion b…
ahmadJT Nov 21, 2025
0b7f490
feat(wishlist): add addToWishlist action to wishlistStore (#153)
shehryar-turing Nov 21, 2025
4ad8320
Merge pull request #163 from TuringGpt/SCRUM-91_recommended_products
michaelos443 Nov 21, 2025
f0414d7
Merge pull request #164 from TuringGpt/SCRUM-35_checkout_confirmation…
michaelos443 Nov 21, 2025
0f12afc
feat(wishlist): add AddToWishlistButton component and integrate with …
shehryar-turing Nov 21, 2025
6215960
feat(wishlist): add addToWishlist and removeFromWishlist methods to w…
shehryar-turing Nov 21, 2025
1f58e83
feat(wishlist): add addToWishlist and removeFromWishlist actions to w…
shehryar-turing Nov 21, 2025
34ede24
feat(wishlist): add toggle wishlist button component and integrate wi…
shehryar-turing Nov 21, 2025
a6b2be7
feat(wishlist): enhance wishlist page with empty state and product gr…
shehryar-turing Nov 21, 2025
74d935b
Refactor ticket test assertions to use direct ID references
swapnil-turing Nov 21, 2025
358a9db
fixed tests
swapnil-turing Nov 23, 2025
2f10fe5
Fix ticket test assertions to use string ID references for assignee a…
swapnil-turing Nov 23, 2025
0058b83
SCRUM-35 - add test cases for payment confirmation
sageliteoff Nov 24, 2025
9c52c4f
revert changes
swapdewalkar Nov 24, 2025
e9da005
test
swapdewalkar Nov 24, 2025
d76adbc
Revert "test"
swapdewalkar Nov 24, 2025
beeb0e9
Merge pull request #170 from TuringGpt/tickets_test_2
michaelos443 Nov 24, 2025
8627172
feat: added Stripe payment integration (#171)
ahmadJT Nov 24, 2025
f27f247
feat(Header): added internationalization to the app header (#172)
ahmadJT Nov 24, 2025
7a8970e
feat(product-details): implement pinch-to-zoom for mobile product ima…
shehryar-turing Nov 24, 2025
abe95cc
feat(wishlist): add wishlist page UI with i18n support and enhanced c…
shehryar-turing Nov 24, 2025
859e798
SCRUM-40 - implement notification model
sageliteoff Nov 24, 2025
163db32
SCRUM-40 - create migrations and fix typo
sageliteoff Nov 24, 2025
5c9d031
SCRUM-100 - setup base cache service
sageliteoff Nov 24, 2025
9425644
add feilds
swapdewalkar Nov 25, 2025
0fc1759
added fix
swapdewalkar Nov 25, 2025
accc8fd
added translation to the featured products section (#180)
ahmadJT Nov 25, 2025
2a5f070
feat(footer): adds translation to the footer (#181)
ahmadJT Nov 25, 2025
1bd4c7f
feat(support): add ticket types and API integration (#174)
shehryar-turing Nov 25, 2025
398773d
feat(support): add ticket list page with filtering (#175)
shehryar-turing Nov 25, 2025
c78927e
feat(support): add create ticket form (#176)
shehryar-turing Nov 25, 2025
81a087a
Merge pull request #182 from TuringGpt/SCRUM-40-notification_model
michaelos443 Nov 25, 2025
6019fb5
Merge pull request #184 from TuringGpt/ticket_fields
michaelos443 Nov 25, 2025
5314232
Merge pull request #179 from TuringGpt/SCRUM-35-payment-confirmation
michaelos443 Nov 25, 2025
b26813d
feat(tests): add tests for adding, listing, deleting comments and tic…
swapnil-turing Nov 25, 2025
6c1aa34
feat(tickets): update URL names for comment listing and add delete ro…
swapnil-turing Nov 25, 2025
de6553c
fix(tests): update comment-related URL names and assertions in ticket…
swapnil-turing Nov 25, 2025
7014f12
fix(serializers): set 'ticket' field as read-only in CommentCreateSer…
swapnil-turing Nov 25, 2025
f0ffca0
feat(support): add ticket detail page with comments (#177)
shehryar-turing Nov 25, 2025
6f5d22f
feat(support): add support navigation links (#178)
shehryar-turing Nov 25, 2025
337d470
feat(comments): add CommentDeleteView for deleting comments
swapnil-turing Nov 25, 2025
e3f87e6
feat(dashboard): initialize dashboard app with basic structure and files
swapnil-turing Nov 25, 2025
a4cf201
feat(settings): add dashboard app to installed apps
swapnil-turing Nov 25, 2025
0afd835
SCRUM-49 - implement notification listing endpoint
sageliteoff Nov 26, 2025
96b5e72
SCRUM-100 - use sha1 for safe hash for backend-agnostic cache keys
sageliteoff Nov 25, 2025
ec1312c
Merge pull request #186 from TuringGpt/scrum_47_dashboard
michaelos443 Nov 26, 2025
db60a34
Merge pull request #183 from TuringGpt/SCRUM-100_setup_base_cache_ser…
michaelos443 Nov 26, 2025
3cb40c1
feat(OrderSummary): added translations to the order summary (#188)
ahmadJT Nov 26, 2025
9ccab1c
feat(header): add tooltips to header icons and navigation items (#190)
shehryar-turing Nov 26, 2025
206a8ae
feat(CartDrawer): added translations to the cart drawer (#187)
ahmadJT Nov 26, 2025
08e7de5
feat(header): consolidate settings into unified menu (#191)
shehryar-turing Nov 26, 2025
c650441
Merge pull request #185 from TuringGpt/ticket_test_5
michaelos443 Nov 26, 2025
d61e6bb
added models and migration
swapdewalkar Nov 26, 2025
e0a0cc6
updated models.py
swapdewalkar Nov 26, 2025
6435ae0
added serializer
swapdewalkar Nov 26, 2025
7799846
Revert "added serializer"
swapdewalkar Nov 26, 2025
017ce47
added created_at
swapdewalkar Nov 26, 2025
8da5e2c
added migration
swapdewalkar Nov 26, 2025
c79d022
update migration
swapdewalkar Nov 26, 2025
b0591b3
updated docstring
swapdewalkar Nov 26, 2025
8e822cf
added serilizers
swapdewalkar Nov 26, 2025
4c4d472
fixed serializer
swapdewalkar Nov 26, 2025
fa5fb80
remove product import
swapdewalkar Nov 26, 2025
67bfb82
add fix for uuid and null
swapdewalkar Nov 26, 2025
8cd7f4b
feat(ContactUs): added contact page translations (#194)
ahmadJT Nov 26, 2025
6eeed64
feat(CheckoutPage): add translations for the contact information form…
ahmadJT Nov 26, 2025
c2fe985
SCRUM-100 - implement product brand caching
sageliteoff Nov 26, 2025
aa22495
SCRUM-111 - update the product generation command to support featured…
sageliteoff Nov 26, 2025
88cb434
Merge pull request #192 from TuringGpt/dashbord_scrum-47-2
michaelos443 Nov 27, 2025
e39152b
Merge pull request #189 from TuringGpt/SCRUM-49_notification_list
michaelos443 Nov 27, 2025
6a27858
added translations for the billing address and shipping address forms
arkmadj Nov 27, 2025
5ce2e38
Revert "added translations for the billing address and shipping addre…
arkmadj Nov 27, 2025
9ca5071
SCRUM-100 - product brand caching fixes
sageliteoff Nov 26, 2025
b53a042
SCRUM-100 -m implement the fix the REDIS_SERVER_URL key
sageliteoff Nov 27, 2025
10be974
SCRUM-100 - add waiting for redis and postgres before migrations
sageliteoff Nov 27, 2025
709ca7c
Merge pull request #204 from TuringGpt/dashaboard_Scrum_47_5
swapnil-turing Nov 27, 2025
9fa7a98
added views
swapdewalkar Nov 27, 2025
248b332
SCRUM-100 - remove the redis wait step
sageliteoff Nov 27, 2025
4e4fad3
fix augment bot comments
swapdewalkar Nov 27, 2025
56f4466
fix comments
swapdewalkar Nov 27, 2025
9623a3f
Merge pull request #203 from TuringGpt/SCRUM-111_featured_products_sc…
michaelos443 Nov 27, 2025
dd45f6e
Merge pull request #202 from TuringGpt/SCRUM-100_product_brand_caching
michaelos443 Nov 27, 2025
b29e187
added translations for the billing address and shipping address forms…
ahmadJT Nov 27, 2025
82a33f4
feat(ui): improve product card image display and spacing (#197)
shehryar-turing Nov 27, 2025
3c0ac36
feat(i18n): add translations for recommended products section (#199)
shehryar-turing Nov 27, 2025
58c5e20
feat(api): integrate featured products API endpoint (#198)
shehryar-turing Nov 27, 2025
1e70816
feat(ui): add RecommendedProducts component to product detail page (#…
shehryar-turing Nov 27, 2025
71a1882
feat(api): add recommended products API integration (#200)
shehryar-turing Nov 27, 2025
d779eba
factory add
swapdewalkar Nov 27, 2025
0d245be
fix factory dashboard
swapdewalkar Nov 27, 2025
53bee09
add signals
swapdewalkar Nov 27, 2025
718566d
fix comments
swapdewalkar Nov 27, 2025
8ec37a1
added translations for the side bar (#207)
ahmadJT Nov 27, 2025
1c02553
Merge pull request #205 from TuringGpt/scrum_47_dashboard_1
michaelos443 Nov 27, 2025
96b93cd
Merge pull request #208 from TuringGpt/dashboard_factory_scrum_47
michaelos443 Nov 27, 2025
d5f8d2c
add signnals
swapdewalkar Nov 27, 2025
b1ddc86
Merge pull request #210 from TuringGpt/scrum_47_dashboard_1
swapnil-turing Nov 27, 2025
e24d44e
add tests
swapdewalkar Nov 27, 2025
9806b21
making it smaller
swapdewalkar Nov 27, 2025
cfa6fd6
fixed comments
swapdewalkar Nov 27, 2025
50f1f5a
Merge pull request #209 from TuringGpt/dashboard_signals_scrum_47
michaelos443 Nov 28, 2025
820e361
Merge branch 'augment' of t.github.com:TuringGpt/Augment-Whisper-Slac…
swapdewalkar Nov 28, 2025
ca7b19d
updated test
swapdewalkar Nov 28, 2025
cb46243
update url
swapdewalkar Nov 28, 2025
35cb182
update namespace
swapdewalkar Nov 28, 2025
9b0bcad
SCRUM-42 - update notification endpoint
sageliteoff Nov 28, 2025
9cf87af
feat(notifications): add API service and type definitions (#212)
shehryar-turing Nov 28, 2025
d0c2ee2
feat(notifications): add Zustand store for state management (#213)
shehryar-turing Nov 28, 2025
0b1abc8
feat(notifications): add notification bell component and header integ…
shehryar-turing Nov 28, 2025
ce9d644
SCRUM-117 - make orderitem depend on product directly
sageliteoff Nov 28, 2025
a4bbd63
SCRUM-42 - remove unused imports
sageliteoff Nov 28, 2025
f56fcca
feat(notifications): add notifications page with pagination (#215)
shehryar-turing Nov 28, 2025
b2f8ee1
feat(notifications): add internationalization support (#216)
shehryar-turing Nov 28, 2025
1958df1
Merge pull request #211 from TuringGpt/dashboard--tests-scrum-47
michaelos443 Nov 28, 2025
2476016
SCRUM-117 - fixes
sageliteoff Nov 28, 2025
1689843
Merge pull request #217 from TuringGpt/SCRUM-42_notification_as_read
michaelos443 Nov 28, 2025
4771906
Merge pull request #218 from TuringGpt/SRUM-117_orderitem_reimplement…
michaelos443 Nov 28, 2025
b84411d
SCRUM-42 - implement delete endpoint for notfications
sageliteoff Dec 1, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
114 changes: 114 additions & 0 deletions .github/workflows/test-server.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,114 @@
name: Test Server Application

on:
push:
branches: [main, augment, develop]
paths:
- 'augment-store/server/**'
- '.github/workflows/test-server.yml'
pull_request:
branches: [main, augment, develop]
paths:
- 'augment-store/server/**'

jobs:
test:
runs-on: ubuntu-latest

env:
DEBUG: 'False'
SECRET_KEY: 'test-secret-key-for-ci'

DATABASE_URL: 'postgresql://postgres:postgres@localhost:5432/test_db'
DATABASE_NAME: 'test_db'
DATABASE_USER: 'postgres'
DATABASE_PASSWORD: 'postgres'
DATABASE_HOST: 'localhost'
DATABASE_PORT: '5432'

REDIS_SERVER_URL: 'redis://localhost:6379/0'

FILE_UPLOAD_STORAGE: 'local'
AWS_ACCESS_KEY_ID: 'test-access-key'
AWS_SECRET_ACCESS_KEY: 'test-secret-key'
AWS_STORAGE_BUCKET_NAME: 'test-bucket'
AWS_S3_REGION_NAME: 'us-east-1'
AWS_S3_CUSTOM_DOMAIN: 'test-domain.s3.amazonaws.com'

STRIPE_PUBLISHABLE_KEY: "public-key-here"
STRIPE_SECRET_KEY: "secret-key-here"

services:
postgres:
image: postgres:15
env:
POSTGRES_DB: test_db
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
ports:
- 5432:5432

redis:
image: redis:7
ports:
- 6379:6379
options: >-
--health-cmd "redis-cli ping || exit 1"
--health-interval 5s
--health-timeout 3s
--health-retries 5

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.11'
cache: 'pip'
cache-dependency-path: 'augment-store/server/requirements.txt'

- name: Install dependencies
working-directory: augment-store/server
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt

- name: Wait for PostgreSQL
run: |
until pg_isready -h localhost -p 5432; do
echo 'Waiting for PostgreSQL...'
sleep 1
done

- name: Run migrations
working-directory: augment-store/server
run: |
python manage.py migrate

- name: Run tests
working-directory: augment-store/server
run: |
python manage.py test --verbosity=2

- name: Generate coverage report
working-directory: augment-store/server
run: |
pip install coverage
coverage run --source='.' manage.py test
coverage report
coverage xml

- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
with:
files: ./augment-store/server/coverage.xml
flags: server
name: server-coverage
fail_ci_if_error: false
47 changes: 47 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
# Node modules
augment-store/client/node_modules/
node_modules/

# Uploaded media files (images, etc.)
augment-store/server/augment-store/*.jpg
augment-store/server/augment-store/*.jpeg
augment-store/server/augment-store/*.png
augment-store/server/augment-store/*.gif
augment-store/server/augment-store/*.webp

# Python
__pycache__/
*.py[cod]
*$py.class
*.so
.Python
*.egg-info/
dist/
build/

# Django
*.log
db.sqlite3
db.sqlite3-journal
/media/
/static/

# Development/testing scripts
augment-store/server/generate_dummy_product.py

# Environment variables
.env
.env.local
.env.*.local

# IDE
.vscode/
.idea/
*.swp
*.swo
*~

# OS
.DS_Store
**/.DS_Store
Thumbs.db
Loading
Loading