Skip to content

Commit

Permalink
Merge pull request #82 from AnimalFoodBank/delano/80-auth-token-bug-prep
Browse files Browse the repository at this point in the history
[#80] Prep for fixing auth token bug
  • Loading branch information
delano authored Mar 21, 2024
2 parents e181c9a + 48546f8 commit cc4178d
Show file tree
Hide file tree
Showing 21 changed files with 4,878 additions and 372 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# Generated by Django 4.2.11 on 2024-03-13 22:32

from django.db import migrations, models


class Migration(migrations.Migration):
dependencies = [
("afbcore", "0001_initial"),
]

operations = [
migrations.AlterField(
model_name="profile",
name="address",
field=models.CharField(blank=True, max_length=255, null=True),
),
migrations.AlterField(
model_name="profile",
name="address_verbatim",
field=models.CharField(blank=True, max_length=255, null=True),
),
]
24 changes: 24 additions & 0 deletions apps/api/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

100 changes: 100 additions & 0 deletions apps/ui/.codiumai.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,100 @@
#.codiumai.toml
[tests]

## Testing framework to use - this can affect the content of the generated tests
## as well as the test run command.
## Possible values are:
## Python: Pytest, Unittest
## Javascript / Typescript: Jest, Mocha, Vitest, Karma, Jasmine, QUnit, React Testing Library
## HOWEVER: running tests in JS / TS is at the moment only supported
## for Jest, Mocha, Vitest, and React Testing Library
framework = "Jasmine"

## An additional Javascript utility library used to test your code, if any.
## Possible values are None, Testing Library, Enzyme, or Chai. Not applicable to Python projects.
# utility_library = "Testing Library"

## A hint to the test generator about whether to use mocks or not. Possible values are true or false.
use_mocks = true

## How many tests should be generated by default. Fewer tests is faster.
## Does not apply at the moment to extend-suite tests.
# num_desired_tests = 6

## A multiline string, delimited with triple-quotes (""") serving as an extra instruction
## that the AI model will take into consideration.
## This will appear as "General instructions" in the
## configuration section in the tests panel.
# plan_instructions = """
# Each line should have a comment explaining it.
# Each comment should start with the comment number (1., 2. etc.)
# """

## A multiline string, delimited with triple-quotes (""") serving as an example test that represents
## what you would like the generated tests to look like in terms of style, setup, etc.
# example_test = """
# describe("something", () => {
# it("says 'bar'", () => {
# // given
#
# // when
# const res = something.say();
#
# // Then
# expect(res).to.equal("bar");
# });
# });
# """


[tests.javascript]

## When running Javascript / Typescript tests, use this directory as the test process "current working directory".
## This is a path relative to the location of the config file.
## Default: The directory containing the config file.
## Note: the typical setup is to place the config file in the same directory as the relevant 'package.json' file,
## and leave this commented-out.
# overrideTestRunCwd = "./test"

## This is the command that's used to run tests.
## PLEASE READ CAREFULLY:
##
## When running tests, CodiumAI generates a temporary file that contains the test code for a single test,
## and runs that file.
## When the tests are done, the temporary file is deleted.
## For component-oriented tests (when you click "test this class" or "test this function"), the temporary file
## is created next to the file being tested.
## For extend-suite tests (when you click "add more tests" on a test-suite), the temporary file is created next
## to the test-suite file.
##
## Typically, you're going to want to take the test script defined in your package.json file, and tweak it a
## little to make it compatible with CodiumAI.
##
## You almost always want to start with 'npx' (e.g. 'npx jest', not 'npm jest' or 'yarn test').
##
## Note that the test command must be able to run test files that are located in the same directory as the
## file under test.
## A common issue is that the test command in the package.json file selects only from
## a "tests" directory, causing the CodiumAI tests be "not found" - please remove any such restriction from
## the command / configuration.
##
## The placeholder TEST_FILEPATH will be replaced with the actual test file path - this is how we find
## the file to run.
##
## EXAMPLES:
## Mocha:
## npx ts-mocha TEST_FILEPATH --require ./test/mocha/setup.ts
## Jest:
## npx jest --runTestsByPath TEST_FILEPATH
##
## DEBUGGING NOTE:
## To help debug run-tests issues, you can view run logs in vscode's OUTPUT
## (select codium-ai from the dropdown).
## It's helpful to clear the output (right-click -> clear) and then run the tests again.
##
# overrideTestRunScript = "npx jest --runTestsByPath TEST_FILEPATH"

## A multiline string, delimited with triple-quotes ("""),
## containing import declaration to use in each test file.
# overrideImports = """
# import {expect} from 'chai'; """
2 changes: 1 addition & 1 deletion apps/ui/.npmrc
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,4 @@ shamefully-hoist=true
# these requirements, which could potentially lead to version
# conflicts or missing dependencies.
#
strict-peer-dependencies=true
strict-peer-dependencies=false
8 changes: 8 additions & 0 deletions apps/ui/builder.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
// builder.config.(js|ts)

import { defineConfig } from '@vueform/builder'

// You might place this anywhere else in your project
import '@vueform/builder/index.css';

export default defineConfig({})
2 changes: 1 addition & 1 deletion apps/ui/components/Header.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const links = [{
label: 'Dashboard',
to: '/dashboard'
}, {
label: 'New Request',
label: 'Request Food',
to: '/requests/new'
}, {
label: 'About Us',
Expand Down
Loading

0 comments on commit cc4178d

Please sign in to comment.