-
Notifications
You must be signed in to change notification settings - Fork 28
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
Minor layout redesign + prereg button #98
Merged
Changes from all commits
Commits
Show all changes
20 commits
Select commit
Hold shift + click to select a range
3a23ca8
Put schedule switcher buttons behind menu
psvenk 5eec9d2
Rearrange some things
psvenk 58cc9a9
Make "maintained by SIPB" no longer a button
psvenk 806b15b
Add prereg button
psvenk caced65
Run Prettier
psvenk a147d04
simplify button text
dtemkin1 fff6dcb
fix class table row border
dtemkin1 910ce3e
Make menu buttons functional
psvenk 7185e1f
Use save icon when schedule loaded from URL
psvenk bc9f563
Import State
psvenk bb746b6
make rename input nicer
dtemkin1 e3adca3
event flashing... undo this again :/
dtemkin1 c7d42b4
autofocus activity inputs here too
dtemkin1 cd43680
fix rename schedule not putting name initially
dtemkin1 bf60f77
use simple fuzzball
dtemkin1 22f3656
make buttons nicer...
dtemkin1 7b15e43
add favicon (temp)
dtemkin1 3615297
reword about, make privacy policy into a dialog
dtemkin1 7f77597
fix variable names, typo
dtemkin1 ef9affc
improve button accessibility
dtemkin1 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file was deleted.
Oops, something went wrong.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,6 +8,7 @@ import { | |
DialogFooter, | ||
DialogHeader, | ||
DialogTitle, | ||
DialogActionTrigger, | ||
} from "./ui/dialog"; | ||
import { Button } from "./ui/button"; | ||
|
||
|
@@ -21,7 +22,11 @@ function AboutDialog() { | |
<Link onClick={() => setVisible(true)} colorPalette="blue"> | ||
About | ||
</Link> | ||
<DialogRoot open={visible} onOpenChange={() => setVisible(false)}> | ||
<DialogRoot | ||
lazyMount | ||
open={visible} | ||
onOpenChange={() => setVisible(false)} | ||
> | ||
<DialogContent> | ||
<DialogHeader> | ||
<DialogTitle>Hydrant</DialogTitle> | ||
|
@@ -42,16 +47,17 @@ function AboutDialog() { | |
href="https://github.com/sipb/hydrant" | ||
colorPalette="blue" | ||
> | ||
Github | ||
GitHub | ||
</Link> | ||
, or come to a SIPB meeting and ask how to help. | ||
</Text> | ||
<Text> | ||
We'd like to thank Edward Fan for creating{" "} | ||
We'd like to thank CJ Quines '23 for creating Hydrant and Edward | ||
Fan '19 for creating{" "} | ||
<Link href="https://firehose.guide/" colorPalette="blue"> | ||
Firehose | ||
</Link> | ||
, the basis for Hydrant, and the{" "} | ||
, the basis for Hydrant. We'd also like to thank the{" "} | ||
<Link href="https://fireroad.mit.edu/" colorPalette="blue"> | ||
FireRoad | ||
</Link>{" "} | ||
|
@@ -60,7 +66,52 @@ function AboutDialog() { | |
</Flex> | ||
</DialogBody> | ||
<DialogFooter> | ||
<Button onClick={() => setVisible(false)}>Close</Button> | ||
<DialogActionTrigger asChild> | ||
<Button>Close</Button> | ||
</DialogActionTrigger> | ||
</DialogFooter> | ||
</DialogContent> | ||
</DialogRoot> | ||
</> | ||
); | ||
} | ||
|
||
function PrivacyPolicyDialog() { | ||
const [visible, setVisible] = useState(false); | ||
|
||
return ( | ||
<> | ||
<Link onClick={() => setVisible(true)} colorPalette="blue"> | ||
Privacy Policy | ||
</Link> | ||
<DialogRoot | ||
lazyMount | ||
open={visible} | ||
onOpenChange={() => setVisible(false)} | ||
> | ||
<DialogContent> | ||
<DialogHeader> | ||
<DialogTitle>Privacy Policy</DialogTitle> | ||
</DialogHeader> | ||
<DialogBody> | ||
<Flex direction="column" gap={4}> | ||
<Text> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I just copy-pasted this from what was previously in privacy.html, but most of it isn't really applicable since we don't currently have GCal integration. Still, good to leave in for whenever we fix it I suppose |
||
Hydrant does not store any of your data outside of your browser. | ||
Data is only transmitted upstream when you export to Google | ||
Calendar. When you export to Google Calendar, Hydrant sends | ||
calendar information to Google to place into your calendar. | ||
</Text> | ||
<Text> | ||
No data is transmitted otherwise. That means that our servers do | ||
not store your class or calendar information. If you never | ||
export to Google Calendar we never send your data anywhere else. | ||
</Text> | ||
</Flex> | ||
</DialogBody> | ||
<DialogFooter> | ||
<DialogActionTrigger asChild> | ||
<Button>Close</Button> | ||
</DialogActionTrigger> | ||
</DialogFooter> | ||
</DialogContent> | ||
</DialogRoot> | ||
|
@@ -80,9 +131,7 @@ export function LeftFooter(props: { state: State }) { | |
<Link href="mailto:sipb-hydrant@mit.edu" colorPalette="blue"> | ||
Contact | ||
</Link> | ||
<Link href="privacy.html" colorPalette="blue"> | ||
Privacy Policy | ||
</Link> | ||
<PrivacyPolicyDialog /> | ||
</Flex> | ||
</Flex> | ||
); | ||
|
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If anyone has thoughts on changing this, lmk! I just put this here cause I think we should have a favicon in general (fixes #31) but we can replace this once @tangluna makes some assets :)