Skip to content
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

Fix: mail navigation #126

Closed
wants to merge 3 commits into from
Closed
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
4 changes: 1 addition & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,6 @@ The external services that are required are:
- [OpenAI](https://platform.openai.com/api-keys)
- [Google OAuth](https://console.cloud.google.com/apis/credentials)
- [Google PubSub](https://console.cloud.google.com/cloudpubsub/topic/list) - see set up instructions below
- [Upstash Redis](https://upstash.com/)
- [Tinybird](https://www.tinybird.co/)

We use Postgres for the database.
Expand Down Expand Up @@ -98,8 +97,7 @@ The required environment variables:
- `GOOGLE_CLIENT_SECRET` -- Google OAuth client secret. More info [here](https://next-auth.js.org/providers/google)
- `TINYBIRD_TOKEN` -- Admin token for your Tinybird workspace (be sure to create an instance in the GCP `us-east4` region. This can also be changed via your `.env` if you prefer a different region).
- `OPENAI_API_KEY` -- OpenAI API key.
- `UPSTASH_REDIS_URL` -- Redis URL from Upstash.
- `UPSTASH_REDIS_TOKEN` -- Redis token from Upstash.
- `UPSTASH_REDIS_TOKEN` -- can be any random string (try using `openssl rand -hex 32` for a quick secure random string)

To run the migrations:

Expand Down
18 changes: 9 additions & 9 deletions apps/web/components/SideNav.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -138,53 +138,53 @@ const topMailLinks: NavItem[] = [
{
name: "Inbox",
icon: InboxIcon,
href: "?type=inbox",
href: "/mail?type=inbox",
},
{
name: "Drafts",
icon: FileIcon,
href: "?type=draft",
href: "/mail?type=draft",
},
{
name: "Sent",
icon: SendIcon,
href: "?type=sent",
href: "/mail?type=sent",
},
{
name: "Archived",
icon: ArchiveIcon,
href: "?type=archive",
href: "/mail?type=archive",
},
];

const bottomMailLinks: NavItem[] = [
{
name: "Personal",
icon: Users2Icon,
href: "?type=CATEGORY_PERSONAL",
href: "/mail?type=CATEGORY_PERSONAL",
// count: 972,
},
{
name: "Social",
icon: Users2Icon,
href: "?type=CATEGORY_SOCIAL",
href: "/mail?type=CATEGORY_SOCIAL",
// count: 972,
},
{
name: "Updates",
icon: AlertCircleIcon,
href: "?type=CATEGORY_UPDATES",
href: "/mail?type=CATEGORY_UPDATES",
// count: 342,
},
{
name: "Forums",
icon: MessagesSquareIcon,
href: "?type=CATEGORY_FORUMS",
href: "/mail?type=CATEGORY_FORUMS",
},
{
name: "Promotions",
icon: RatioIcon,
href: "?type=CATEGORY_PROMOTIONS",
href: "/mail?type=CATEGORY_PROMOTIONS",
},
];

Expand Down