Greg Hurrell [Mon, 14 Dec 2015 21:34:13 +0000 (13:34 -0800)]
Link to tree instead of commit
Greg Hurrell [Mon, 14 Dec 2015 20:48:28 +0000 (12:48 -0800)]
Remove very stale notes files
Greg Hurrell [Mon, 14 Dec 2015 20:47:58 +0000 (12:47 -0800)]
Mention link shortener in README
Greg Hurrell [Mon, 14 Dec 2015 19:47:51 +0000 (11:47 -0800)]
Edit README in preparation for open source push
Greg Hurrell [Mon, 14 Dec 2015 18:59:23 +0000 (10:59 -0800)]
Replace stock Rails README with doc/DESIGN_NOTES content
Lightly converted to Markdown, but no other changes.
Greg Hurrell [Mon, 14 Dec 2015 18:54:07 +0000 (10:54 -0800)]
Remove README stub
Greg Hurrell [Mon, 14 Dec 2015 18:51:37 +0000 (10:51 -0800)]
Remove dead code
Greg Hurrell [Thu, 8 Oct 2015 23:43:28 +0000 (16:43 -0700)]
Remove memcached management
Using Homebrew to install memcached, may as well let it hand it off to
`launchd` to launch at startup too.
Greg Hurrell [Fri, 25 Sep 2015 20:05:29 +0000 (13:05 -0700)]
"Fix" broken wikitext product page docs
I'd rather fix the bad links in the documentation itself, but I don't
know how.
Greg Hurrell [Fri, 25 Sep 2015 19:50:25 +0000 (12:50 -0700)]
Fix some broken links
Caused by the mirror being quirky.
Greg Hurrell [Fri, 25 Sep 2015 18:34:45 +0000 (11:34 -0700)]
Another
Greg Hurrell [Fri, 25 Sep 2015 18:33:23 +0000 (11:33 -0700)]
Quickfix
Greg Hurrell [Fri, 25 Sep 2015 18:20:18 +0000 (11:20 -0700)]
Remove useless CSRF headers
```
find public -type f -name '*.html' | xargs sed -i '' /csrf-param/d
find public -type f -name '*.html' | xargs sed -i '' /csrf-token/d
```
Greg Hurrell [Fri, 25 Sep 2015 18:14:12 +0000 (11:14 -0700)]
Remove products code
The cool part is, I can even remove the styles because the static
mirrors reference a specific version of the assets from the CDN.
Greg Hurrell [Fri, 25 Sep 2015 17:58:13 +0000 (10:58 -0700)]
Add static mirror of product pages
```
cd public
mkdir scratch
cd scratch
wget -m -nH -E --accept-regex=products https://wincent.com/products/
wget -m -l 1 --no-parent -nH -E https://wincent.com/products
rm -r a blog.html index.html issues.html robots.txt wiki wiki.html static
rm -r misc snippets.html
mv products.{1.,}html
find . -name '*.1.*' -exec rm {} \;
cd ..
mv scratch/products* .
rmdir scratch
```
Greg Hurrell [Fri, 25 Sep 2015 17:51:26 +0000 (10:51 -0700)]
Fix broke stuff
Greg Hurrell [Fri, 25 Sep 2015 17:43:16 +0000 (10:43 -0700)]
Get rid of dynamic bits of product pages
Greg Hurrell [Fri, 25 Sep 2015 17:30:56 +0000 (10:30 -0700)]
More dead code
Greg Hurrell [Fri, 25 Sep 2015 16:59:04 +0000 (09:59 -0700)]
Make sure we can handle the absence of the Issue model
Greg Hurrell [Fri, 25 Sep 2015 16:54:27 +0000 (09:54 -0700)]
Remove more dead code
Greg Hurrell [Fri, 25 Sep 2015 16:45:55 +0000 (09:45 -0700)]
Delete a bunch of issue and related code
Greg Hurrell [Fri, 25 Sep 2015 15:37:50 +0000 (08:37 -0700)]
Add static mirror of issues pages
```
cd public
mkdir scratch
cd scratch
wget -m -nH -E --accept-regex=issues https://wincent.com/issues/
wget -m -l 1 --no-parent -nH -E https://wincent.com/issues
rm -r a blog.html index.html issues.foo.html robots.txt products.html wiki.html
mv issues{.1,}.html
find . -name '*=*' -exec rm {} \;
cd issues
rm index.html new.html search.html
mv scratch/* .
rmdir scratch
```
Greg Hurrell [Fri, 25 Sep 2015 15:22:05 +0000 (08:22 -0700)]
Remove more dead code
Fixes a fatal on the login page.
Greg Hurrell [Fri, 25 Sep 2015 15:11:26 +0000 (08:11 -0700)]
Update bundle
Greg Hurrell [Fri, 25 Sep 2015 15:06:20 +0000 (08:06 -0700)]
Remove straggling reference to Git module
Greg Hurrell [Fri, 25 Sep 2015 14:57:04 +0000 (07:57 -0700)]
Replace TweetsController with router logic
Greg Hurrell [Fri, 25 Sep 2015 14:53:32 +0000 (07:53 -0700)]
More dead code removal and streamlining
Greg Hurrell [Fri, 25 Sep 2015 14:42:15 +0000 (07:42 -0700)]
Rip out new user creation, resets, confirmations
Greg Hurrell [Fri, 25 Sep 2015 14:25:53 +0000 (07:25 -0700)]
Remove dynamic elements from layout unconditionally
If you want to login, you have to go to /login yourself.
Greg Hurrell [Fri, 25 Sep 2015 14:23:50 +0000 (07:23 -0700)]
Make issues pages more suitable for static mirroring
Greg Hurrell [Fri, 25 Sep 2015 07:28:21 +0000 (00:28 -0700)]
Fix an innocuous typo
Greg Hurrell [Fri, 25 Sep 2015 07:28:00 +0000 (00:28 -0700)]
Get rid of all traces of React scratch directory
Greg Hurrell [Fri, 25 Sep 2015 07:27:01 +0000 (00:27 -0700)]
Mostly make issues (and partly comments) reat-only
Greg Hurrell [Fri, 25 Sep 2015 06:26:56 +0000 (23:26 -0700)]
fixup! Kill off monitorships
Greg Hurrell [Fri, 25 Sep 2015 06:26:07 +0000 (23:26 -0700)]
Kill off attachments
Greg Hurrell [Fri, 25 Sep 2015 06:22:00 +0000 (23:22 -0700)]
Kill off monitorships
Greg Hurrell [Thu, 24 Sep 2015 01:23:41 +0000 (18:23 -0700)]
Remove Word model
Greg Hurrell [Thu, 24 Sep 2015 01:19:12 +0000 (18:19 -0700)]
Remove repo browser
Redirect it all to GitHub.
Greg Hurrell [Wed, 23 Sep 2015 17:55:59 +0000 (10:55 -0700)]
Import new static dump of forum code
I've changed the nginx, config, so my old dump doesn't work:
```
wget -m --no-parent -nH -E https://wincent.com/forums
```
(Somehow the change in the handling of trailing slashes screwed it up.)
So hacked it like this:
```
wget -m -nH -E --accept-regex=forums https://wincent.com/forums/
```
No idea why, but this time I got a few turd files that I had to clean
up manually:
```
find public/forums -name '*.1.html' -exec rm {} \;
```
Also, needed to explicitly get "forums.html":
```
wget -m -l 1 --no-parent -nH -E https://wincent.com/forums
```
I have no idea what I'm doing; had to control-C that, delete the
unwanted files, and rename the one I did want from "forums.1.html" to
"forums.html".
Greg Hurrell [Wed, 23 Sep 2015 17:50:27 +0000 (10:50 -0700)]
Revert "Revert removal of forum code" and friends
I've taken a new static snapshot now, so ready to get rid of the dynamic
code again.
`git revert HEAD
2f5ec1e 50552a3 --no-commit`
Greg Hurrell [Wed, 23 Sep 2015 17:27:16 +0000 (10:27 -0700)]
Hack around link_to_user breakage on forum pages
Greg Hurrell [Wed, 23 Sep 2015 17:19:38 +0000 (10:19 -0700)]
Provide titles for static forum content
Greg Hurrell [Wed, 23 Sep 2015 17:14:39 +0000 (10:14 -0700)]
Revert removal of forum code
I need to fix some issues and then retake the static snapshot. Then I
will revert the revert.
Greg Hurrell [Wed, 23 Sep 2015 17:06:39 +0000 (10:06 -0700)]
Fix up comment permalinks on static pages
These would crash for Topics (which is a deleted class), or 404, if I
`rescue`-d the crash.
Greg Hurrell [Wed, 23 Sep 2015 16:52:06 +0000 (09:52 -0700)]
404 for comment links related to deleted classes
Mitigate:
```
comments#show (NameError: uninitialized constant Topic)
```
when hitting URLs like:
https://wincent.com/comments/1021
No idea why these are getting hit so much (about 40 overnight), but
whatevs.
Greg Hurrell [Wed, 23 Sep 2015 06:19:36 +0000 (23:19 -0700)]
Fix a syntax error
Greg Hurrell [Wed, 23 Sep 2015 06:17:10 +0000 (23:17 -0700)]
Obliterate all traces of dynamic forums
Greg Hurrell [Wed, 23 Sep 2015 04:44:10 +0000 (21:44 -0700)]
Add static mirror of forums/
Created with:
wget -m --no-parent -nH --no-check-certificate -E https://wincent.com/forums/
in the `public` directory.
Greg Hurrell [Wed, 23 Sep 2015 04:37:18 +0000 (21:37 -0700)]
Remove more code that should have been removed
Greg Hurrell [Wed, 23 Sep 2015 04:23:56 +0000 (21:23 -0700)]
Update bundle
Greg Hurrell [Wed, 23 Sep 2015 04:14:36 +0000 (21:14 -0700)]
Remove a couple more irrelevant/dead references to topics
Greg Hurrell [Wed, 23 Sep 2015 01:29:41 +0000 (18:29 -0700)]
Remove forums link from navbar
Greg Hurrell [Wed, 23 Sep 2015 01:27:19 +0000 (18:27 -0700)]
Fix some failing specs
By deleting them...
Greg Hurrell [Wed, 23 Sep 2015 01:13:41 +0000 (18:13 -0700)]
Prepare to make forum pages stati
Greg Hurrell [Tue, 22 Sep 2015 16:18:30 +0000 (09:18 -0700)]
Remove pagination from forum topics listing
This will make it easier for us to go static.
Greg Hurrell [Tue, 22 Sep 2015 16:12:40 +0000 (09:12 -0700)]
Mostly make forums read only
"Mostly" because I did this in a hurry and I am pretty sure I missed
some stuff and there is probably a bunch of dead code that I can still
remove as a result of this. Will follow up later.
Greg Hurrell [Tue, 22 Sep 2015 15:26:35 +0000 (08:26 -0700)]
Obliterate all traces of full-text search
At least, I think this is all of them (I'm moving pretty fast and loose
at this point).
Part of the crusade towards making the site as static as possible.
Greg Hurrell [Tue, 22 Sep 2015 15:01:06 +0000 (08:01 -0700)]
Redirect /search to Google
I could also just let this 404, but anyway.
Greg Hurrell [Tue, 22 Sep 2015 14:48:39 +0000 (07:48 -0700)]
Fix navbar selection highlighting for IssuesController
Greg Hurrell [Tue, 22 Sep 2015 14:46:53 +0000 (07:46 -0700)]
Purge support copy from links
Greg Hurrell [Tue, 22 Sep 2015 14:42:14 +0000 (07:42 -0700)]
Do a 301 redirect for /support requests
Actually, this should be a one-way ticket. Previously,
I've resisted cluttering the Rails routes file with this
kind of redirect, as nginx can handle this kind of thing
faster, but I want to keep things simple and self-contained.
Greg Hurrell [Tue, 22 Sep 2015 14:38:00 +0000 (07:38 -0700)]
Remove links to support overview
Greg Hurrell [Tue, 22 Sep 2015 14:36:06 +0000 (07:36 -0700)]
Remove SupportController and related code
Greg Hurrell [Tue, 22 Sep 2015 14:32:12 +0000 (07:32 -0700)]
Make /support point at issues#index
Greg Hurrell [Tue, 21 Jul 2015 23:10:16 +0000 (16:10 -0700)]
Update static pages
Greg Hurrell [Tue, 21 Jul 2015 22:47:44 +0000 (15:47 -0700)]
Sans-serif-ize websafe fonts
And for comparison, this is the sans-serif version of my websafe font
challenge.
It is clearly less readable than the serif one, but it looks so much
better. I think the difference is particularly strong for buttons and
nav. If I could style those independently then I might wind up with a
best of both worlds kind of situation.
Greg Hurrell [Tue, 21 Jul 2015 22:32:58 +0000 (15:32 -0700)]
Switch to "websafe" fonts to reduce TTI
Sick of seeing the unstyled flash. I've _always_ found sans-serif fonts
to be more visually pleasing, even though I think serif fonts are more
readable. But as far as "websafe" fonts go, I think most of the
sans-serif ones look a bit weak, so let's go with serif fonts for now.
According to http://www.cssfontstack.com/, the "safety" levels here are:
"Light" family:
- 1st choice (Georgia): 99.4% (Windows), 97.5% (Mac)
- 2nd choice (Times New Roman): 99.7% (Windows), 97.5% (Mac)
"Heavy" family:
- 1st choice (Palatino): 99.3% (Windows), 86.1% (Mac)
- 2nd choice (Trebuchet MS): 99.7% (Windows), 97.1% (Mac)
- 3rd choice (Times New Roman): as above
"Mono" family:
- 1st choice (Courier New): 99.7% (Windows), 95.7% (Mac)
- 2nd choice (Courier): ?
Note: In the "Heavy" family, Trebuchet MS is technically a sans-serif
font, but it fits well.
I'm not super happy with the way buttons look with a serif font, not the
nav, really. Other options I considered (sans-serif) were:
- Arial (99.8%, 98.74%): a workhorse font, but very common/tired
- Arial Black (98.1%, 96.2%): might be ok for titles
- Trebuchet MS (already mentioned above)
- Verdana (99.8%, 99.1%): I find it lacks personality...
- Tahoma (100%, 91.7%): might be a decent body font, and it's not Arial
Fix some minor issues along the way:
- unwanted padding in tag autocomplete
- unwanted padding at start of navbar links (thanks, Apple)
Greg Hurrell [Thu, 18 Jun 2015 01:35:17 +0000 (18:35 -0700)]
Use line-clamping on issues#index
Fixes:
https://wincent.com/issues/1675
Greg Hurrell [Wed, 17 Jun 2015 00:31:41 +0000 (17:31 -0700)]
Upgrade to Rails 4.2.2
Do it or get p4wn3d:
http://weblog.rubyonrails.org/2015/6/16/Rails-3-2-22-4-1-11-and-4-2-2-have-been-released-and-more/
Greg Hurrell [Wed, 20 May 2015 06:29:52 +0000 (23:29 -0700)]
Correct color codes
Greg Hurrell [Wed, 20 May 2015 06:25:18 +0000 (23:25 -0700)]
Make <code> styling more obvious
Greg Hurrell [Tue, 5 May 2015 21:42:03 +0000 (14:42 -0700)]
Trim some fat from wiki index
Greg Hurrell [Tue, 5 May 2015 21:37:17 +0000 (14:37 -0700)]
Improve appearance of issue pages
- Remove redundant headings (which become wrong as soon as you change
the sort order).
- Fix cramping introduced by removal of headings.
Greg Hurrell [Tue, 5 May 2015 14:55:58 +0000 (07:55 -0700)]
Cure issue search form of ugliness and amnesia
Switch to using our custom form builder (which we can easily do thanks
to the fact that we already had a model sticking around).
This gives us a pretty form, and means that form values get remembered
across page loads when you hit "search again".
Note that I had to do a bit of hackery to make sure the desired behavior
came across:
- no pollution of GET URL with snowman bullshit
- no pollution of GET URL with submit button name
- no pollution of GET URL with my spam honeypot param (required me to
pass a new option to the custom form builder)
The only place where I couldn't get parity is the unwanted "new_class"
id and class added to the form, which apparently can't be suppressed.
Greg Hurrell [Tue, 5 May 2015 14:27:54 +0000 (07:27 -0700)]
Remove unused #error and #notice selectors
We just switched the app layout to use classes instead of ids (in order
to support array flashes), so these id-based selectors are now dead
code.
Greg Hurrell [Tue, 5 May 2015 14:25:51 +0000 (07:25 -0700)]
Fix unwanted array literals in flashes, multiple flashes
Broke this over the course of some refuctorings.
Greg Hurrell [Tue, 5 May 2015 14:25:19 +0000 (07:25 -0700)]
Get rid of unwanted list styling on taggable results
Greg Hurrell [Tue, 5 May 2015 14:02:43 +0000 (07:02 -0700)]
Revamp pagination
- if at top, move to bottom
- if at top and bottom, get rid of top
- for tables, remove bottom border (looks better with pagination
immediately underneath)
We mostly follow GitHub's lead for how it should look (eg. see
https://github.com/blog):
- always at least two at start of range (1, 2)
- always at least two at end of range (N-1, N)
- show at least two before and after current page
- have "Previous" and "Next" buttons as book-ends; no icons
- ellipsize gaps at start and/or end
- hover behavior, disabled styling, current styling etc
Differences:
- normal font-weight, to keep it lighter
So, this is strictly more powerful than what I had because it means you
can jump to multiple pages directly. It also looks more "modern", until
fashions change, in a year or two...
Greg Hurrell [Tue, 5 May 2015 01:56:33 +0000 (18:56 -0700)]
Update Browserify bundle
Greg Hurrell [Tue, 5 May 2015 01:45:52 +0000 (18:45 -0700)]
Likely fix for Spring-woes
I've had this in the worktree for ages and haven't
had any problems with the Rake task, so this is
probably fine.
Greg Hurrell [Tue, 5 May 2015 01:44:12 +0000 (18:44 -0700)]
Add a TODO missed in previous sweep
Greg Hurrell [Tue, 5 May 2015 01:42:06 +0000 (18:42 -0700)]
Remove a few references to win@wincent.com
Greg Hurrell [Tue, 5 May 2015 01:41:04 +0000 (18:41 -0700)]
Add a Clipper link to the product nav
Greg Hurrell [Tue, 5 May 2015 01:40:41 +0000 (18:40 -0700)]
Add a clarifying comment to ArticleObserver
Greg Hurrell [Tue, 5 May 2015 01:40:12 +0000 (18:40 -0700)]
Kill off some unused CSS
Greg Hurrell [Tue, 5 May 2015 01:39:07 +0000 (18:39 -0700)]
Update vendor/cache, which had fallen out of sync
Greg Hurrell [Tue, 5 May 2015 01:37:43 +0000 (18:37 -0700)]
Commit TODOs
I've had a (massively) dirty worktree for literally years now and am
rather sick of it. I'm going to suppress my aversion to committed TODO
comments (which I think should really be in an issue tracker) and start
getting the worktree cleaner.
Greg Hurrell [Tue, 5 May 2015 01:21:56 +0000 (18:21 -0700)]
Improve TagMapping docs
Greg Hurrell [Mon, 4 May 2015 19:22:32 +0000 (12:22 -0700)]
Implement TagMapping.canonicalize!
Greg Hurrell [Mon, 4 May 2015 06:29:33 +0000 (23:29 -0700)]
Implement "soft" tag redirects in TagsController
Greg Hurrell [Mon, 4 May 2015 06:13:48 +0000 (23:13 -0700)]
Add initial version of TagMapping
Currently implemented:
- TagMapping.alias, for setting up new mappings
- TagMapping.mapping, for getting mappings in convenient, cached form
- parse_tag_list uses TagMapping to canonicalize tag names at creation
time
Not yet implemented:
- TagMapping.canonicalize
- automated testing
- manual testing (eg. how does the tag widget behave when
canonicalization is performed? I am guessing it will just show
something stale)
Notes:
- Rails uses a dumb file system cache in the local development
environment for Rails.cache (heck, it might even do that in the
production environment); this means that development environment
mappings map pollute the test environment (via the cache, even if the
database records are different)
- As a result, I stub out `TagMapping.mappings` in the test suite, but
note that I had to move a few top-level `describe` blocks into the
`Tag` block just to keep this DRY; it probably should have been like
this all along
Greg Hurrell [Sun, 3 May 2015 21:49:31 +0000 (14:49 -0700)]
Make nav bar less bold
Greg Hurrell [Sun, 3 May 2015 21:39:20 +0000 (14:39 -0700)]
Lighten up product menu styling
- lose the opacity
- massively tone down the drop shadow
- remove the caret at the top
- white background
Greg Hurrell [Sun, 3 May 2015 04:43:54 +0000 (21:43 -0700)]
More color thievery, to make links in flashes look better
Greg Hurrell [Sun, 3 May 2015 04:39:42 +0000 (21:39 -0700)]
Better strategy for making links in flashes noticeable
Go for bold. It's cleaner.
Greg Hurrell [Sun, 3 May 2015 04:34:09 +0000 (21:34 -0700)]
Steal better flash colors
From Bootstrap. Much better.
Note that links are hard to read with this subtle coloring, so underline
them.
Greg Hurrell [Sun, 3 May 2015 04:17:03 +0000 (21:17 -0700)]
Regulate sortable table column headers better
Don't let them wrap between the header text and the sort direction
indicator.
Reserve space for the indicator even when there isn't one there yet, to
avoid things jumping around.
Greg Hurrell [Sun, 3 May 2015 04:08:45 +0000 (21:08 -0700)]
Make tables more bootstrap-y
Greg Hurrell [Sun, 3 May 2015 03:54:03 +0000 (20:54 -0700)]
Make buttons more lightweight
No shadow, no bold.
The `.filterbox` also got its shadow removed; it was broken anyway.
Greg Hurrell [Sun, 3 May 2015 03:10:15 +0000 (20:10 -0700)]
Remove never-used bootstrap
Bootstrap is hard to borrow from piecemeal. Let's just ditch it. I would
rather take inspiration from it than tie myself to it forever,
especially given a likely React rewrite in the future.
In the meantime, I think I might look at more lightweight alternatives.