Skip to content

Commit

Permalink
Merge fitbit-challenges in (#14)
Browse files Browse the repository at this point in the history
- Initial commit
- Init skeleton (#1)
- Frontend actually runs now (#2)
- Set up new frontend (#3)
- Set up a demo GraphQL query and component (#5)
- Support HTTPS in production (#6)
- Add script to reload prod containers (#7)
- Oops, actually pull from the branch (#8)
- When port is specified in CORS origin, correctly append it (#9)
- In reload-prod, layer prod edits on top of defaults (#10)
- Add typescript! (#13)
- Add placeholder for our first challenge's view: Workweek Hustle (#14)
- Don't export pg by default, and define defaultTheme (#15)
- Add types for Leaderboard, ProgressBar (#16)
- In CI, enforce linting & formatting via pre-commit (#29)
- Add test for example data (#30)
- Factor fixtures out to separate file (#31)
- Delete App.css and generate it instead (#32)
- Split compose file out into dev overrides (#33)
- Update README with development setup (#34)
- Add bin/test to run tests once, and update docs (#36)
- Replace tsx imports, by configuring TypeScript correctly (#38)
- Update README to make pre-commit step nicer (#37)
- Enable a few pre-commit hooks, and make eslint hook work again (#39)
- Remove pre-commit workflow, now that we've signed up for pre-commit.ci
(#40)
- In React test, set up mock for query, and key items (#41)
- Test for UserLeaderboardListingEntry (#42)
- Remove JS components (#43)
- Create backend model, GraphQL query, mutation for Workweek Hustle
challenge (#28)
- In prod, read from correct env vars, and reload migration container
(#44)
- Frontend shows information for a single Workweek Hustle challenge
(#45)
- Backend model for user activity logs (#47)
- Fix time-converting to handle singular units (#48)
- In Workweek Hustle frontend, query & show users' total progress (#49)
- Add challenge tests (#50)
- Add mutation to create user activities (#51)
- Add mutation to update user activity logs (#52)
- In WorkweekHustle, select only the maximum activity for each day, for
each user (#53)
- Workweek Hustle shows users' incremental progress logs (#54)
- Ensure that we compare against the right prior activity (#55)
- Use strict equality to fix an eslint warning (#56)
- Workweek Hustle frontend supports user activity log creation (#57)
- Fix eslint equality warning (#58)
- Tweak how some bits display for mobile-friendliness (#59)
- Workweek Hustle frontend supports user activity log modification (#61)
- Workweek Hustle challenge finishes (#62)
- [pre-commit.ci] pre-commit autoupdate (#60)
- Set up challenges main listing (#63)
- Update favicon, title, logo images (#64)
- In Workweek Hustle, always last exactly five days (#65)
- After Workweek Hustle is sealed, don't show edit button (#66)
- In challenges listing, use JS links to challenge (#67)
- Update dark-mode styles (#68)
- Add a button to create workweek hustle challenges (#69)
- Only show form once the challenge has started (#70)
- Ensure that container scrolls correctly (#71)
- Fix form submission, and correctly retrieve activities taking place
from the start day of the challenge (#72)
- Use date_trunc to correctly compute activities (#73)
- Tweak styles a bit (#74)
- Add some tests for FormButton (#75)
- In user activity log, denote when the user is recording additional
steps (#76)
- Remove test GraphQL query (#81)
- [pre-commit.ci] pre-commit autoupdate (#77)
- In frontend, add production Dockerfile with optimized build (#82)
- Build tailwind stuff before running optimized build (#83)
- [pre-commit.ci] pre-commit autoupdate (#90)
- In frontend, support weekend warrior challenges (though we can't
actually use it yet) (#91)
- Rename workweek hustles to challenges and make it polymorphic; support
weekend warriors in frontend (#92)
- Frontend supports creation of workweek hustle & weekend warrior
challenges (#93)
- Create endpoint to receive fitbit subscription notifications (#94)
- Respond to fitbit subscription notification with 204, not 200 (#95)
- Set FLASK_DEBUG instead of FLASK_ENV (#96)
- Show fitbit login button (#97)
- Create a user model to store authenticated user information, and an
endpoint to perform fitbit key exchange (#98)
- Pass correct client secret, and use correct table (#99)
- Fitbit authorization redirects to a landing page, and we show
logged-in username (#100)
- When user is trying to re-auth with Fitbit, re-use the same code
verifier (#101)
- In fitbit auth flow, fetch and set user's display name (#102)
- Show logged-in user's display name, not their fitbit user ID (#103)
- When user authenticates on Fitbit, create subscription (#104)
- Restructure code under src/LANG (#105)
- Create worker directory, and move requirements & mypy.ini out into
python dir (#106)
- In worker, sync fitbit data for users (#107)
- In worker, if new record exactly matches user's prior record, don't
log a new one (#111)
- Slightly simplify the token-refresh code (#112)
- In worker, do some minor cleanup (#113)
- In worker, don't update already-processed rows (#114)
- In worker, correctly compare distances (#115)
- In challenges, fetch and show fitbit user display names (#116)
- In create-challenge frontend, support selection of users (#117)
- If subscription ID is already taken, set it (#118)
- In ChallengeView test, correctly pass along users (#119)
- When user is logged in, don't show user select in activity form (#120)
- Refactor fitbit API calls into fitbit client (#121)
- In worker, correctly fetch daily activity summary (#123)
- Add FitbitClient unit tests (#124)
- Hide confetti for a specific user (#132)
- [pre-commit.ci] pre-commit autoupdate (#131)
- In step challenges, batch together updates up to 1k steps (#142)
- Actually use batched data updates! (#143)
- Modernize SQLAlchemy models (#144)
- Add unit tests for FitbitClient methods (#145)
- Add models for subscription, and use them (#149)
- Make timestamps in challenges table timezone-aware (#150)
- Convert all tz-naive timestamps to tzaware (#151)
- Ignore migrations folder for mypy (#152)
- In worker, use orm methods (#154)
- In worker, lock latest notification and return it (#155)
- Add BingoCard model and migration to create table (#157)
- Create database model for bingo tile (#158)
- In BingoCard, return tiles in coordinate order (#159)
- Add methods to compute all flipped/unflipped tiles, and total cost of
all tiles (#161)
- Add method to flip a bingo tile (#160)
- In User GraphQL type, expose fields showing what challenges the user
is participating in (#162)
- In Challenge.users, fix callsite (#163)
- In frontend, show active and past challenges (#164)
- Add script to copy a snapshot of production data into development db
(#166)
- In GraphQL API, expose user's last synced-at time (#167)
- Add method to return activities within range (#169)
- In BingoCard model, support creation for a user and challenge (#170)
- [pre-commit.ci] pre-commit autoupdate (#168)
- Add house, sailboat bingo patterns (#171)
- Disable worker in development (#172)
- Support creation of bingo cards in the GraphQL API (#173)
- In frontend, support creating bingo challenges (#181)
- Frontend displays user's bingo card and resources (#182)
- In challenge creation form, set date correctly (#183)
- Remove h-screen from container, to prevent scrolling behavior (#184)
- Fix linting error (#185)
- Fix fuzz factors (#186)
- Pick slightly nicer colors for bingo tiles (#187)
- Support flipping tiles (#188)
- Show tile amounts post-flip (#189)
- Only enforce tile amounts if tile is unflipped (#190)
- Show leaderboard in bingo challenge (#191)
- Correctly sort leaderboard by flipped victory tiles, latest flip time
(#193)
- View others' bingo cards (#194)
- Correctly compute bingo totals (#195)
- Bingo challenge should show finishing screen (#196)
- When a tile is flipped, don't enable flip hook at all (#201)
- In Bingo challenge, style for mobile (#202)
- Sort placements properly (#203)
- Show a victory pattern under the top-line bingo card (#204)
- Select a pattern for the challenge (#205)
- In bingo challenge, when challenge is ended, display appropriate text
and disable tile-flipping (#207)
- In Bingo, when computing totals, window end should be the latest
activity date (#208)
- Fix query (#209)
- Add tests for BingoTile.flip (#210)
- In challenge listing, show different text if challenge is yet to start
(#211)
- Don't multiple-count unused amounts (#212)
- Add method to expose number of required tiles in a pattern (#213)
- In bingo card total computation, ensure that victory pattern requires
typical amounts from the participant (#215)
- [pre-commit.ci] pre-commit autoupdate (#218)
- Create a join table for challenge memberships (#219)
- Add migration to delete old_users field (#220)
- Add unit tests for several User methods, and convert them to use join
ORM fields (#221)
- Add Challenges link to topbar (#222)
- In Bingo challenge, show typical challenge header (#223)
- In challenges listing, show a slightly more-useful compact listing
(#224)
- Fix some linting errors (#225)
- Create dependabot.yml (#226)
- Bump @headlessui/react from 1.7.14 to 1.7.15 in
/src/javascript/frontend (#227)
- Bump @apollo/client from 3.7.10 to 3.7.17 in /src/javascript/frontend
(#228)
- Bump @types/react from 18.0.35 to 18.2.14 in /src/javascript/frontend
(#230)
- Bump @tsconfig/create-react-app from 1.0.3 to 2.0.0 in
/src/javascript/frontend (#229)
- Bump tough-cookie from 4.1.2 to 4.1.3 in /src/javascript/frontend
(#232)
- Bump @testing-library/react from 13.4.0 to 14.0.0 in
/src/javascript/frontend (#231)
- Bump plotly.js-basic-dist from 2.20.0 to 2.24.3 in
/src/javascript/frontend (#233)
- Bump @testing-library/user-event from 13.5.0 to 14.4.3 in
/src/javascript/frontend (#235)
- Bump @heroicons/react from 2.0.17 to 2.0.18 in
/src/javascript/frontend (#234)
- Bump @types/lodash from 4.14.194 to 4.14.195 in
/src/javascript/frontend (#237)
- Bump @types/node from 18.15.11 to 20.4.1 in /src/javascript/frontend
(#236)
- Bump web-vitals from 2.1.4 to 3.3.2 in /src/javascript/frontend (#238)
- Bump react-router-dom from 6.10.0 to 6.14.1 in
/src/javascript/frontend (#240)
- Bump tailwindcss from 3.3.1 to 3.3.2 in /src/javascript/frontend
(#242)
- Bump graphql from 16.6.0 to 16.7.1 in /src/javascript/frontend (#239)
- Let react-scripts float (#243)
- Bump typescript from 4.9.5 to 5.1.6 in /src/javascript/frontend (#241)
- Pull BingoCardPattern out into separate file (#244)
- In challenge listing, expose placements for current user (#245)
- Bump web-vitals from 3.3.2 to 3.4.0 in /src/javascript/frontend (#246)
- In challenge listing, make challenge cards a consistent grid size
(#247)
- [pre-commit.ci] pre-commit autoupdate (#248)
- Make flask session permanent and refresh once a year (#254)
- Bump semver from 6.3.0 to 6.3.1 in /src/javascript/frontend (#257)
- [pre-commit.ci] pre-commit autoupdate (#263)
- Bump @types/react from 18.2.14 to 18.2.15 in /src/javascript/frontend
(#262)
- Bump react-router-dom from 6.14.1 to 6.14.2 in
/src/javascript/frontend (#258)
- Bump @tsconfig/create-react-app from 2.0.0 to 2.0.1 in
/src/javascript/frontend (#259)
- Bump tailwindcss from 3.3.2 to 3.3.3 in /src/javascript/frontend
(#260)
- Bump word-wrap from 1.2.3 to 1.2.4 in /src/javascript/frontend (#264)
- Bump @types/node from 20.4.1 to 20.4.2 in /src/javascript/frontend
(#261)
- In bingo challenges, correctly compute seal-at date, and show correct
header (#265)
- In BingoChallenge, fetch seal date (#266)
- In BingoChallenge, compute average over past month of activity (#267)
- Add missing fields to test mock (#268)
- Bump @testing-library/jest-dom from 5.16.5 to 5.17.0 in
/src/javascript/frontend (#269)
- Bump @types/node from 20.4.2 to 20.4.4 in /src/javascript/frontend
(#270)
- When generating bingo card, assign bonus tiles (#271)
- In BingoCard.unused_amounts, factor in bingo tile bonuses (#272)
- [pre-commit.ci] pre-commit autoupdate (#278)
- Bump @types/node from 20.4.4 to 20.4.5 in /src/javascript/frontend
(#277)
- Bump @types/lodash from 4.14.195 to 4.14.196 in
/src/javascript/frontend (#275)
- Bump @headlessui/react from 1.7.15 to 1.7.16 in
/src/javascript/frontend (#274)
- Bump plotly.js-basic-dist from 2.24.3 to 2.25.0 in
/src/javascript/frontend (#273)
- Bump @types/react from 18.2.15 to 18.2.18 in /src/javascript/frontend
(#276)
- Bump plotly.js-basic-dist from 2.25.0 to 2.25.1 in
/src/javascript/frontend (#281)
- Bump @types/node from 20.4.5 to 20.4.8 in /src/javascript/frontend
(#280)
- Bump @apollo/client from 3.7.17 to 3.8.0 in /src/javascript/frontend
(#279)
- Bump @adobe/css-tools from 4.2.0 to 4.3.1 in /src/javascript/frontend
(#292)
- Bump @testing-library/jest-dom from 5.17.0 to 6.1.2 in
/src/javascript/frontend (#291)
- Bump @types/node from 20.4.8 to 20.5.7 in /src/javascript/frontend
(#290)
- [pre-commit.ci] pre-commit autoupdate (#287)
- Bump @apollo/client from 3.8.0 to 3.8.1 in /src/javascript/frontend
(#286)
- Bump react-router-dom from 6.14.2 to 6.15.0 in
/src/javascript/frontend (#285)
- Bump @types/lodash from 4.14.196 to 4.14.197 in
/src/javascript/frontend (#283)
- Bump @headlessui/react from 1.7.16 to 1.7.17 in
/src/javascript/frontend (#298)
- Bump plotly.js-basic-dist from 2.25.1 to 2.26.0 in
/src/javascript/frontend (#297)
- Bump @types/react from 18.2.18 to 18.2.21 in /src/javascript/frontend
(#296)
- Bump actions/checkout from 3 to 4 (#293)
- Bump @apollo/client from 3.8.1 to 3.8.3 in /src/javascript/frontend
(#299)
- Bump graphql from 16.7.1 to 16.8.0 in /src/javascript/frontend (#295)
- Add @types/jest to dev dependencies (#300)
- Bump @testing-library/jest-dom from 6.1.2 to 6.1.3 in
/src/javascript/frontend (#304)
- Bump @types/lodash from 4.14.197 to 4.14.198 in
/src/javascript/frontend (#303)
- Bump typescript from 5.1.6 to 5.2.2 in /src/javascript/frontend (#302)
- Bump @types/node from 20.5.7 to 20.6.0 in /src/javascript/frontend
(#301)
- [pre-commit.ci] pre-commit autoupdate (#305)
- Bump @types/node from 20.6.0 to 20.6.2 in /src/javascript/frontend
(#310)
- Bump @types/jest from 29.5.4 to 29.5.5 in /src/javascript/frontend
(#308)
- Bump react-router-dom from 6.15.0 to 6.16.0 in
/src/javascript/frontend (#306)
- Bump @testing-library/user-event from 14.4.3 to 14.5.1 in
/src/javascript/frontend (#307)
- Bump @types/react from 18.2.21 to 18.2.22 in /src/javascript/frontend
(#309)
- Bump graphql from 16.8.0 to 16.8.1 in /src/javascript/frontend (#311)
- Bump @apollo/client from 3.8.3 to 3.8.4 in /src/javascript/frontend
(#315)
- Bump plotly.js-basic-dist from 2.26.0 to 2.26.1 in
/src/javascript/frontend (#313)
- Bump @types/node from 20.6.2 to 20.7.0 in /src/javascript/frontend
(#314)
- Bump @types/lodash from 4.14.198 to 4.14.199 in
/src/javascript/frontend (#312)
- [pre-commit.ci] pre-commit autoupdate (#316)
- Bump @types/react from 18.2.22 to 18.2.24 in /src/javascript/frontend
(#317)
- Bump @types/node from 20.7.0 to 20.8.2 in /src/javascript/frontend
(#320)
- Bump web-vitals from 3.4.0 to 3.5.0 in /src/javascript/frontend (#319)
- [pre-commit.ci] pre-commit autoupdate (#325)
- Bump @apollo/client from 3.8.4 to 3.8.5 in /src/javascript/frontend
(#322)
- Bump plotly.js-basic-dist from 2.26.1 to 2.26.2 in
/src/javascript/frontend (#321)
- Bump @types/react from 18.2.24 to 18.2.27 in /src/javascript/frontend
(#324)
- Bump @types/node from 20.8.2 to 20.8.4 in /src/javascript/frontend
(#323)
- Bump graphql-server[flask] from 3.0.0b6 to 3.0.0b7 in /src/python
(#326)
- Bump @babel/traverse from 7.21.3 to 7.23.2 in /src/javascript/frontend
(#332)
- Bump react-router-dom from 6.16.0 to 6.17.0 in
/src/javascript/frontend (#331)
- Bump @apollo/client from 3.8.5 to 3.8.6 in /src/javascript/frontend
(#328)
- Bump @types/react from 18.2.27 to 18.2.28 in /src/javascript/frontend
(#327)
- Bump @types/node from 20.8.4 to 20.8.7 in /src/javascript/frontend
(#333)
- Bump @testing-library/jest-dom from 6.1.3 to 6.1.4 in
/src/javascript/frontend (#330)
- [pre-commit.ci] pre-commit autoupdate (#339)
- Bump actions/setup-node from 3 to 4 (#334)
- Bump plotly.js-basic-dist from 2.26.2 to 2.27.0 in
/src/javascript/frontend (#337)
- Bump @types/react from 18.2.28 to 18.2.31 in /src/javascript/frontend
(#336)
- Bump @types/jest from 29.5.5 to 29.5.6 in /src/javascript/frontend
(#335)
- Bump @types/lodash from 4.14.199 to 4.14.200 in
/src/javascript/frontend (#338)
- Bump postcss to ^8.4.31 (#340)
- Bump tailwindcss from 3.3.3 to 3.3.5 in /src/javascript/frontend
(#341)
- Bump @types/react from 18.2.31 to 18.2.33 in /src/javascript/frontend
(#342)
- Bump @types/node from 20.8.7 to 20.8.10 in /src/javascript/frontend
(#344)
- Support merge queue (#345)
- [pre-commit.ci] pre-commit autoupdate (#350)
- Bump react-router-dom from 6.17.0 to 6.18.0 in
/src/javascript/frontend (#346)
- Bump @apollo/client from 3.8.6 to 3.8.7 in /src/javascript/frontend
(#348)
- Bump @types/jest from 29.5.6 to 29.5.7 in /src/javascript/frontend
(#349)
- Bump @types/react from 18.2.33 to 18.2.36 in /src/javascript/frontend
(#347)
- Factor tests for BingoCardPattern out into separate file, and make
them more exhaustive (#351)
- Build and push API image (#352)
- Actually build & push images on main (#353)
- Only build prod dockerfile (#354)
- [pre-commit.ci] pre-commit autoupdate (#363)
- Bump plotly.js-basic-dist from 2.27.0 to 2.27.1 in
/src/javascript/frontend (#358)
- Bump @testing-library/react from 14.0.0 to 14.1.0 in
/src/javascript/frontend (#362)
- Bump @types/lodash from 4.14.200 to 4.14.201 in
/src/javascript/frontend (#361)
- Bump @types/node from 20.8.10 to 20.9.0 in /src/javascript/frontend
(#359)
- Bump @types/jest from 29.5.7 to 29.5.8 in /src/javascript/frontend
(#360)
- Use env files to store env vars, and deconflict API/frontend env vars
(#364)
- In production docker compose file, pull images (#365)
- Add Hi bingo pattern (#366)
- [pre-commit.ci] pre-commit autoupdate (#372)
- Bump typescript from 5.2.2 to 5.3.2 in /src/javascript/frontend (#367)
- Bump react-router-dom from 6.18.0 to 6.19.0 in
/src/javascript/frontend (#369)
- Bump @testing-library/react from 14.1.0 to 14.1.2 in
/src/javascript/frontend (#371)
- Bump @types/react from 18.2.36 to 18.2.38 in /src/javascript/frontend
(#374)
- Bump @types/node from 20.9.0 to 20.9.4 in /src/javascript/frontend
(#373)
- Bump react-router-dom from 6.19.0 to 6.20.0 in
/src/javascript/frontend (#375)
- Bump @types/node from 20.9.4 to 20.10.0 in /src/javascript/frontend
(#379)
- Bump @types/lodash from 4.14.201 to 4.14.202 in
/src/javascript/frontend (#378)
- Bump @types/react from 18.2.38 to 18.2.39 in /src/javascript/frontend
(#377)
- Bump @types/jest from 29.5.8 to 29.5.10 in /src/javascript/frontend
(#376)
- Bump @adobe/css-tools from 4.3.1 to 4.3.2 in /src/javascript/frontend
(#380)
- [pre-commit.ci] pre-commit autoupdate (#386)
- Bump @apollo/client from 3.8.7 to 3.8.8 in /src/javascript/frontend
(#381)
- Bump tailwindcss from 3.3.5 to 3.3.6 in /src/javascript/frontend
(#383)
- Bump react-router-dom from 6.20.0 to 6.20.1 in
/src/javascript/frontend (#384)
- Bump @testing-library/jest-dom from 6.1.4 to 6.1.5 in
/src/javascript/frontend (#382)
- Bump @types/react from 18.2.39 to 18.2.41 in /src/javascript/frontend
(#385)
- Bump actions/setup-python from 4 to 5 (#387)
- Bump typescript from 5.3.2 to 5.3.3 in /src/javascript/frontend (#391)
- Bump @types/react from 18.2.41 to 18.2.43 in /src/javascript/frontend
(#390)
- Bump @types/node from 20.10.0 to 20.10.4 in /src/javascript/frontend
(#389)
- Bump @types/jest from 29.5.10 to 29.5.11 in /src/javascript/frontend
(#388)
- [pre-commit.ci] pre-commit autoupdate (#397)
- Bump tailwindcss from 3.3.6 to 3.4.0 in /src/javascript/frontend
(#398)
- Bump react-router-dom from 6.20.1 to 6.21.1 in
/src/javascript/frontend (#399)
- Bump @heroicons/react from 2.0.18 to 2.1.1 in /src/javascript/frontend
(#393)
- Bump @types/node from 20.10.4 to 20.10.5 in /src/javascript/frontend
(#394)
- Bump @types/react from 18.2.43 to 18.2.45 in /src/javascript/frontend
(#392)
- [pre-commit.ci] pre-commit autoupdate (#400)
- [pre-commit.ci] pre-commit autoupdate (#406)
- Bump web-vitals from 3.5.0 to 3.5.1 in /src/javascript/frontend (#401)
- Bump @testing-library/user-event from 14.5.1 to 14.5.2 in
/src/javascript/frontend (#404)
- Bump @testing-library/jest-dom from 6.1.5 to 6.2.0 in
/src/javascript/frontend (#407)
- Bump @types/react from 18.2.45 to 18.2.47 in /src/javascript/frontend
(#408)
- Bump follow-redirects from 1.15.2 to 1.15.4 in
/src/javascript/frontend (#410)
- Bump @types/node from 20.10.5 to 20.10.8 in /src/javascript/frontend
(#411)
- [pre-commit.ci] pre-commit autoupdate (#417)
- Bump plotly.js-basic-dist from 2.27.1 to 2.29.1 in
/src/javascript/frontend (#424)
- Bump @apollo/client from 3.8.8 to 3.9.4 in /src/javascript/frontend
(#423)
- Bump react-router-dom from 6.21.1 to 6.22.0 in
/src/javascript/frontend (#422)
- Bump @tsconfig/create-react-app from 2.0.1 to 2.0.2 in
/src/javascript/frontend (#416)
- Bump react-canvas-confetti from 1.4.0 to 2.0.5 in
/src/javascript/frontend (#414)
- Bump @types/jest from 29.5.11 to 29.5.12 in /src/javascript/frontend
(#429)
- Bump @testing-library/react from 14.1.2 to 14.2.1 in
/src/javascript/frontend (#428)
- Bump @types/react from 18.2.47 to 18.2.56 in /src/javascript/frontend
(#425)
- Bump @apollo/client from 3.9.4 to 3.9.5 in /src/javascript/frontend
(#427)
- Bump tailwindcss from 3.4.0 to 3.4.1 in /src/javascript/frontend
(#426)
- Force delete
- Initial setup building API image
- Make worker build
- Make api, worker tests run
- Remove mypy conf
- Bring env vars in
- Define worker env vars
- Make empty BUILD.bazel files

---------

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
  • Loading branch information
3 people committed Feb 27, 2024
1 parent 1ef5a54 commit 608e423
Show file tree
Hide file tree
Showing 138 changed files with 32,173 additions and 403 deletions.
6 changes: 5 additions & 1 deletion .bazelignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,9 @@ bazel-testlogs
# Github
.github

# postgres mounts
# Production configuration.
docker-compose.prod.yaml

# Database data.
postgres-data
pg_dump.sql
4 changes: 4 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,7 @@ updates:
directory: "/src/python"
schedule:
interval: "weekly"
- package-ecosystem: "npm"
directory: "/src/javascript/fitbit-challenges/frontend"
schedule:
interval: "weekly"
16 changes: 16 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,3 +33,19 @@ repos:
rev: v1.8.0
hooks:
- id: mypy
additional_dependencies: [types-requests==2.31.0.20240218]
- repo: https://github.com/pre-commit/mirrors-eslint
rev: 'v9.0.0-beta.0'
hooks:
- id: eslint
files: \.[jt]sx?$ # *.js, *.jsx, *.ts and *.tsx
types: [file]
args: ["--fix"]
additional_dependencies:
- eslint@8.38.0
- eslint-config-standard@17.0.0
- eslint-plugin-import@2.27.5
- eslint-plugin-node@11.1.0
- eslint-plugin-promise@6.1.1
- eslint-plugin-react@7.32.2
- eslint-config-react-app
39 changes: 31 additions & 8 deletions MODULE.bazel
Original file line number Diff line number Diff line change
@@ -1,9 +1,27 @@
bazel_dep(name = "aspect_bazel_lib", version = "2.0.0-rc1")
bazel_dep(name = "bazel_skylib", version = "1.5.0")
bazel_dep(name = "aspect_rules_py", version = "0.4.0")
bazel_dep(name = "rules_python", version = "0.21.0")
bazel_dep(name = "rules_oci", version = "1.7.2")
bazel_dep(name = "platforms", version = "0.0.7")
bazel_dep(
name = "aspect_bazel_lib",
version = "2.0.0-rc1",
)
bazel_dep(
name = "bazel_skylib",
version = "1.5.0",
)
bazel_dep(
name = "aspect_rules_py",
version = "0.4.0",
)
bazel_dep(
name = "rules_python",
version = "0.21.0",
)
bazel_dep(
name = "rules_oci",
version = "1.7.2",
)
bazel_dep(
name = "platforms",
version = "0.0.7",
)

python = use_extension("@rules_python//python:extensions.bzl", "python")
python.toolchain(
Expand Down Expand Up @@ -35,11 +53,16 @@ oci.pull(
use_repo(oci, "ubuntu_image")
oci.pull(
name = "python3_image",
digest = "sha256:5c73034c2bc151596ee0f1335610735162ee2b148816710706afec4757ad5b1e",
image = "python",
platforms = [
"linux/arm64/v8",
"linux/386",
"linux/amd64",
"linux/arm/v5",
"linux/arm/v7",
"linux/arm64/v8",
"linux/ppc64le",
"linux/s390x",
],
tag = "3-slim",
)
use_repo(oci, "python3_image")
Loading

0 comments on commit 608e423

Please sign in to comment.