Skip to content

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