Skip to content

change the cards displayed, add env example to get started #2

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 25, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ yarn-error.log*
.pnpm-debug.log*

# env files (can opt-in for committing if needed)
.env*
.env

# vercel
.vercel
Expand Down
5 changes: 5 additions & 0 deletions env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
//You only need to choose one of the following:

OPENAI_API_KEY=<Your OpenAI API Key if you are self-hosting>
NEXT_PUBLIC_COPILOT_CLOUD_API_KEY=<Your Copilot Cloud API Key if you choose to use Copilot Cloud>

10 changes: 5 additions & 5 deletions src/contexts/TodoContext.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -36,23 +36,23 @@ const TodoContext = createContext<TodoContextType | undefined>(undefined);
export const TodoProvider: React.FC<{ children: ReactNode }> = ({ children }) => {
const [todos, setTodos] = useState<Todo[]>([{
id: Date.now(),
text: "Buy a motorcycle",
text: "Marketing Plan",
completed: false,
subtasks: [{
id: 1,
text: "Research the best motorcycle",
text: "Define Target Audience",
completed: true
}, {
id: 2,
text: "Visit the dealership",
text: "Set SMART Marketing Goals",
completed: false
}, {
id: 3,
text: "Test ride the motorcycle",
text: "Choose Marketing Channels",
completed: false
}, {
id: 4,
text: "Prepare the finance",
text: "Create a Content Calendar",
completed: false
}],
expanded: true
Expand Down