Skip to content

Create Meal Form in Frontend #25

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

Draft
wants to merge 1 commit into
base: staging
Choose a base branch
from
Draft

Conversation

Logan-Dang
Copy link
Collaborator

  • reglue dev server together
  • implement auth in frontend
  • create meal form in frontend

- implement auth in frontend
- create meal form in frontend
return <AppConsumer />;
});

const AppConsumer = component$(() => {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we should rename and place in own file as auth page im thinking


const AppConsumer = component$(() => {
const form: Signal<'login' | 'register'> = useSignal('login');
const darkMode = useSignal(localStorage.getItem('darkMode') === 'true');
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we should also abstract out the use of localStarage into own file so if we want to update it to cookies or something else, its a one place file change


const toggleDarkMode = $(() => {
darkMode.value = !darkMode.value;
localStorage.setItem('darkMode', String(darkMode.value));
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same as above

user: Signal<User>;
};

export const Dashboard = component$((props: DashboardProps) => {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

.... ya this whole file has, more than it needs, as well as very specific to meal tally, i appreciate it but likely not the direction should be taking at this time, think we can remove the specific to meal tally stuff but keep the dashboard page

@Logan-Dang Logan-Dang marked this pull request as draft August 3, 2025 20:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants