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

Findby 2 #8

Open
wants to merge 175 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
175 commits
Select commit Hold shift + click to select a range
9ca6bae
Add gitignore and remove node modules from repo
Oct 3, 2016
653fcf6
Add a tiny readme with instructions
Oct 3, 2016
e8c9883
Merge branch 'readme'
Oct 3, 2016
dfe813c
Add a short description
maxf Oct 3, 2016
62e789b
Route requests from radio buttons to any page
rossjones Oct 4, 2016
73db33a
Merge pull request #1 from datagovuk/menu-route
maxf Oct 4, 2016
33038cd
Adds some templates for the suggested harvesting workflow
rossjones Oct 4, 2016
dc1e7e6
Merge pull request #2 from datagovuk/harvesting
maxf Oct 5, 2016
316bb16
Adds a settings flow
rossjones Oct 5, 2016
578231f
Merge pull request #14 from datagovuk/settings
maxf Oct 5, 2016
0825666
Adds an overview/detail view of the harvesters
rossjones Oct 5, 2016
1366798
Add hardwired authentication
maxf Oct 5, 2016
9f61de6
Merge pull request #15 from datagovuk/harvester-list
maxf Oct 5, 2016
46daf83
Merge pull request #16 from datagovuk/login
rossjones Oct 5, 2016
23c08ef
Fix header
maxf Oct 5, 2016
add787b
Merge pull request #17 from datagovuk/login2
rossjones Oct 5, 2016
c9388d3
Changed to sign in
Oct 6, 2016
920091b
Use the same login header, and fix a few links
maxf Oct 6, 2016
2e2713d
Merge pull request #20 from datagovuk/maria-izquierdo-patch-1
maxf Oct 6, 2016
069f1e6
Add dataset list page
maxf Oct 6, 2016
a92df73
Merge pull request #22 from datagovuk/dataset-list
rossjones Oct 6, 2016
95f46e0
Merge pull request #21 from datagovuk/login-everywhere
rossjones Oct 6, 2016
03fd2ac
Add JS code to filter datasets
maxf Oct 6, 2016
2d82787
Merge pull request #25 from datagovuk/filter-search
rossjones Oct 6, 2016
c03ad04
Make the settings go straight to the contact details form
rossjones Oct 6, 2016
bb65787
Merge pull request #27 from datagovuk/settings-contacts
maxf Oct 7, 2016
0ae3b20
Moves the user management to a top level item
rossjones Oct 6, 2016
c49f2cb
Add flow for updating dataset
maxf Oct 7, 2016
5915a97
Merge pull request #28 from datagovuk/manage-team
maxf Oct 7, 2016
1058c08
Merge pull request #29 from datagovuk/update-dataset
rossjones Oct 11, 2016
a29dbd4
Change the description for adding data to existing in manage_data
rossjones Oct 11, 2016
b04eff6
Merge pull request #32 from datagovuk/issue-31
maxf Oct 11, 2016
e784ba6
Don't require login for homepage
rossjones Oct 11, 2016
3e92c3f
Re-adds the label for the file and option to provide a URL
rossjones Oct 11, 2016
2ac9cdd
Merge pull request #34 from datagovuk/exclude-home-from-login
maxf Oct 11, 2016
5941b88
Merge pull request #35 from datagovuk/more-add-to-existing
maxf Oct 11, 2016
d421117
Adds more to the Create Dataset flow
rossjones Oct 11, 2016
21a1498
Merge pull request #36 from datagovuk/add-dataset
maxf Oct 11, 2016
3757c56
Make home and settings go to the right place
rossjones Oct 11, 2016
9fbade1
Merge pull request #38 from datagovuk/fixup-sidebar-navigation
maxf Oct 11, 2016
763e341
change name of the service
Oct 11, 2016
a94ea6b
Add an example of what the Push Data screen might look like.
rossjones Oct 12, 2016
61bae42
Merge pull request #39 from datagovuk/push-data
maxf Oct 12, 2016
d1d87ae
Signup workflow
rossjones Oct 12, 2016
a31611d
Merge pull request #40 from datagovuk/signup
maxf Oct 12, 2016
adb1b5c
dashboard icluding tasks and stats
Oct 12, 2016
128e5fd
max comments included
Oct 12, 2016
6acfd28
Merge pull request #41 from datagovuk/dashboard
maxf Oct 13, 2016
2eeac9d
Fix broken template name
maxf Oct 13, 2016
d1267c2
Fix links pointing to localhost
maxf Oct 13, 2016
3e7bb0c
Add harvesters to sidebar
rossjones Oct 13, 2016
92cdc71
Merge pull request #43 from datagovuk/rearrange-sidebar
Oct 13, 2016
d6c853f
Mob coded
rossjones Oct 13, 2016
4bdbbb6
More mob coding, fixing the location of dataset edit
rossjones Oct 13, 2016
8d3f013
Fix the banner on dashboard
rossjones Oct 13, 2016
a900748
Moves create dataset to the datasets page
rossjones Oct 13, 2016
e80cc6f
Add sidebar to all Done pages
rossjones Oct 14, 2016
ea1c73c
Change team management to include permissions on invite page.
rossjones Oct 14, 2016
0fb3fd1
Merge pull request #51 from datagovuk/team-members
maxf Oct 14, 2016
950c332
Add a new page to ask how frequently the data is updated
rossjones Oct 14, 2016
e7fe02a
Merge pull request #54 from datagovuk/update_frequency
maxf Oct 14, 2016
2dd31c0
Fix previous commit (change to .css not .scss)
rossjones Oct 17, 2016
004baac
Add edit/remove links for each team member.
rossjones Oct 17, 2016
1456f77
Merge pull request #55 from datagovuk/edit-members
maxf Oct 17, 2016
15c3222
Add a back button to each page in flows
rossjones Oct 17, 2016
9571a53
Typo
rossjones Oct 17, 2016
7eafa12
Merge pull request #57 from datagovuk/back-button
maxf Oct 17, 2016
37710d6
Add a Question X of Y section next to back button in flows.
rossjones Oct 17, 2016
2dc9b34
Merge pull request #58 from datagovuk/page-position
maxf Oct 17, 2016
66270e6
Required for PaaS deploy
maxf Oct 17, 2016
432a0f6
Merge pull request #59 from datagovuk/paas
rossjones Oct 17, 2016
b86522a
Adds an example harvested datasets
rossjones Oct 17, 2016
097cffe
Merge pull request #61 from datagovuk/non-editable-harvested
maxf Oct 17, 2016
0b3ff5b
Reformat tasks as a list of actions
maxf Oct 19, 2016
9261840
Merge pull request #62 from datagovuk/task-list
rossjones Oct 19, 2016
e284d02
Add new preview step in publish-data
maxf Oct 19, 2016
f8290ce
Merge pull request #63 from datagovuk/preview
rossjones Oct 19, 2016
e855426
Provide ways to create errors:
maxf Oct 20, 2016
605f19a
Merge pull request #64 from datagovuk/error-management
rossjones Oct 21, 2016
6161a81
fix indentation
maxf Oct 21, 2016
1780255
Revamp Dashboard from latest designs
maxf Oct 21, 2016
e724f7c
indent
maxf Oct 21, 2016
a2c0d6d
indent
maxf Oct 21, 2016
3fca017
indent
maxf Oct 21, 2016
0d6645f
indent
maxf Oct 21, 2016
35d46b2
Add new flow and designs
maxf Oct 21, 2016
3f9d2d6
Simplified home page
maxf Oct 21, 2016
4f942bd
Finish current flows and designs
maxf Oct 24, 2016
2f61987
Merge pull request #65 from datagovuk/updated-designs
rossjones Oct 24, 2016
0f73f45
Only show input fields if needed
maxf Oct 24, 2016
c112c59
Merge pull request #66 from datagovuk/optional-visible
rossjones Oct 24, 2016
41ac40d
New update to the design
maxf Oct 24, 2016
f587ea3
Merge pull request #67 from datagovuk/design-update
Oct 24, 2016
bff3396
Fix login logic
maxf Oct 25, 2016
5693ac6
Remember data entered and allow user to change it at the end
maxf Oct 25, 2016
af2f1ed
Merge pull request #68 from datagovuk/hold-data
rossjones Oct 25, 2016
2a8d008
Renumber steps and remove old files
maxf Oct 25, 2016
bebf6ae
Also show the URL
maxf Oct 25, 2016
2250c17
Merge pull request #71 from datagovuk/renumber-steps
rossjones Oct 25, 2016
057d97f
Continue complaining if file still invalid
maxf Oct 25, 2016
0096df8
Add themes
maxf Oct 25, 2016
30387bb
Merge pull request #72 from datagovuk/invalid-twice
rossjones Oct 25, 2016
0659847
Change error url to something more realistic
maxf Oct 25, 2016
e2ffc12
Fix search and order alphabetically
maxf Oct 28, 2016
cba8e2c
Merge pull request #73 from datagovuk/tweaks
rossjones Oct 28, 2016
1f2520c
Add basic editing functionality
maxf Oct 28, 2016
36d7349
Merge pull request #74 from datagovuk/dataset-edit
rossjones Oct 28, 2016
dfb8da7
Simple CSV preview
rossjones Oct 28, 2016
14705a8
Merge pull request #75 from datagovuk/csv_preview
maxf Oct 31, 2016
5e762a0
Mocks up a WMS preview to be used in-line with the dataset
rossjones Oct 31, 2016
1a9acb3
Merge pull request #76 from datagovuk/wms-preview
maxf Oct 31, 2016
3b1df7b
Allow editing a dataset
maxf Oct 28, 2016
999ba5d
Merge pull request #77 from datagovuk/modify-dataset
rossjones Nov 1, 2016
4eea7c2
Remove unused files
maxf Nov 1, 2016
36a98a8
Remove back link and steps
maxf Nov 1, 2016
7169a1e
Remove start and end date
maxf Nov 1, 2016
beeda29
Copy change
maxf Nov 1, 2016
f4efacd
New screen for checking themes
maxf Nov 1, 2016
573363e
Adds a list of organisations for various places
rossjones Nov 1, 2016
b080fe9
Merge pull request #78 from datagovuk/organisation-list
maxf Nov 1, 2016
ac166b5
Add different period routes
maxf Nov 1, 2016
814ae31
Merge pull request #79 from datagovuk/copy-changes
rossjones Nov 1, 2016
d736a5c
Latest design changes
maxf Nov 3, 2016
008bb23
Fix banner when going back to datasets
maxf Nov 3, 2016
819cf3a
Add delete dataset buttons
maxf Nov 3, 2016
fd108fe
Merge pull request #80 from datagovuk/design-changes
maxf Nov 3, 2016
f9bb7a7
Missing class on the select in the edit form
rossjones Nov 7, 2016
e38b808
Merge pull request #81 from datagovuk/missing-class-on-edit-select
maxf Nov 7, 2016
6713ceb
Removes superfluous End Date section
rossjones Nov 7, 2016
4d13312
Merge pull request #82 from datagovuk/minor-date-fix
maxf Nov 7, 2016
8625664
Make the dashboard links go to dataset list
rossjones Nov 7, 2016
2992a56
Remove the crown from the header
rossjones Nov 7, 2016
8dfce60
Merge pull request #83 from datagovuk/dashboard-tweak
maxf Nov 7, 2016
e042c66
Merge pull request #84 from datagovuk/remove-crown
maxf Nov 7, 2016
c520e56
Add a Create a dataset link to side-nav
rossjones Nov 7, 2016
88b4111
Start page like gaap
maxf Nov 7, 2016
e36f6a5
Merge pull request #86 from datagovuk/start-page
rossjones Nov 7, 2016
a375287
Merge pull request #85 from datagovuk/create-in-sidebar
maxf Nov 7, 2016
cd302ed
Adds a title to the data file
rossjones Nov 7, 2016
294b41a
Merge pull request #87 from datagovuk/url-titles
maxf Nov 7, 2016
ff93dbb
Removed unneeded files
maxf Nov 8, 2016
7c1eee3
use simple title
maxf Nov 8, 2016
ea13b89
Fade-in animation using jquery
maxf Nov 8, 2016
9a5d5ab
Remove drafts and scheduled datasets
maxf Nov 8, 2016
609d834
Merge pull request #89 from datagovuk/create-flow-changes
rossjones Nov 8, 2016
5271a2e
Main features of new workflow:
maxf Nov 14, 2016
badd6cc
Merge pull request #90 from datagovuk/new-workflow
rossjones Nov 14, 2016
d2c98fd
Correctly route to save new dataset
maxf Nov 15, 2016
249cd9e
Fix fake error functionality
maxf Nov 15, 2016
3a948a9
missing ;
maxf Nov 21, 2016
b7e5363
Update to match latest schema
maxf Nov 21, 2016
fbd3f17
Manage multiple files modifications
maxf Nov 21, 2016
f866752
Merge pull request #91 from datagovuk/fix-editing
rossjones Nov 21, 2016
b512be5
Latest copy changes, and add financial year
maxf Nov 22, 2016
2ff2da8
Merge pull request #92 from datagovuk/copy-changes2
rossjones Nov 22, 2016
6dc73e4
New dashboard design
maxf Nov 23, 2016
0b83c5e
Merge pull request #93 from datagovuk/update-dashboard
Nov 23, 2016
3415a7a
correct erros in file upload
maxf Nov 25, 2016
402d9e7
Align things better
maxf Nov 28, 2016
98a4b54
Merge pull request #94 from datagovuk/dashboard-tweaks
Nov 28, 2016
1c06b8c
Upgrade to govuk_frontend_toolkit 4.18.4
maxf Nov 30, 2016
a5c2f25
Copy changes and flow simplifications
maxf Nov 30, 2016
bd1f2ef
Merge pull request #95 from datagovuk/copy-changes3
rossjones Nov 30, 2016
2f05a52
Fix broken link editing
maxf Dec 1, 2016
f1b253d
Merge pull request #96 from datagovuk/edit-link
rossjones Dec 1, 2016
36b9460
Add indicators if link valid
maxf Dec 1, 2016
d512cb3
Also show valid on check page
maxf Dec 1, 2016
ca3123a
Merge pull request #97 from datagovuk/valid-indicator
rossjones Dec 2, 2016
3dd5e4a
Add realistic users and data for user-testing sessions
maxf Dec 7, 2016
0832e92
Merge pull request #98 from datagovuk/realistic-data
rossjones Dec 7, 2016
7f3c565
Put real URL
maxf Dec 7, 2016
aa7eba5
Merge branch 'master' of github.com:datagovuk/publish_data
maxf Dec 7, 2016
8ff77c9
Fix form display and URL font
maxf Dec 7, 2016
aa841ac
Tweak text
maxf Dec 7, 2016
ad6ef9d
Rewrite as this may be the cause of heroku/PaaS crashing
maxf Dec 9, 2016
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
Binary file removed .DS_Store
Binary file not shown.
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
node_modules
^.port.tmp
govuk_modules/govuk_frontend_toolkit/package.json
.DS_Store
.#*
#*
1 change: 0 additions & 1 deletion .port.tmp

This file was deleted.

17 changes: 16 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1,16 @@
# publish_data
## publish_data

This is a prototyping tool for mocking new pages and workflows for data.gov.uk

It is based on [govuk_prototype_kit](https://github.com/alphagov/govuk_prototype_kit), which has complete instructions to build the site and host it on heroku.

### Installation/Setup

```bash
git clone <repository>
cd publish_data
npm install
npm start
```


Binary file removed app/.DS_Store
Binary file not shown.
Binary file removed app/assets/.DS_Store
Binary file not shown.
Binary file added app/assets/images/wms_preview.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
97 changes: 97 additions & 0 deletions app/assets/javascripts/app.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,97 @@
$(document).ready(function() {
'use strict';

var selector = '.filtered-table'

var filter = function(event) {
var nameSearch = $(selector + ' #name').val();
var status = $(selector + ' .statuses select option:checked').val();

updateTable(nameSearch, status);
}

var updateTable = function(nameSearch, status) {
$(selector + ' table tbody tr').each(function(idx, row) {
var $row = $(row);
var rowDisplay = 'table-row';

if (nameSearch) {
if ($row.find('td.name')[0].innerText.toLowerCase().indexOf(nameSearch.toLowerCase()) === -1) {
rowDisplay = 'none';
}
}
if (rowDisplay !== 'none' && status && status !== 'all') {
if ($row.find('td[data-status]')[0].getAttribute('data-status') !== status) {
rowDisplay = 'none';
}
}
$row.css('display', rowDisplay);
});
}

$('.filtered-table input').on('click keyup', filter)
$('.filtered-table select').on('change', filter)


$('select[name=status]').on('change', function(e) {
if ($(e.target).find(':selected').val() === 'scheduled') {
$('#scheduled-date').removeClass('js-hidden');
} else {
$('#scheduled-date').addClass('js-hidden');
}
});

$('input[name=frequency]').on('click', function(e) {
$('#notify, #frequency-month, #frequency-year, #frequency-quarter, #frequency-week-start, #frequency-week-end').addClass('js-hidden');
switch (e.target.value) {
case 'none':
$('#notify').addClass('js-hidden');
break;
case 'week':
$('#notify, #frequency-week-start, #frequency-week-end').removeClass('js-hidden');
break;
case 'month':
$('#notify, #frequency-month').removeClass('js-hidden');
break;
case 'quarter':
$('#notify, #frequency-quarter').removeClass('js-hidden');
break;
case 'year':
$('#notify, #frequency-year').removeClass('js-hidden');
break;
default:
$('#notify').removeClass('js-hidden');
break;
}
});

$(".just-added").animate({
opacity: 1
}, 1000);


$(".dashboard tr").each(function(position) {
if ($(this).index()>=3) {
$(this).hide();
}
});


$(".dashboard .table-title a").on('click', function(e) {
var a = $(this);
var rows = $(this).parents('section').first().find('tr');
a.toggleClass('expanded');

if (a.hasClass('expanded')) {
a.text('Close');
rows.show();
} else {
a.text('Show all');
rows.each(function(i) {
if ($(this).index() >=3) $(this).hide();
});
}
});


});
5 changes: 0 additions & 5 deletions app/assets/javascripts/application.js
Original file line number Diff line number Diff line change
Expand Up @@ -124,9 +124,4 @@ $(document).ready(function() {
toggleContent.showHideRadioToggledContent();
toggleContent.showHideCheckboxToggledContent();

$( ".step-number" ).each(function(index) {
$( this ).append(index+1+".");

});

});
Loading